Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. 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.
  2.  
  3. postgresql::server::db { 'icinga2':
  4. user => 'icinga2',
  5. password => postgresql_password('icinga2', $sql_pass),
  6. }
  7.  
  8.  
  9. class{ 'icinga2': }
  10. class{ '::icinga2::feature::idopgsql':
  11. host => $dbhost}
  12. user => 'icinga2',
  13. password => $sql_pass,
  14. database => 'icinga2',
  15. import_schema => true,
  16. require => Postgresql::Server::Db['icinga2'],
  17. }
  18.  
  19. its giving me dependency error as below:
  20.  
  21. Error: Failed to apply catalog: Found 2 dependency cycles:
  22. (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])
  23. (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])
  24. Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement