Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

FileMaker Server管理者のためのServerspec入門(2017年版)

1,742 views

Published on

2017/05/21 Frontiers' Conference 2017発表資料

Published in: Technology
  • Be the first to comment

  • Be the first to like this

FileMaker Server管理者のためのServerspec入門(2017年版)

  1. 1. FileMaker Server Serverspec 2017 2017/05/21 Frontiers' Conference 2017
  2. 2. • ‣ ‣ FileMaker Server Web INTER-Mediator ‣ Blog: http://www.famlog.jp/ ‣ Twitter: @matsuo_atsushi
  3. 3. • FileMaker Cloud • Infrastructure as Code • Serverspec
  4. 4. • FileMaker
  5. 5. • FileMaker, Inc. • AWS Amazon Web Services • 9 • 2017 5 FileMaker Cloud
  6. 6. • FileMaker Server OS Windows Server macOS • FileMaker Cloud OS Linux OS CentOS Linux
  7. 7. • • • AWS etc.
  8. 8. Infrastructure as Code
  9. 9. • • Infrastructure as Code
  10. 10. • • • • CI etc.
  11. 11. • • • • CI • Infrastructure as Code
  12. 12. • • • • Serverspec Infrastructure as Code
  13. 13. Serverspec
  14. 14. • FM-Tokyo 2010 10
  15. 15. • • • •
  16. 16. • • •
  17. 17. • • ……
  18. 18. • RSpec is testing tool for the Ruby programming language. RSpec
  19. 19. • 2008 RSpec • • RSpec
  20. 20. 2013 3 Serverspec
  21. 21. “With serverspec, you can write RSpec tests for checking your servers are configured correctly.” http://serverspec.org/ Serverspec
  22. 22. “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
  23. 23. • 2013 3 • • RSpec • MIT License Serverspec
  24. 24. “ ” http://www.slideshare.net/mizzy/serverspec-hbstudy45 Serverspec
  25. 25. 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
  26. 26. $ gem install serverspec rake (sudo gem install serverspec rake) $ serverspec-init $ rake spec Serverspec
  27. 27. 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
  28. 28. • • SSH • Serverspec
  29. 29. • RSpec • RSpec Serverspec Serverspec RSpec
  30. 30. • INTER-Mediator-ServerVM • 5.6 OS Ubuntu Server 14.04 Alpine Linux 3.5 • Serverspec Serverspec
  31. 31. “But the true aim of Serverspec is to help refactoring infrastructure code.” http://serverspec.org/ Serverspec
  32. 32. • Infrastructure as Code FileMaker Cloud •
  33. 33. • 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
  34. 34. • Serverspec • Infrastructure as Code

×