-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate ntp paths #25
base: master
Are you sure you want to change the base?
Changes from 5 commits
ce43b6c
eae797a
b8f00cd
5ad1cb1
7807614
9791e96
4a30314
3c0a9de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
instance=overwrite | ||
partial=nocheck | ||
runlevel=nocheck | ||
idepend=nocheck | ||
rdepend=nocheck | ||
space=nocheck | ||
setuid=nocheck | ||
conflict=nocheck | ||
action=nocheck | ||
networktimeout=60 | ||
networkretries=3 | ||
authentication=quit | ||
keystore=/var/sadm/security | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this a solaris default or an Ericsson specifc thing? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is not real an Ericsson specific thing - but Solaris default, The default admin file = /var/sadm/install/admin/default also lists keystore=/var/sadm/security as the keystore directory - however, the default admin file causes interactive installation. ref: |
||
basedir=default |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,16 @@ fudge 127.127.1.0 stratum <%= @fudge_stratum %> | |
|
||
# Key file containing the keys and key identifiers used when operating | ||
# with symmetric key cryptography. | ||
|
||
<% if @operatingsystem !~ /SLE[DS]/ -%> | ||
keys /etc/ntp/keys | ||
<% end -%> | ||
|
||
<% if @operatingsystem =~ /SLE[DS]/ -%> | ||
#Failing because of a bug - when key is set, | ||
#need to figure out how to get it fixed | ||
#keys /etc/ntp.keys | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SuSE stores its keys in /etc/ntp.keys - but it seems to fail by default when keys /etc/ntp/keys are specified in /etc/ntp.conf There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well that makes sense. We are looking in the wrong place. Make the path for /etc/ntp/keys a variable. |
||
<% end -%> | ||
|
||
# Specify the key identifiers which are trusted. | ||
#trustedkey 4 8 42 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are correct that it will complain, since it will needed different values for source and adminfile. We are lucky here that there is only one package, which prevents us from having to put in more complicated logic.
We might want to ensure that the type is a string for solaris or that the array only has one element.