-
-
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
Using pki => "ca" can either cause incomplete deps or circular reference #236
Comments
(Oh, and, that Yumrepo resource is my own, rather than an automatic repo resource handled by the module: I've not been having this module manage it.) |
You need to include or declare the class { '::icinga2': }
class { '::icinga2::feature::api':
accept_commands => true,
accept_config => true,
pki => "ca",
} |
Ah, sorry, I should have been clearer but I didn't want to post a huge mass of Puppet. As well as the above, I'm already including the main class and some other Icinga class resources: class { 'icinga2':
features => ['checker', 'command', 'mainlog', 'notification', 'perfdata', 'livestatus'],
# Features configured later: api, idomysql, graphite
}
icinga2::object::apiuser { 'a_user_name':
target => '/etc/icinga2/conf.d/apiuser.conf',
permissions => [ "*" ],
password => 'somepassword',
}
icinga2::object::zone { 'global-templates':
global => true,
}
class {'icinga2::feature::graphite':
host => 'localhost',
port => 2003,
host_name_template => 'icinga2.$host.name$.host.$host.check_command$',
service_name_template => 'icinga2.$host.name$.services.$service.name$.$service.check_command$',
}
class { 'icinga2::feature::idomysql':
host => '127.0.0.1',
port => 3306,
user => 'icinga2_user',
password => 'mypass',
database => 'ido_db',
import_schema => true,
} |
I am not able to reproduce this, but it looks like an ordering issue. Here's a potential fix: 734d82c |
@bobapple Using that version, and deleting the I don't think I understand why, at the moment, though. 😳 |
I'm trying to use this module, and trying to get Icinga2 to configure the certificates automatically:
This means that it uses the
icinga2
command to try and create certs. Unfortunately, this doesn't seem to always ensure that theicinga2
command is available first, which makes it able to fail on first run:I tried fixing the dependency chain using:
But then I get a circular reference error:
Trying to whittle this down to requiring just the
icinga2
Package resource didn't help, because that doesn't necessarily ensure theicinga2
command is present, and even requiring theicinga2::feature::command
class didn't seem to, either. Requiring theicinga2-bin
package seemed to work; I had to make that depend on the Icinga repo but that was doable.So now I have this:
This involved a bit of trial and error, and seems fixable but I feel like my solution isn't a particularly good solution and could be improved upon by someone more familiar with Icinga2's packaging.
The text was updated successfully, but these errors were encountered: