Skip to content

Commit 9937d96

Browse files
committed
Merge pull request #308 from HelenCampbell/keyUpdates
Update to readme and test for key params
2 parents 973a453 + 1e761fc commit 9937d96

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -192,19 +192,19 @@ Specifies one or more network interfaces for NTP to listen on. Valid options: ar
192192

193193
####`keys_controlkey`
194194

195-
Provides a control key to be used by NTP. Valid options: string. Default value: ' '
195+
Specifies the key identifier to use with the ntpq utility. Valid options: value in the range of 1 to 65,534 inclusive. Default value: ' '
196196

197197
####`keys_enable`
198198

199199
Tells Puppet whether to enable key-based authentication. Valid options: 'true' or 'false'. Default value: 'false'
200200

201201
####`keys_file`
202202

203-
Specifies an NTP keys file. Valid options: string containing an absolute path. Default value: '/etc/ntp/keys' (except on AIX, SLES, and Solaris)
203+
Specifies the complete path and location of the MD5 key file containing the keys and key identifiers used by ntpd, ntpq and ntpdc when operating with symmetric key cryptography. Valid options: string containing an absolute path. Default value: '/etc/ntp/keys' (except on AIX, SLES, and Solaris)
204204

205205
####`keys_requestkey`
206206

207-
Provides a request key to be used by NTP. Valid options: string. Default value: ' '
207+
Specifies the key identifier to use with the ntpdc utility program. Valid options: value in the range of 1 to 65,534 inclusive. Default value: ' '
208208

209209
#### `keys_trusted`:
210210
Provides one or more keys to be trusted by NTP. Valid options: array of keys. Default value: [ ]

spec/acceptance/ntp_parameters_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
class { 'ntp':
102102
keys_enable => true,
103103
keys_file => '/etc/ntp/keys',
104-
keys_controlkey => '/etc/ntp/controlkey',
104+
keys_controlkey => '15',
105105
keys_requestkey => '1',
106106
keys_trusted => [ '1', '2' ],
107107
}
@@ -115,7 +115,7 @@ class { 'ntp':
115115
describe file("#{config}") do
116116
it { should be_file }
117117
its(:content) { should match 'keys /etc/ntp/keys' }
118-
its(:content) { should match 'controlkey /etc/ntp/controlkey' }
118+
its(:content) { should match 'controlkey 15' }
119119
its(:content) { should match 'requestkey 1' }
120120
its(:content) { should match 'trustedkey 1 2' }
121121
end

0 commit comments

Comments
 (0)