Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 56f7a17

Browse files
authored
Merge pull request #55 from seanmil/use_certname
Use certname consistently for key files
2 parents b005043 + 92a5464 commit 56f7a17

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

manifests/certs.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
$ssl_dir = $settings::ssldir
66
$cert_dir = "/etc/${service}"
7-
$client_pem_key = "${ssl_dir}/private_keys/${facts['networking']['fqdn']}.pem"
8-
$client_cert = "${ssl_dir}/certs/${facts['networking']['fqdn']}.pem"
7+
$client_pem_key = "${ssl_dir}/private_keys/${trusted['certname']}.pem"
8+
$client_cert = "${ssl_dir}/certs/${trusted['certname']}.pem"
99

1010
File {
1111
owner => $service,

templates/telegraf.conf.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<% unless $postgres_host_list.empty {-%>
7575
<% $postgres_host_list.each | $pg_host| {-%>
7676
[[inputs.postgresql_extensible]]
77-
address = "postgres://telegraf@<%= $pg_host %>/pe-puppetdb?sslmode=require&sslkey=/etc/telegraf/<%= $facts['networking']['fqdn'] %>_key.pem&sslcert=/etc/telegraf/<%= $facts['networking']['fqdn'] %>_cert.pem&sslrootcert=/etc/telegraf/ca.pem"
77+
address = "postgres://telegraf@<%= $pg_host %>/pe-puppetdb?sslmode=require&sslkey=/etc/telegraf/<%= $trusted['certname'] %>_key.pem&sslcert=/etc/telegraf/<%= $trusted['certname'] %>_cert.pem&sslrootcert=/etc/telegraf/ca.pem"
7878
outputaddress = "<%= $pg_host %>"
7979
databases = ["pe-puppetdb","pe-rbac","pe-activity","pe-classifier"]
8080
[[inputs.postgresql_extensible.query]]

0 commit comments

Comments
 (0)