PKG_NAME="puppet-agent"
PUPPET_BIN="/opt/puppetlabs/bin/puppet"
PKG_INSTALLED="n"
-ROLE="base_oel7"
-PROJECT=
+ROLE="default"
+PROJECT=""
INITIAL_INSTALL="n"
PUPPET_SERVER="puppetmaster.pixelpark.com"
# Note the quotes around `$TEMP': they are essential!
eval set -- "${tmp}"
+ eval_common_options "$@"
if [[ "${DEBUG}" == 'y' ]] ; then
declare -p REMAINING_OPTS
declare -p REMAINING_ARGS
arg="${REMAINING_OPTS[$i]}"
- case "$1" in
+ case "$arg" in
-E|--env|--environment)
j=$(( $i + 1 ))
ENVIRONMENT=$( echo "${REMAINING_OPTS[$j]}" | tr '[:upper:]' '[:lower:]' )
[main]
ca_ttl = 10y
[agent]
- # The file in which puppetd stores a list of the classes
- # associated with the retrieved configuratiion. Can be loaded in
- # the separate "puppet" executable using the "--loadclasses"
- # option.
- # The default value is '\$confdir/classes.txt'.
- classfile = \$vardir/classes.txt
-
- environment = ${ENVIRONMENT}
- report = true
- pluginsync = true
- splay = true
- server = ${PUPPET_SERVER}
- ca_server = ${PUPPET_CA_SERVER}
- use_cached_catalog = false
- usecacheonfailure = false
- pluginsource = puppet:///plugins
- pluginfactsource = puppet:///pluginfacts
+ ca_server = ${PUPPET_CA_SERVER}
+ certname = ${FQDN}
+ classfile = \$vardir/classes.txt
+ crl_refresh_interval = 1h
+ environment = ${ENVIRONMENT}
+ ignore_plugin_errors = true
+ number_of_facts_soft_limit = 10000
+ pluginfactsource = puppet:///pluginfacts
+ pluginsource = puppet:///plugins
+ report = true
+ server = ${PUPPET_SERVER}
+ splay = true
+ use_cached_catalog = false
+ usecacheonfailure = false
+
EOF
)
main() {
get_options "$@"
+ set_locale "en_US.utf8"
+
check_for_root
empty_line