Skip to content

Commit 4598483

Browse files
committed
Fix the update-classes script and set appropriate perms on it
1 parent 1cb89d9 commit 4598483

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

site/profile/files/puppetmaster/update-classes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ CERT=$(puppet master --confdir ${CONFDIR} --configprint hostcert)
66
CACERT=$(puppet master --confdir ${CONFDIR} --configprint localcacert)
77
PRVKEY=$(puppet master --confdir ${CONFDIR} --configprint hostprivkey)
88
OPTIONS="--cert ${CERT} --cacert ${CACERT} --key ${PRVKEY}"
9-
CONSOLE=$(awk '/server =/{print $NF}' ${CONFDIR}/console.conf)
9+
CONSOLE=$(awk '/server: /{print $NF}' ${CONFDIR}/classifier.yaml)
1010

1111
curl -k -X POST ${OPTIONS} "https://${CONSOLE}:4433/classifier-api/v1/update-classes"

site/profile/manifests/puppetmaster.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
file { '/usr/local/bin/update-classes.sh' :
5454
ensure => file,
5555
source => 'puppet:///modules/profile/puppetmaster/update-classes.sh',
56+
mode => '755',
5657
}
5758

5859
#https://docs.puppetlabs.com/puppet/latest/reference/config_file_environment.html#environmenttimeout

0 commit comments

Comments
 (0)