Fix the update-classes script and set appropriate perms on it
This commit is contained in:
parent
1cb89d981a
commit
4598483d0f
@ -6,6 +6,6 @@ CERT=$(puppet master --confdir ${CONFDIR} --configprint hostcert)
|
|||||||
CACERT=$(puppet master --confdir ${CONFDIR} --configprint localcacert)
|
CACERT=$(puppet master --confdir ${CONFDIR} --configprint localcacert)
|
||||||
PRVKEY=$(puppet master --confdir ${CONFDIR} --configprint hostprivkey)
|
PRVKEY=$(puppet master --confdir ${CONFDIR} --configprint hostprivkey)
|
||||||
OPTIONS="--cert ${CERT} --cacert ${CACERT} --key ${PRVKEY}"
|
OPTIONS="--cert ${CERT} --cacert ${CACERT} --key ${PRVKEY}"
|
||||||
CONSOLE=$(awk '/server =/{print $NF}' ${CONFDIR}/console.conf)
|
CONSOLE=$(awk '/server: /{print $NF}' ${CONFDIR}/classifier.yaml)
|
||||||
|
|
||||||
curl -k -X POST ${OPTIONS} "https://${CONSOLE}:4433/classifier-api/v1/update-classes"
|
curl -k -X POST ${OPTIONS} "https://${CONSOLE}:4433/classifier-api/v1/update-classes"
|
||||||
|
@ -53,6 +53,7 @@ class profile::puppetmaster {
|
|||||||
file { '/usr/local/bin/update-classes.sh' :
|
file { '/usr/local/bin/update-classes.sh' :
|
||||||
ensure => file,
|
ensure => file,
|
||||||
source => 'puppet:///modules/profile/puppetmaster/update-classes.sh',
|
source => 'puppet:///modules/profile/puppetmaster/update-classes.sh',
|
||||||
|
mode => '755',
|
||||||
}
|
}
|
||||||
|
|
||||||
#https://docs.puppetlabs.com/puppet/latest/reference/config_file_environment.html#environmenttimeout
|
#https://docs.puppetlabs.com/puppet/latest/reference/config_file_environment.html#environmenttimeout
|
||||||
|
Loading…
Reference in New Issue
Block a user