puppet-jenkins
puppet-jenkins copied to clipboard
Support: casc
Any possibility to support casc? So we can enable it (true/false) and point to some .yaml file. This way we can combine puppet (for the instance, hardening, jenkins install, plugins, ..) and casc (jobs, jenkins configuration, ..)
if $casc_enable {
$casc_dir = "${jenkins::libdir}/casc_configs/"
$casc_file = "${casc_dir}/jenkins.yaml"
file { $casc_dir:
ensure => 'directory',
}
file { $casc_file:
ensure => file,
source => "puppet:///modules/jenkins/jenkins.yaml",
owner => $jenkins::user,
group => $jenkins::group,
mode => '0755',
}
}
All it takes is a pull request implementing it, with tests, and it would be done!