Upload
atsushi-matsuo
View
922
Download
0
Embed Size (px)
Citation preview
FileMaker Server
Serverspec 2017
2017/05/21Frontiers' Conference 2017
•‣‣ FileMaker Server Web
INTER-Mediator
‣ Blog: http://www.famlog.jp/
‣ Twitter: @matsuo_atsushi
• FileMaker Cloud
• Infrastructure as Code
• Serverspec
• FileMaker
• FileMaker, Inc.
• AWS Amazon Web Services
• 9
• 2017 5
FileMaker Cloud
• FileMaker Server
OS Windows Server macOS
• FileMaker Cloud OS Linux
OS CentOS Linux
••• AWS
etc.
Infrastructure as Code
•
•
Infrastructure as Code
•••• CI etc.
•••• CI
•
Infrastructure as Code
••
•• Serverspec
Infrastructure as Code
Serverspec
• FM-Tokyo
2010 10
••••
•••
•
•……
•RSpec is testing tool for the Ruby programming language.
RSpec
• 2008 RSpec
•
•
RSpec
2013 3
Serverspec
“With serverspec, you can write RSpec tests for checking your servers are configured correctly.”
http://serverspec.org/
Serverspec
“Serverspec tests your servers' actual state by executing command locally, via SSH, via WinRM, via Docker API and so on. So you don't need to install any agent softwares on your servers and can use any configuration management tools, Puppet, Ansible, CFEngine, Itamae and so on.”
http://serverspec.org/
Serverspec
• 2013 3
•
• RSpec
• MIT License
Serverspec
“
”
http://www.slideshare.net/mizzy/serverspec-hbstudy45
Serverspec
AIX, Arch Linux, Darwin (macOS), Debian, Fedora/Red Hat/CentOS, FreeBSD, Gentoo Linux, NixOS, OpenBSD, openSUSE, Plamo Linux, SmartOS, Solaris, SUSE, Ubuntu, Windows
Supported OS
$ gem install serverspec rake (sudo gem install serverspec rake)
$ serverspec-init
$ rake spec
Serverspec
require 'spec_helper'
describe service('fmserverd') do it { should be_running }end
describe service('httpd'), :if => os[:family] == 'darwin' do it { should be_running }end
describe file('/Library/FileMaker Server/HTTPServer/conf/extra/httpd-ssl.conf') do its(:content) { should match /SSLProtocol TLSv1.2/ }end
describe cron do it { should have_entry '2 4 * * * /usr/local/bin/fmsadmin restart -y adminserver' }end
Serverspec
•
• SSH
•
Serverspec
• RSpec
• RSpec
Serverspec
Serverspec RSpec
• INTER-Mediator-Server VM
• 5.6 OS Ubuntu
Server 14.04 Alpine Linux 3.5
• Serverspec
Serverspec
“But the true aim of Serverspec is to help refactoring infrastructure code.”
http://serverspec.org/
Serverspec
• Infrastructure as Code
FileMaker Cloud
•
• http://serverspec.org/
• https://github.com/mizzy/serverspec
• http://www.slideshare.net/mizzy/serverspec-hbstudy45
• http://www.slideshare.net/mizzy/serverspec-at-testing-framework-meeting
URL
• Serverspec
• Infrastructure as Code