Yorokobi
12/05/2022, 11:18 PMYorokobi
12/05/2022, 11:19 PMn3snah
12/05/2022, 11:19 PMexec statement using a creates attribute but thats also not ideal.Yorokobi
12/05/2022, 11:21 PM--gen-and-print-passwd option but the non-debug STDOUT didn't print the password so I'd be left with going back and re-creating the admin password later.n3snah
12/05/2022, 11:22 PMstdout right? Could you redirect that somewhere?Yorokobi
12/05/2022, 11:24 PMkenyon
12/06/2022, 12:48 AMDr Bunsen Honeydew
12/06/2022, 12:48 AMpuppet-splunk module at https://forge.puppet.com/puppet/splunk?src=slack&channel=puppetnatemccurdy
12/06/2022, 12:52 AMnatemccurdy
12/06/2022, 12:52 AMSlackbot
12/06/2022, 12:54 AMSlackbot
12/06/2022, 9:09 AMSlackbot
12/06/2022, 10:50 AMArtem Shaposhnikov
12/06/2022, 10:51 AMa.botyan
12/06/2022, 1:51 PMnode 'srv-vm-pupdb1m-p2' {
package {'nagios-nrpe-server':
ensure => 'installed',
}
file {'/etc/nagios/nrpe.cfg':
ensure =>present,
mode => '644',
owner => 'root',
source => "puppet:///modules/nrpe/nrpe.cfg",
}
file {'/etc/nagios/nrpe_local.cfg':
ensure =>present,
mode => '644',
owner => 'root',
source => "puppet:///modules/nrpe/nrpe_local.cfg",
}
file {'/usr/lib/nagios/plugins/':
ensure =>'directory',
recurse=> true,
mode => '751',
owner => 'root',
source => "puppet:///modules/nrpe_plugins/",
}
class { 'puppetdb::database::postgresql':
listen_addresses => 'srv-vm-pupdb1m-p2.pfk.local',
postgresql_ssl_on => true,
puppetdb_server => 'srv-vm-pupdb1m-p2.pfk.local'
}
class { 'puppetdb::server':
database_host => 'srv-vm-pupdb1m-p2.pfk.local',
java_args => {
'-Xmx' => '512m',
'-Xms' => '512m',
}
}
}a.botyan
12/06/2022, 1:52 PMnode 'srv-vm-pupdb1m-p2' {
package {'nagios-nrpe-server':
ensure => 'installed',
}
file {'/etc/nagios/nrpe.cfg':
ensure =>present,
mode => '644',
owner => 'root',
source => "puppet:///modules/nrpe/nrpe.cfg",
}
file {'/etc/nagios/nrpe_local.cfg':
ensure =>present,
mode => '644',
owner => 'root',
source => "puppet:///modules/nrpe/nrpe_local.cfg",
}
file {'/usr/lib/nagios/plugins/':
ensure =>'directory',
recurse=> true,
mode => '751',
owner => 'root',
source => "puppet:///modules/nrpe_plugins/",
}
class { 'puppetdb::database::postgresql':
listen_addresses => 'srv-vm-pupdb1m-p2.pfk.local',
postgresql_ssl_on => true,
puppetdb_server => 'srv-vm-pupdb1m-p2.pfk.local'
}
class { 'puppetdb::server':
database_host => 'srv-vm-pupdb1m-p2.pfk.local',
java_args => {
'-Xmx' => '512m',
'-Xms' => '512m',
}
}
}a.botyan
12/06/2022, 1:53 PMnode 'srv-vm-pupdb1m-p2' {
package {'nagios-nrpe-server':
ensure => 'installed',
}
file {'/etc/nagios/nrpe.cfg':
ensure =>present,
mode => '644',
owner => 'root',
source => "puppet:///modules/nrpe/nrpe.cfg",
}
file {'/etc/nagios/nrpe_local.cfg':
ensure =>present,
mode => '644',
owner => 'root',
source => "puppet:///modules/nrpe/nrpe_local.cfg",
}
file {'/usr/lib/nagios/plugins/':
ensure =>'directory',
recurse=> true,
mode => '751',
owner => 'root',
source => "puppet:///modules/nrpe_plugins/",
}
class { 'puppetdb::database::postgresql':
listen_addresses => 'srv-vm-pupdb1m-p2.pfk.local',
postgresql_ssl_on => true,
puppetdb_server => 'srv-vm-pupdb1m-p2.pfk.local'
}
class { 'puppetdb::server':
database_host => 'srv-vm-pupdb1m-p2.pfk.local',
java_args => {
'-Xmx' => '512m',
'-Xms' => '512m',
}
}
}a.botyan
12/06/2022, 1:53 PMa.botyan
12/06/2022, 1:54 PMError: Systemd start for puppetdb failed!
journalctl log for puppetdb:
-- Journal begins at Mon 2022-12-05 13:31:30 EET, ends at Tue 2022-12-06 13:26:18 EET. --
Dec 06 13:21:25 srv-vm-pupdb1m-p2 puppetdb[191267]: WARNING: An illegal reflective access operation has occurred
Dec 06 13:21:25 srv-vm-pupdb1m-p2 puppetdb[191267]: WARNING: Illegal reflective access by dynapath.defaults$fn__18603$fn__18604 (file:/opt/puppetlabs/server/apps/puppetdb/puppetdb.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
Dec 06 13:21:25 srv-vm-pupdb1m-p2 puppetdb[191267]: WARNING: Please consider reporting this to the maintainers of dynapath.defaults$fn__18603$fn__18604
Dec 06 13:21:25 srv-vm-pupdb1m-p2 puppetdb[191267]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
Dec 06 13:21:25 srv-vm-pupdb1m-p2 puppetdb[191267]: WARNING: All illegal access operations will be denied in a future release
Dec 06 13:21:30 srv-vm-pupdb1m-p2 puppetdb[191267]: The [database] classname config option has been retired and will be ignored.
Dec 06 13:21:30 srv-vm-pupdb1m-p2 puppetdb[191267]: The [database] conn-keep-alive config option has been retired and will be ignored.
Dec 06 13:21:30 srv-vm-pupdb1m-p2 puppetdb[191267]: The [database] log-slow-statements config option has been retired and will be ignored.
Dec 06 13:21:30 srv-vm-pupdb1m-p2 puppetdb[191267]: The [database] subprotocol config option has been retired and will be ignored.
Dec 06 13:21:30 srv-vm-pupdb1m-p2 puppetdb[191267]: The [read-database] classname config option has been retired and will be ignored.
Dec 06 13:21:30 srv-vm-pupdb1m-p2 puppetdb[191267]: The [read-database] conn-keep-alive config option has been retired and will be ignored.
Dec 06 13:21:30 srv-vm-pupdb1m-p2 puppetdb[191267]: The [read-database] log-slow-statements config option has been retired and will be ignored.
Dec 06 13:21:30 srv-vm-pupdb1m-p2 puppetdb[191267]: The [read-database] subprotocol config option has been retired and will be ignored.
Dec 06 13:21:30 srv-vm-pupdb1m-p2 puppetdb[191267]: Execution error (IllegalArgumentException) at java.net.URL/fromURI (URL.java:692).
Dec 06 13:21:30 srv-vm-pupdb1m-p2 puppetdb[191267]: URI is not absolute
Dec 06 13:21:30 srv-vm-pupdb1m-p2 puppetdb[191267]: Full report at:
Dec 06 13:21:30 srv-vm-pupdb1m-p2 puppetdb[191267]: /tmp/clojure-14154318437795009553.edn
Dec 06 13:21:30 srv-vm-pupdb1m-p2 puppetdb[191243]: Background process 191267 exited before start had completed
Dec 06 13:21:30 srv-vm-pupdb1m-p2 systemd[1]: puppetdb.service: Control process exited, code=exited, status=1/FAILURE
Dec 06 13:21:30 srv-vm-pupdb1m-p2 systemd[1]: puppetdb.service: Failed with result 'exit-code'.
Dec 06 13:21:30 srv-vm-pupdb1m-p2 systemd[1]: Failed to start puppetdb Service.
Dec 06 13:21:30 srv-vm-pupdb1m-p2 systemd[1]: puppetdb.service: Consumed 13.161s CPU time.
Dec 06 13:21:31 srv-vm-pupdb1m-p2 systemd[1]: puppetdb.service: Scheduled restart job, restart counter is at 155.
Dec 06 13:21:31 srv-vm-pupdb1m-p2 systemd[1]: Stopped puppetdb Service.
Dec 06 13:21:31 srv-vm-pupdb1m-p2 systemd[1]: puppetdb.service: Consumed 13.161s CPU time.
Dec 06 13:21:31 srv-vm-pupdb1m-p2 systemd[1]: Starting puppetdb Service...
Dec 06 13:21:38 srv-vm-pupdb1m-p2 puppetdb[191332]: WARNING: An illegal reflective access operation has occurred
Dec 06 13:21:38 srv-vm-pupdb1m-p2 puppetdb[191332]: WARNING: Illegal reflective access by dynapath.defaults$fn__18603$fn__18604 (file:/opt/puppetlabs/server/apps/puppetdb/puppetdb.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
Dec 06 13:21:38 srv-vm-pupdb1m-p2 puppetdb[191332]: WARNING: Please consider reporting this to the maintainers of dynapath.defaults$fn__18603$fn__18604
Dec 06 13:21:38 srv-vm-pupdb1m-p2 puppetdb[191332]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
Dec 06 13:21:38 srv-vm-pupdb1m-p2 puppetdb[191332]: WARNING: All illegal access operations will be denied in a future release
Dec 06 13:21:44 srv-vm-pupdb1m-p2 puppetdb[191332]: The [database] classname config option has been retired and will be ignored.
Dec 06 13:21:44 srv-vm-pupdb1m-p2 puppetdb[191332]: The [database] conn-keep-alive config option has been retired and will be ignored.
Dec 06 13:21:44 srv-vm-pupdb1m-p2 puppetdb[191332]: The [database] log-slow-statements config option has been retired and will be ignored.
Dec 06 13:21:44 srv-vm-pupdb1m-p2 puppetdb[191332]: The [database] subprotocol config option has been retired and will be ignored.
Dec 06 13:21:44 srv-vm-pupdb1m-p2 puppetdb[191332]: The [read-database] classname config option has been retired and will be ignored.
Dec 06 13:21:44 srv-vm-pupdb1m-p2 puppetdb[191332]: The [read-database] conn-keep-alive config option has been retired and will be ignored.
Dec 06 13:21:44 srv-vm-pupdb1m-p2 puppetdb[191332]: The [read-database] log-slow-statements config option has been retired and will be ignored.
Dec 06 13:21:44 srv-vm-pupdb1m-p2 puppetdb[191332]: The [read-database] subprotocol config option has been retired and will be ignored.
Dec 06 13:21:44 srv-vm-pupdb1m-p2 puppetdb[191332]: Execution error (IllegalArgumentException) at java.net.URL/fromURI (URL.java:692).
Dec 06 13:21:44 srv-vm-pupdb1m-p2 puppetdb[191332]: URI is not absolute
Dec 06 13:21:44 srv-vm-pupdb1m-p2 puppetdb[191332]: Full report at:
Dec 06 13:21:44 srv-vm-pupdb1m-p2 puppetdb[191332]: /tmp/clojure-11372100615486275268.edn
Dec 06 13:21:45 srv-vm-pupdb1m-p2 puppetdb[191308]: Background process 191332 exited before start had completed
Dec 06 13:21:45 srv-vm-pupdb1m-p2 systemd[1]: puppetdb.service: Control process exited, code=exited, status=1/FAILURE
Dec 06 13:21:45 srv-vm-pupdb1m-p2 systemd[1]: puppetdb.service: Failed with result 'exit-code'.
Dec 06 13:21:45 srv-vm-pupdb1m-p2 systemd[1]: Failed to start puppetdb Service.
Dec 06 13:21:45 srv-vm-pupdb1m-p2 systemd[1]: puppetdb.service: Consumed 13.401s CPU time.
Dec 06 13:21:45 srv-vm-pupdb1m-p2 systemd[1]: puppetdb.service: Scheduled restart job, restart counter is at 156.
Dec 06 13:21:45 srv-vm-pupdb1m-p2 systemd[1]: Stopped puppetdb Service.a.botyan
12/06/2022, 1:54 PMFlorian
12/06/2022, 2:34 PMFlorian
12/06/2022, 2:36 PMFlorian
12/06/2022, 2:39 PMCVQuesty
12/06/2022, 2:40 PMbastelfreak
12/06/2022, 2:41 PMLumiere
12/06/2022, 2:41 PMbastelfreak
12/06/2022, 2:41 PMLumiere
12/06/2022, 2:42 PMcruelsmith
12/06/2022, 2:45 PMcruelsmith
12/06/2022, 2:46 PM