puppet-jenkins icon indicating copy to clipboard operation
puppet-jenkins copied to clipboard

Support: casc

Open lvthillo opened this issue 2 years ago • 1 comments

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',
    }
  }

lvthillo avatar Sep 16 '21 13:09 lvthillo

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

kenyon avatar Sep 16 '21 17:09 kenyon