Slackbot
04/05/2023, 4:35 PMScott Macmillan
04/05/2023, 4:36 PMdns_alt_names. I’m hoping someone can help me, I’m somewhat confused.
dns_alt_names are noted as being needed only in relation to dns round robbin on the Scaling doc page, but are mentioned as being needed without qualification on the important configs page. We’re doing this new infra using SRV records are dns_alt_names needed for that? Thanks.Scott Macmillan
04/05/2023, 4:36 PMdns_alt_names. I’m hoping someone can help me, I’m somewhat confused.
dns_alt_names are noted as being needed only in relation to dns round robbin on the Scaling doc page, but are mentioned as being needed without qualification on the important configs page. We’re doing this new infra using SRV records; are dns_alt_names needed for that? Thanks.bastelfreak
04/05/2023, 5:18 PMRyChannel
04/05/2023, 7:21 PMbastelfreak
04/05/2023, 7:22 PMif $facts['fact'] { }natemccurdy
04/05/2023, 7:22 PMif $facts['foo'] != undef {
}bastelfreak
04/05/2023, 7:22 PMSlackbot
04/05/2023, 7:23 PMnatemccurdy
04/05/2023, 7:24 PMvchepkov
04/05/2023, 7:34 PMif 'some_fact' in $facts {IlovPuppet
04/05/2023, 8:58 PMKen
04/05/2023, 9:54 PMKen
04/05/2023, 9:55 PMSlackbot
04/05/2023, 9:56 PMKen
04/05/2023, 9:57 PMSlackbot
04/06/2023, 3:52 AMTarun Channa
04/06/2023, 3:53 AMSlackbot
04/06/2023, 8:40 AMMoe
04/06/2023, 9:25 AM---
certificates::ca_certificates:
'test-file1':
name: test-file2-name'
pem: '-----BEGIN CERTIFICATE-----\n<some valid bas64>\n<some valid bas64>\n-----END CERTIFICATE-----\n'
'test-file2':
name: 'test-file2-name'
pem: |
-----BEGIN CERTIFICATE-----
<some valid bas64>
-----END CERTIFICATE-----
Manifest handling the Hash
$lbank_certificates::ca_certificates.each | String[1] $ca_certificate, Struct[{
'pem' => String[1],
'name' => String[1],
Optional['ensure'] => Enum['file', 'absent']
}] $attribute | {
file { "/etc/pki/ca-trust/source/anchors/${attribute['file']}.pem":
ensure => $attribute['file'],
path => "/etc/pki/ca-trust/source/anchors/${attribute['file']}.pem",
content => $attribute['pem'],
owner => 'root',
group => 'root',
mode => '0644',
}
}
}tias
04/06/2023, 9:35 AM| for multiline strings:
my_key: |
line...
jkljlj
jfdjfjMoe
04/06/2023, 9:43 AM\n for interpolation.
The issue I'm seeing is that the files content after applying Puppet looks like this this\nis\a\multiline\n while when I pass the string using a Literal Block Scalar | it works perfectly.
What am I doing wrong here?Elliott
04/06/2023, 3:10 PMElliott
04/06/2023, 3:10 PMElliott
04/06/2023, 3:11 PMElliott
04/06/2023, 3:11 PMElliott
04/06/2023, 3:12 PMP. Aiello
04/06/2023, 3:25 PMTimestamp to get the value of 1 week in the past or 1 week in the future? I saw examples with the date linux command, but I wonder if it is possible with Timestamp without too much code.Slackbot
04/06/2023, 3:29 PMSlackbot
04/06/2023, 5:00 PM