voxpupuli / puppet-icingaweb2

Puppet module to manage Icinga Web 2
https://forge.puppet.com/icinga/icingaweb2
Other
32 stars 90 forks source link

Add FreeBSD support #190

Closed rick-pri closed 2 years ago

rick-pri commented 6 years ago

The puppet-icinga2 module supports FreeBSD however, this project doesn't and I think that they should both support the same platforms since they will normally be used together.

rick-pri commented 6 years ago

You can track my attempts to add this here.

lazyfrosch commented 6 years ago

I guess we are open for PRs on that!

rick-pri commented 6 years ago

I've made some progress on this.

I've also noted that the icingacli command on FreeBSD is different to everything else and that I'm going to have to add a path to the director-migration and director-kickstart exec commands so I need to know what other paths are required for the other OSes (else I'm going to have to put in nearly every conceivable path; e.g. /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin and the path on FreeBSD to the icingacli binary.)

Also, in the same manifest ./manifests/module/director.pp check on $import_schema makes an assumption that there's an icingacli package which needs to be installed but this is included in the icinga2 package on FreeBSD. I think that I'll move this into the params.pp for now and set to undef for FreeBSD with a check on the variable.

Feedback on these approaches is welcome. I'll have something up on my fork shortly.

rick-pri commented 6 years ago

https://github.com/Icinga/puppet-icingaweb2/pull/210