-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Puppet 6 Support #505
Comments
I'm not able to install icinga2 with P6. We had to upgrade to P6 because of other modules and now we are stuck unable to deploy icinga. |
Did you checkout branch v2.x? |
Puppet version: 6.1.0 I tried with v2.x this morning. I have the following resources configured for icinga master role.
Actual Behavior:
Expected Behavior: I call this expected because I get the following with puppet5 so I expect something similar with puppet6.
This causes icinga2 validation to fail so icinga2 does not start. |
puppet apply example/init_master.pp I get with puppet 6.1.0 and puppet-icinga2 1.3.7: object ApiListener "api" { with branch v2.x: object ApiListener "api" { So the results of both looks correct. |
I had to update dependency version and 2.x worked as expected with puppet 6. Thanks @lbetz |
The issue I see is that when optional parameters aren’t specified, the code specified blank strings in the config files for the parameters. This causes things to break as Icinga doesn’t like having parameters set to blank. Not sure if this is an issue with the puppet version or bad code.
…
On Jan 11, 2019 at 3:28 PM, <Sree Harsha Subraveti ***@***.***)> wrote:
I had to update dependency version and 2.x worked as expected with puppet 6. Thanks @lbetz (https://github.com/lbetz)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub (#505 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/AArva1R7WlsUt4JSLBsBSEysSA0kV-fAks5vCQINgaJpZM4ZNcqk).
|
I'm using the v1.3.7 and the upcoming v1.4.0 also with puppet6. |
Regarding the blank string problem: all icinga attributes are stored in a hash in puppet and are delivered via every object define resource to class object itself. And important all undef values are deleted by using the function delete_undef_values out from the stdlib module. e.g. manifests/object/user.pp: create objecticinga2::object { "icinga2::object::User::${title}": |
You need to update your stdlib module to at least 5.1.0 because it fixes the function for puppet6: |
thx |
It may be gentle to add a check like: $stdlib_metadata = load_module_metadata('stdlib')
$stdlib_version = $stdlib_metadata['version']
if(
versioncmp($puppetversion, '6' ) >= 0
and
versioncmp($stdlib_version, '5.1.0') < 0
) {
notify { 'You may be affected by this bug: https://github.com/Icinga/puppet-icinga2/issues/505': }
} |
@lbetz I noticed that v2.x branch is deleted. Any timelines on when v2.0 will be pushed to Puppet forge? |
@gasperno v2.x moved to the master branch. |
Has anyone tried this on Puppet 6 or PE 2019 yet?
The text was updated successfully, but these errors were encountered: