serverspec-runner
Simple execution framework for serverspec.
Installation
$ gem install serverspec-runner
Usage
initialize spec direcotries and create skeleton-specfiles.
$ serverspec-runner -r /path/to/your_serverspec_root
Edit your spec-files.
$ vim /path/to/your_serverspec_root/test_name/test_detail_name/your_serverspec_test.rb
Edit your infrastructure or middleware tests scenario to "scenario.yml".
test_name: # test directory name(required)
test_detail_name: # test detail directory name(not required)
- servername # ssh-accessible ip address or fqdn. or alias
- :
- :
:
---
servername: # alias name(not required)
host: 192.168.0.11 # ssh-accessible ip address or fqdn(required if alias exist)
any_attribute: "aaa" # host attributes. left example available to get "property[:servername][:any_attribute]"
:
:
do tests.
$ serverspec-runner -r /path/to/your_serverspec_root -s /path/to/your_scenario.yml
You can also specify ssh_options.yml(Net::SSH options) file by "-o" option.
$ serverspec-runner -s /path/to/your_scenario.yml -o /path/to/your_ssh_options.yml
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request