Serverspec Concourse Resource
This is Serverspec resource for Concourse to be able to execute Serverspec tests from concourse.
The description on the Source Configuration below is corresponding to the latest version of the resource.
Compatible with v0.0.1
Run serverspec with a host and user found into an INI ansible inventory file For instance :
[masters]
master ansible_host=host-to-run-the-tests ansible_user=ssh-user-to-connect-to-host
Parameters available to use in the resource definition.
ssh_key: A string containing the ssh private key used for ssh connections.
tests: File where you put your serverspec testsinventory: File where you have your INI ansible inventory
---
resource_types:
- name: serverspec
type: docker-image
source:
repository: opicaud/serverspec-concourse
tag: 0.0.2
resources:
- name: check-test-environment
type: serverspec
source:
ssh_key: ((ssh-key-of-the-user))
- name: source-code
type: git
source:
uri: ((git-repo))
private_key: ((git-private-key))
jobs:
- name: run-some-infra-tests
plan:
- get: source-code
- put: check-test-environment
params:
tests: source-code/test_spec.rb
inventory: source-code/example_hostRun serverspec with host and user declared into the pipeline
Parameters available to use in the resource definition.
ssh_key: A string containing the ssh private key used for ssh connections.user: Remote user used to establish a ssh connection.host: the host to connect on in order to run the tests
tests: File where you put your serverspec tests
---
resource_types:
- name: serverspec
type: docker-image
source:
repository: opicaud/serverspec-concourse
tag: 0.0.1
resources:
- name: check-test-environment
type: serverspec
source:
host: ((host-to-run-the-tests))
user: ((ssh-user-to-connect-to-host))
ssh_key: ((ssh-key-of-the-user))
- name: source-code
type: git
source:
uri: ((git-repo))
private_key: ((git-private-key))
jobs:
- name: run-some-infra-tests
plan:
- get: source-code
- put: check-test-environment
params:
tests: source-code/test_spec.rbOlivier Picaud [email protected]