-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix FreeBSD support #342
Fix FreeBSD support #342
Conversation
puppetdb::params is a classthat may have no external impact to Forge modules. This module is declared in 33 of 578 indexed public
|
$etcdir = '/etc/puppetdb' | ||
$vardir = '/var/db/puppetdb' | ||
$database_embedded_path = "${vardir}/db/db" | ||
$puppet_confdir = pick($settings::confdir,'/etc/puppet') | ||
$puppet_service_name = 'puppetmasterd' | ||
} | ||
'FreeBSD': { | ||
$puppetdb_package = inline_epp('puppetdb<%= $puppetdb::params::puppetdb_major_version %>') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice hack 👍
@smortex can you please rebase? |
The FreeBSD ports install PuppetDB configuration in /usr/local/etc/puppetdb.
The OpenBSD path is kept unchanged but I suspect this is not the actual directory on this platform.
FreeBSD ships with all current versions of puppet and make packages available with the major version as part of the package name, e.g. puppet7, puppetserver8, puppetdb7, puppetdb-terminus8. Gather the major from the user specified version if available, or default to the latest version if not specified to build actual package names.
Rebased and adjusted to remove references to Puppet 6 and add those for Puppet 8. |
While the code has some code related to FreeBSD, the module is not functional on this platform.
This PR fix the FreeBSD support and allows using this module on this OS.