Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I'm using the example code from the icniga2 module. SQL works when tested by itself. however the icinga2 part fails where I want to import the schema on the database. here is my puppet snippet.
- postgresql::server::db { 'icinga2':
- user => 'icinga2',
- password => postgresql_password('icinga2', $sql_pass),
- }
- class{ 'icinga2': }
- class{ '::icinga2::feature::idopgsql':
- host => $dbhost}
- user => 'icinga2',
- password => $sql_pass,
- database => 'icinga2',
- import_schema => true,
- require => Postgresql::Server::Db['icinga2'],
- }
- its giving me dependency error as below:
- Error: Failed to apply catalog: Found 2 dependency cycles:
- (Exec[concat_/etc/icinga2/features-available/checker.conf] => File[/etc/icinga2/features-available/checker.conf] => Concat[/etc/icinga2/features-available/checker.conf] => File[/etc/icinga2/features-available/checker.conf])
- (File[/etc/icinga2/constants.conf] => Class[Icinga2::Config] => Concat[/etc/icinga2/features-available/checker.conf] => File[/opt/puppetlabs/puppet/cache/concat/_etc_icinga2_features-available_checker.conf] => Class[Icinga2::Config] => File[/etc/icinga2/constants.conf])
- Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement