You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.
change from stopped to running failed: Could not start Service[ntp]: Execution of '/sbin/service ntp start' returned 5: NTP key id not defined..skipped
If keys is defined it checks for requestkey to be defined. It also checks the key file for the existence of the id.
Here is a snip of the code
NTP_KEYS=$(awk '/^keys/ { print $2 }' $NTP_CONF)
NTP_KEYID=$(awk '/^requestkey[[:blank:]]/ { print $2 }' $NTP_CONF)
NTP_PASSWD=$(test -n "$NTP_KEYS" -a -n "$NTP_KEYID" -a -r "$NTP_KEYS" && awk '$0 ~ key { print $3 }'
key="^[[:blank:]]*$NTP_KEYID[[:blank:]]" $NTP_KEYS)
if [ -n "$NTP_KEYS" ]; then
if test -z "$NTP_KEYID"; then
echo -n "NTP key id not defined"
rc_status -s
exit 5
fi
if test -z "$NTP_PASSWD"; then
echo -n "No password for requestkey set"
exit 1
fi
fi
The text was updated successfully, but these errors were encountered:
I suppose we should provide a custom ntp.conf template for Suse and populate it with keys, whose value should be exposed by a parameter in the class , or, alternatively, you can try to provide the values for the params key_file and key_file_source if they can stay on separated files.
FYI, I'm not going to maintain actively this module (it will be replaced by https://github.com/example42/puppet-tp), if you want and feel like you can do that you can ask to maintain it.
Yes that would make sense. I would not limit it to SuSE. Anyone can use
it. It just so happens SuSE has a validation it does during startup. A
bit over engineered IMO.
On Wed, Dec 31, 2014 at 3:31 AM, Alessandro Franceschi < [email protected]> wrote:
I suppose we should provide a custom ntp.conf template for Suse and
populate it with keys, whose value should be exposed by a parameter in the
class , or, alternatively, you can try to provide the values for the params
key_file and key_file_source if they can stay on separated files.
FYI, I'm not going to maintain actively this module (it will be replaced
by https://github.com/example42/puppet-tp), if you want and feel like you
can do that you can ask to maintain it.
Reply to this email directly or view it on GitHub #28 (comment).
Christian
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Error from puppet
change from stopped to running failed: Could not start Service[ntp]: Execution of '/sbin/service ntp start' returned 5: NTP key id not defined..skipped
If keys is defined it checks for requestkey to be defined. It also checks the key file for the existence of the id.
Here is a snip of the code
The text was updated successfully, but these errors were encountered: