Skip to content

Instantly share code, notes, and snippets.

@jchristi
Created February 25, 2014 19:02
Show Gist options
  • Save jchristi/9215366 to your computer and use it in GitHub Desktop.
Save jchristi/9215366 to your computer and use it in GitHub Desktop.
Puppetization of a Jenkins config file
################################################################################
# Definition: jenkins::config
#
# This class create a new jenkins config file in the main jenkins directory
#
################################################################################
define jenkins::config(
$content,
$config = $title,
) {
file { "${jenkins::variables::jenkins_dir}/${config}":
mode => '0644',
owner => 'jenkins',
group => 'jenkins',
content => $content,
require => Package['jenkins'],
notify => Exec['reload-jenkins'],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment