Skip to content

This is jenkins plugin to run chef-client on remote host

Notifications You must be signed in to change notification settings

uchit66/chef-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chef-plugin

This is jenkins plugin to run chef-client on remote host

what it does

  1. Connect to remote host with given ssh login using ssh public-key authentication schema.
  2. Run chef-client on this host, optionally with chef json file generated from template.

features

  • chef json file generated from custom ERB template
  • ssh public-key authentication schema is used
  • dry run mode

interface

layout

chef json template

If you define one, chef json file will be generated based on this template.

  • Check out chef wiki to get know about chef json files.

  • This is ERB template, so you can use ERB syntax here:

     <%
         runlist = %w{foo bar baz}
         chef_json = { :run_list => runlist.map { |r|  "recipe[#{r}]" } }
     %>
     <%= chef_json.to_json.to_s %>
    

prerequisites

  • ssh client

Environment set-up

You can set environment variables via "Jenkins/Configuration/Global properties/Environment variables" interface to adjust plugin behaviour.

LC_ALL

Setup your standard encoding.

ru_RU.UTF-8

download last stable release

[http://repo.jenkins-ci.org/snapshots/org/jenkins-ci/ruby-plugins/chef/0.0.4-SNAPSHOT/chef-0.0.4-20130920.073005-2.hpi]

About

This is jenkins plugin to run chef-client on remote host

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published