Giter Site home page Giter Site logo

serverspec-concourse's Introduction

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.

Source Configuration v0.0.2

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.

Parameters

  • tests: File where you put your serverspec tests
  • inventory: File where you have your INI ansible inventory

Example Pipeline

---
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_host

Source Configuration v0.0.1

Run 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

Parameters

  • tests: File where you put your serverspec tests

Example Pipeline

---
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.rb

Author

Olivier Picaud [email protected]

serverspec-concourse's People

Contributors

opicaud avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.