Advertisement
Guest User

Untitled

a guest
Jan 8th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. class role::icinga2_server {
  2.  
  3. class { 'postgresql::server':
  4. ip_mask_deny_postgres_user => '0.0.0.0/32',
  5. ip_mask_allow_all_users => '0.0.0.0/0',
  6. listen_addresses => 'localhost',
  7. postgres_password => 'password',}
  8.  
  9. postgresql::server::db {
  10. 'icinga2_data':
  11. user => 'icinga2',
  12. password => 'password'
  13. }
  14.  
  15.  
  16.  
  17. class { 'icinga2::server':
  18. server_db_type => 'pgsql',
  19. db_host => 'localhost',
  20. db_port => '5432',
  21. db_name => 'icinga2_data',
  22. db_user => 'icinga2',
  23. db_password => 'password',
  24. }
  25. }
  26.  
  27. ==> centos7: Notice: /Stage[main]/Vagrant/Group[vagrant]/gid: gid changed '1000' to '500'
  28. ==> centos7: Debug: /Stage[main]/Vagrant/Group[vagrant]: The container Class[Vagrant] will propagate my refresh event
  29. ==> centos7: Debug: Exec[postgres_schema_load](provider=posix): Executing 'su - postgres -c 'export PGPASSWORD='''password''' && psql -U icinga2 -h localhost -d icinga2_data < /usr/share/icinga2-ido-pgsql/schema/pgsql.sql' && export PGPASSWORD='' && touch /etc/icinga2/postgres_schema_loaded.txt'
  30. ==> centos7: Debug: Executing 'su - postgres -c 'export PGPASSWORD='''password''' && psql -U icinga2 -h localhost -d icinga2_data < /usr/share/icinga2-ido-pgsql/schema/pgsql.sql' && export PGPASSWORD='' && touch /etc/icinga2/postgres_schema_loaded.txt'
  31. ==> centos7: Notice: /Stage[main]/Icinga2::Server::Install::Execs/Exec[postgres_schema_load]/returns: psql: could not connect to server: Connection refused
  32. ==> centos7: Notice: /Stage[main]/Icinga2::Server::Install::Execs/Exec[postgres_schema_load]/returns: Is the server running on host "localhost" (::1) and accepting
  33. ==> centos7: Notice: /Stage[main]/Icinga2::Server::Install::Execs/Exec[postgres_schema_load]/returns: TCP/IP connections on port 5432?
  34. ==> centos7: Notice: /Stage[main]/Icinga2::Server::Install::Execs/Exec[postgres_schema_load]/returns: could not connect to server: Connection refused
  35. ==> centos7: Notice: /Stage[main]/Icinga2::Server::Install::Execs/Exec[postgres_schema_load]/returns: Is the server running on host "localhost" (192.168.10.131) and accepting
  36. ==> centos7: Notice: /Stage[main]/Icinga2::Server::Install::Execs/Exec[postgres_schema_load]/returns: TCP/IP connections on port 5432?
  37. ==> centos7: Error: su - postgres -c 'export PGPASSWORD='''password''' && psql -U icinga2 -h localhost -d icinga2_data < /usr/share/icinga2-ido-pgsql/schema/pgsql.sql' && export PGPASSWORD='' && touch /etc/icinga2/postgres_schema_loaded.txt returned 2 instead of one of [0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement