Yorokobi
05/27/2022, 1:29 AMSerin Abraham
05/27/2022, 1:34 AMSlackbot
05/27/2022, 12:13 PMdomd
05/27/2022, 3:47 PMSlackbot
05/27/2022, 5:58 PMMicah
05/28/2022, 1:00 PMfalse
, but when I use it in a template, its as if it is evaluated as `true`:
I can confirm that on mx1
the log_anon
hiera value is set to false:
# puppet lookup --node mx1 --environment production --merge deep --render-as s --merge-hash-arrays --explain log_anon`
...
Hierarchy entry "Per-node data"
Path "/etc/puppet/code/environments/production/data/nodes/mx1.yaml"
Original path: "nodes/%{::hostname}.yaml"
Found key: "log_anon" value: false
...
Path "/etc/puppet/code/environments/production/data/common.yaml"
Original path: "common.yaml"
Found key: "log_anon" value: true
Merged result: true
Hierarchy entry "trocla"
No such key: "log_anon"
Merged result: false
Merged result: false
The `site_rsyslog::local` class is looking up that key and setting it in a variable:
```$anonymize = hiera('log_anon', true)
and then that variable is passed to the class template:
class { 'rsyslog':
log_remote => false,
log_local => true,
anonymize => $anonymize,
mtail => true,
}
the class supports that parameter:
class rsyslog (
Optional[Boolean] $server = false,
Optional[Boolean] $log_remote = true,
Optional[Boolean] $log_local = false,
Optional[Boolean] $anonymize = false,
Optional[Boolean] $mtail = false,
) {
and in the class, the epp template is passed that value:
file { '/etc/rsyslog.d/00_client.conf':
ensure => file,
content => epp('rsyslog/client.conf.epp', {
'anonymize' => $anonymize,
'local' => $log_local,
'mtail' => $mtail,
'remote' => $log_remote,
'rsyslog_server' => $rsyslog_server }),
owner => root,
group => root,
mode => '0755',
}
}
}
and that epp template is supposed to trigger off of that variable:
<% if $anonymize { -%>
# Anonymize logs here.
action(type="mmanon" ipv4.bits="32" ipv4.mode="zero" ipv6.bits="128" ipv6.anonmode="zero")
<% } -%>
but what happens is the anonymize section is added to mx1
even when log_anon
is set to false.Micah
05/28/2022, 1:01 PMfalse
, but when I use it in a template, its as if it is evaluated as `true`:
I can confirm that on mx1
the log_anon
hiera value is set to false:
# puppet lookup --node mx1 --environment production --merge deep --render-as s --merge-hash-arrays --explain log_anon`
...
Hierarchy entry "Per-node data"
Path "/etc/puppet/code/environments/production/data/nodes/mx1.yaml"
Original path: "nodes/%{::hostname}.yaml"
Found key: "log_anon" value: false
...
Path "/etc/puppet/code/environments/production/data/common.yaml"
Original path: "common.yaml"
Found key: "log_anon" value: true
Merged result: true
Hierarchy entry "trocla"
No such key: "log_anon"
Merged result: false
Merged result: false
The site_rsyslog::local
class is looking up that key and setting it in a variable:
$anonymize = hiera('log_anon', true)
and then that variable is passed to the class template:
class { 'rsyslog':
log_remote => false,
log_local => true,
anonymize => $anonymize,
mtail => true,
}
the class supports that parameter:
class rsyslog (
Optional[Boolean] $server = false,
Optional[Boolean] $log_remote = true,
Optional[Boolean] $log_local = false,
Optional[Boolean] $anonymize = false,
Optional[Boolean] $mtail = false,
) {
and in the class, the epp template is passed that value:
file { '/etc/rsyslog.d/00_client.conf':
ensure => file,
content => epp('rsyslog/client.conf.epp', {
'anonymize' => $anonymize,
'local' => $log_local,
'mtail' => $mtail,
'remote' => $log_remote,
'rsyslog_server' => $rsyslog_server }),
owner => root,
group => root,
mode => '0755',
}
}
}
and that epp template is supposed to trigger off of that variable:
<% if $anonymize { -%>
# Anonymize logs here.
action(type="mmanon" ipv4.bits="32" ipv4.mode="zero" ipv6.bits="128" ipv6.anonmode="zero")
<% } -%>
but what happens is the anonymize section is added to mx1
even when log_anon
is set to false.Micah
05/28/2022, 1:02 PMfalse
, but when I use it in a template, its as if it is evaluated as `true`:
I can confirm that on mx1
the log_anon
hiera value is set to false:
# puppet lookup --node mx1 --environment production --merge deep --render-as s --merge-hash-arrays --explain log_anon
...
Hierarchy entry "Per-node data"
Path "/etc/puppet/code/environments/production/data/nodes/mx1.yaml"
Original path: "nodes/%{::hostname}.yaml"
Found key: "log_anon" value: false
...
Path "/etc/puppet/code/environments/production/data/common.yaml"
Original path: "common.yaml"
Found key: "log_anon" value: true
Merged result: true
Hierarchy entry "trocla"
No such key: "log_anon"
Merged result: false
Merged result: false
The site_rsyslog::local
class is looking up that key and setting it in a variable:
$anonymize = hiera('log_anon', true)
and then that variable is passed to the class template:
class { 'rsyslog':
log_remote => false,
log_local => true,
anonymize => $anonymize,
mtail => true,
}
the class supports that parameter:
class rsyslog (
Optional[Boolean] $server = false,
Optional[Boolean] $log_remote = true,
Optional[Boolean] $log_local = false,
Optional[Boolean] $anonymize = false,
Optional[Boolean] $mtail = false,
) {
and in the class, the epp template is passed that value:
file { '/etc/rsyslog.d/00_client.conf':
ensure => file,
content => epp('rsyslog/client.conf.epp', {
'anonymize' => $anonymize,
'local' => $log_local,
'mtail' => $mtail,
'remote' => $log_remote,
'rsyslog_server' => $rsyslog_server }),
owner => root,
group => root,
mode => '0755',
}
}
}
and that epp template is supposed to trigger off of that variable:
<% if $anonymize { -%>
# Anonymize logs here.
action(type="mmanon" ipv4.bits="32" ipv4.mode="zero" ipv6.bits="128" ipv6.anonmode="zero")
<% } -%>
but what happens is the anonymize section is added to mx1
even when log_anon
is set to false.Slackbot
05/28/2022, 1:02 PMMicah
05/28/2022, 1:02 PMfalse
, but when I use it in a template, its as if it is evaluated as `true`:
I can confirm that on mx1
the log_anon
hiera value is set to false:
# puppet lookup --node mx1 --environment production --merge deep --render-as s --merge-hash-arrays --explain log_anon
...
Hierarchy entry "Per-node data"
Path "/etc/puppet/code/environments/production/data/nodes/mx1.yaml"
Original path: "nodes/%{::hostname}.yaml"
Found key: "log_anon" value: false
...
Path "/etc/puppet/code/environments/production/data/common.yaml"
Original path: "common.yaml"
Found key: "log_anon" value: true
Merged result: true
Hierarchy entry "trocla"
No such key: "log_anon"
Merged result: false
Merged result: false
The site_rsyslog::local
class is looking up that key and setting it in a variable:
$anonymize = hiera('log_anon', true)
and then that variable (in the same class) is passed to the class template:
class { 'rsyslog':
log_remote => false,
log_local => true,
anonymize => $anonymize,
mtail => true,
}
the class supports that parameter:
class rsyslog (
Optional[Boolean] $server = false,
Optional[Boolean] $log_remote = true,
Optional[Boolean] $log_local = false,
Optional[Boolean] $anonymize = false,
Optional[Boolean] $mtail = false,
) {
and in the class, the epp template is passed that value:
file { '/etc/rsyslog.d/00_client.conf':
ensure => file,
content => epp('rsyslog/client.conf.epp', {
'anonymize' => $anonymize,
'local' => $log_local,
'mtail' => $mtail,
'remote' => $log_remote,
'rsyslog_server' => $rsyslog_server }),
owner => root,
group => root,
mode => '0755',
}
}
}
and that epp template is supposed to trigger off of that variable:
<% if $anonymize { -%>
# Anonymize logs here.
action(type="mmanon" ipv4.bits="32" ipv4.mode="zero" ipv6.bits="128" ipv6.anonmode="zero")
<% } -%>
but what happens is the anonymize section is added to mx1
even when log_anon
is set to false.Micah
05/28/2022, 1:03 PMfalse
, but when I use it in a template, its as if it is evaluated as `true`:
I can confirm that on mx1
the log_anon
hiera value is set to false:
# puppet lookup --node mx1 --environment production --merge deep --render-as s --merge-hash-arrays --explain log_anon
...
Hierarchy entry "Per-node data"
Path "/etc/puppet/code/environments/production/data/nodes/mx1.yaml"
Original path: "nodes/%{::hostname}.yaml"
Found key: "log_anon" value: false
...
Path "/etc/puppet/code/environments/production/data/common.yaml"
Original path: "common.yaml"
Found key: "log_anon" value: true
Merged result: true
Hierarchy entry "trocla"
No such key: "log_anon"
Merged result: false
Merged result: false
The site_rsyslog::local
class is looking up that key and setting it in a variable:
$anonymize = hiera('log_anon', true)
and then that variable (in the same site_rsyslog::local
class) is passed to the rsyslog
class:
class { 'rsyslog':
log_remote => false,
log_local => true,
anonymize => $anonymize,
mtail => true,
}
the class supports that parameter:
class rsyslog (
Optional[Boolean] $server = false,
Optional[Boolean] $log_remote = true,
Optional[Boolean] $log_local = false,
Optional[Boolean] $anonymize = false,
Optional[Boolean] $mtail = false,
) {
and in the class, the epp template is passed that value:
file { '/etc/rsyslog.d/00_client.conf':
ensure => file,
content => epp('rsyslog/client.conf.epp', {
'anonymize' => $anonymize,
'local' => $log_local,
'mtail' => $mtail,
'remote' => $log_remote,
'rsyslog_server' => $rsyslog_server }),
owner => root,
group => root,
mode => '0755',
}
}
}
and that epp template is supposed to trigger off of that variable:
<% if $anonymize { -%>
# Anonymize logs here.
action(type="mmanon" ipv4.bits="32" ipv4.mode="zero" ipv6.bits="128" ipv6.anonmode="zero")
<% } -%>
but what happens is the anonymize section is added to mx1
even when log_anon
is set to false.Micah
05/28/2022, 10:59 PMSlackbot
05/30/2022, 7:34 AMDavid Bernard
05/30/2022, 7:35 AMbmc_network{ 'idrac': }
debug($facts["bmc"]["ipv4_ip_address"])
debug(Bmc_network['idrac'])David Bernard
05/30/2022, 7:36 AMbmc_network{ 'idrac': }
debug(Bmc_network['idrac'])krishna kant mishra
05/30/2022, 9:49 AMkrishna kant mishra
05/30/2022, 9:54 AMSlackbot
05/30/2022, 11:03 AMMarty Ewings
05/30/2022, 2:40 PMMarty Ewings
05/30/2022, 3:08 PMpuppet query 'inventory[count()] {facts.os.family = "Debian" and facts.os.release.major = "8"}'
Marty Ewings
05/30/2022, 3:12 PMSlackbot
05/30/2022, 3:25 PMYehuda Katz
05/30/2022, 3:25 PMSlackbot
05/30/2022, 5:13 PMOleksandr Lytvyn
05/30/2022, 5:35 PMbastelfreak
05/30/2022, 5:51 PMInfo: Creating a new SSL certificate request for XXXXXXXXXXXXXX
bastelfreak
05/30/2022, 6:58 PMnamei -l /etc/puppetlabs/puppet/ssl/*/*
Yehuda Katz
05/30/2022, 7:02 PMOleksandr Lytvyn
05/30/2022, 7:15 PMOleksandr Lytvyn
05/30/2022, 7:20 PM2022-05-30T19:14:46.997Z INFO [qtp1236140807-52] [p.p.certificate-authority] Signed certificate request for <http://ip-10-11-200-75.XXXXXXXXXXXXX.in|ip-10-11-200-75.XXXXXXXXXXXXX.in>
2022-05-30T19:14:52.424Z ERROR [qtp1236140807-126] [p.s.c.certificate-authority-core] <http://ip-10-11-200-75.XXXXXXXXXXXXX.in|ip-10-11-200-75.XXXXXXXXXXXXX.in> already has a revoked certificate; ignoring certificate request
2022-05-30T19:16:57.823Z ERROR [qtp1236140807-126] [p.s.c.certificate-authority-core] <http://ip-10-11-200-75.XXXXXXXXXXXXX.in|ip-10-11-200-75.XXXXXXXXXXXXX.in> already has a revoked certificate; ignoring certificate request
(on new client/host)