Giter Club home page Giter Club logo

kitchen-cfengine's Introduction

Kitchen::Provisioner::Cfengine

A CFEngine provisioner for Test Kitchen.

Installation

Add this line to your application's Gemfile:

gem 'kitchen-cfengine'

And then execute:

$ bundle

Or install it yourself as:

$ gem install kitchen-cfengine

Provisioner Configuration

The following attributes may be set at the provisioner level:

  • name - cfengine
  • cfenging_type - either community or enterprise, defaults to community
  • cfengine_community_quick_install_url - url for the cfengine-community quick install script, defaults to http://s3.amazonaws.com/cfengine.packages/quick-install-cfengine-community.sh
  • cfengine_enterprise_quick_install_url - url for the cfengine-enterprise quick install script, defaults to http://s3.amazonaws.com/cfengine.packages/quick-install-cfengine-enterprise.sh
  • chef_omnibus_url - url for chef omnibus install, defaults to https://www.getchef.com/chef/install.sh
  • cfengine_policy_server_address - optional IP address or hostname for policy server, if no address is provided the VM is bootstrapped to itself
  • cf_agent_args - arguments to pass to cf-agent on provisioning, defaults to -KI
  • cf_agent_runs - number of times to run cf-agent, useful if multiple runs are needed for full convergence, defaults to 1
  • cfengine_files - specifies a directory that will be copied into /var/cfengine/ on the VM, defaults to test/cfengine_files

Additionally you may set the run_list attribute at the suite level to run a specific policy file.

Example Usage

Below is a sample .kitchen.yaml file that will install CFEngine Enterprise on CentOS 6.5, bootstrap it to the remote policy hub 192.168.33.33, then run the my_test.cf policy file with the -KI -D testrun arguments:

---
driver:
  name: vagrant

provisioner:
  name: cfengine
  cfenging_type: enterprise
  cfengine_policy_server_address: 192.168.33.33
  cf_agent_args: -KI -D testrun

platforms:
  - name: centos-6.5
    driver:
      box: chef/centos-6.5

suites:
  - name: default
  run_list:
    - my_test_.cf

kitchen-cfengine's People

Contributors

kamihacker avatar nmische avatar viq avatar

Watchers

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