Companies that focus on cloud infrastructures for both developing and running their applications are likely to have the highest benefit of test driven infrastructure tools such as configuration management and their spec-oriented testing counterparts.
However many enterprises have not moved to the cloud yet.
Often limited by contracts, regulations or security considerations, they too are in need of testing their infrastructure that service providers built for them.
The talk shows approaches to infrastructure testing and demonstrates the use of serverspec (http://serverspec.org/).
13. serverspec
describe package 'openssh-server' do it { should be_installed } end
describe file '/etc/ssh/sshd_config' do it { should be_mode 600 } it { should be_owned_by 'root' } end
describe service 'ssh' do it { should be_enabled } end
23. Demo
• Serverspec Basics
• Overview of resource types
• Using abstractions and facts
• Introduce roles
• Environment-independent specs
through properties
24. Monitoring vs. Spec
• Dynamic Aspects
(crashed servers, services
not reachable, disk full, ...)
• Mostly in „internal form“,
not human readable,
special checks buried
in scripts
• Static Aspects
(how system is built)
• Explicit form,
human readable
• Keep your system
up & running
• Build according to a
specification and prove
compliance with it
25. Additional tools
• Comparable:
rspec-system (! beaker-rspec), rspec-system-serverspec
• Integrate serverspec into vagrant as a provisioner:
github.com/jvoorhis/vagrant-serverspec
• Reporting
http://vincent.bernat.im/en/blog/2014-serverspec-test-
infrastructure.html
33. Cassini Consulting
Niederlassung Düsseldorf
Andreas Schmidt
Bennigsen-Platz 1
40474 Düsseldorf
Deutschland
andreas.schmidt@cassini.de
visit www.cassini.de
Alle Angaben basieren auf dem derzeitigen Kenntnisstand. Änderungen vorbehalten.
Dieses Dokument von Cassini Consulting ist ausschließlich für den Adressaten bzw.
Auftraggeber bestimmt. Es bleibt bis zur einer ausdrücklichen Übertragung von
Nutzungsrechten Eigentum von Cassini.
Jede Bearbeitung, Verwertung, Vervielfältigung und/oder gewerbsmäßige Verbreitung
des Werkes ist nur mit Einverständnis von Cassini zulässig.