Created
February 25, 2014 19:02
-
-
Save jchristi/9215366 to your computer and use it in GitHub Desktop.
Puppetization of a Jenkins config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# 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