Implement serverspec elements

serverspec aims to run service validation during TripleO/Puppet
deployment by using step-by-step workflow.

Example: step 1 contains MySQL Galera cluster, so Puppet will take care
of configuration and serverspec will ensure MySQL is actually up and
running, otherwise we consider the stack failed.

This patchs:
* Installs serverspec by using Gem (source).
  For now, there is no package for any distribution, so until we have one,
  let's use source method by running `gem install`, that will take care of
  serverspec and dependencies.
* Installs serverspec-tests from rdo-management.
  For now, serverspec-tests are hosted on github/rdo-management, so
  until we have packaging, we use source install method.

Change-Id: I8efc9a2278e972fe0c61e12823a9250a4a1bc27d
This commit is contained in:
Emilien Macchi
2015-04-08 15:28:55 -04:00
parent 1cf2a0a992
commit dfac6c9e93
5 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
Install serverspec.
Supports gem based for now. Package mode will be eventually supported later.
To use gem:
export DIB\_INSTALLTYPE\_serverspec=source
Configuration
-------------
None.

View File

@@ -0,0 +1,2 @@
package-installs
pkg-map

View File

@@ -0,0 +1 @@
rubygems_package

View File

@@ -0,0 +1,4 @@
#!/bin/bash
set -eux
gem install serverspec

View File

@@ -0,0 +1,5 @@
{
"default": {
"rubygems_package": "rubygems"
}
}