Skip to content

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

Notifications You must be signed in to change notification settings

cru-Luis-Rodriguez/chef-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 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
  • optionally may be run in chef client in why 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}]" } ,
             :name       => 'alexey',
             :language   => 'ruby'
         }
     %>
     <%= chef_json.to_json.to_s %>
    

prerequisites

  • ruby-runtime jenkins plugin
  • 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 latest version

[http://repo.jenkins-ci.org/releases/org/jenkins-ci/ruby-plugins/chef/0.1.3/]

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 54.5%
  • HTML 45.5%