voxpupuli / puppet-jenkins

Puppet module for Jenkins
http://forge.puppetlabs.com/puppet/jenkins
Apache License 2.0
275 stars 565 forks source link

Support: casc #1022

Open lvthillo opened 3 years ago

lvthillo commented 3 years ago

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',
    }
  }
kenyon commented 3 years ago

All it takes is a pull request implementing it, with tests, and it would be done!