Skip to content

Commit b3dd495

Browse files
committed
hieradata: Migrate primary Puppet server to puppet-04
1 parent 96859a3 commit b3dd495

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bin/provision-instance.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ssh root@"$INSTANCE" "$PUPPET" config --section agent set environment "$ENVIRONM
3131
ssh root@"$INSTANCE" "$PUPPET" agent -t || true
3232

3333
REAL_CSR_FINGERPRINT=$(ssh root@"$INSTANCE" openssl req -in "$SSL_PATH"/certificate_requests/"$INSTANCE".pem -outform der | sha256sum | awk '{ print $1 }' | sed 's/\(..\)/\1:/g; s/:$//; s/./\U&/g;')
34-
SERVER_CSR_FINGERPRINT=$(ssh "$PUPPET_SERVER" sudo openssl req -in /etc/puppetlabs/puppet/ssl/ca/requests/"$INSTANCE".pem -outform der | sha256sum | awk '{ print $1 }' | sed 's/\(..\)/\1:/g; s/:$//; s/./\U&/g;')
34+
SERVER_CSR_FINGERPRINT=$(ssh "$PUPPET_SERVER" sudo openssl req -in /etc/puppet/puppetserver/ca/requests/"$INSTANCE".pem -outform der | sha256sum | awk '{ print $1 }' | sed 's/\(..\)/\1:/g; s/:$//; s/./\U&/g;')
3535
if [ "$REAL_CSR_FINGERPRINT" != "$SERVER_CSR_FINGERPRINT" ]; then
3636
echo "CSR fingerprint does not match!"
3737
exit 1

hieradata/common.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ profile::base::groups:
504504

505505
profile::notifier::version: v4.0.1
506506

507-
profile::puppet::agent::ca_server: puppet-03.ops.jquery.net
507+
profile::puppet::agent::ca_server: puppet-04.ops.jquery.net
508508

509509
# https://github.com/wp-cli/wp-cli/releases
510510
profile::wordpress::base::wordpress_cli_version: "2.8.1"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
profile::puppet::agent::puppet_server: puppet-03.ops.jquery.net
1+
profile::puppet::agent::puppet_server: puppet-04.ops.jquery.net
22

33
profile::certbot::email: [email protected]

modules/profile/manifests/puppet/server.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
user => 'root',
278278
description => 'rsync Puppet CA files from the primary server',
279279
# TODO: stop hardcoding path once fully on Debian 12
280-
command => "/usr/bin/rsync -avp --delete --chown puppet:puppet -e \"/usr/bin/ssh -i /etc/ssh/local_keys.d/puppet-sync\" ${primary_host}:/etc/puppetlabs/puppetserver/ca/ ${server_config_path}/ca/",
280+
command => "/usr/bin/rsync -avp --delete --chown puppet:puppet -e \"/usr/bin/ssh -i /etc/ssh/local_keys.d/puppet-sync\" ${primary_host}:/etc/puppet/puppetserver/ca/ ${server_config_path}/ca/",
281281
interval => ['OnCalendar=*-*-* *:4/5:00'],
282282
}
283283

0 commit comments

Comments
 (0)