Skip to content

Commit

Permalink
Update metadata.rb formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Oct 7, 2013
1 parent 18ccf37 commit 8debd91
Showing 1 changed file with 25 additions and 17 deletions.
42 changes: 25 additions & 17 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,42 @@

recipe 'ntp', 'Installs and configures ntp either as a server or client'

%w(ubuntu debian redhat centos fedora scientific amazon oracle freebsd windows xcp).each do |os|
supports os
end
supports 'amazon'
supports 'centos'
supports 'debian'
supports 'fedora'
supports 'freebsd'
supports 'redhat'
supports 'scientific'
supports 'oracle'
supports 'ubuntu'
supports 'windows'
supports 'xcp'

suggests 'windows'

attribute 'ntp',
:display_name => 'NTP',
:description => 'Hash of NTP attributes',
:type => 'hash'
:description => 'Hash of NTP attributes',
:type => 'hash'

attribute 'ntp/servers',
:display_name => 'NTP Servers',
:description => 'Array of servers we should talk to',
:type => 'array',
:default => ['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org'],
:required => 'recommended'
:description => 'Array of servers we should talk to',
:type => 'array',
:default => ['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org'],
:required => 'recommended'

attribute 'ntp/peers',
:display_name => 'NTP Peers',
:description => 'Array of local NTP servers, we should peer with',
:type => 'array',
:default => [],
:required => 'recommended'
:description => 'Array of local NTP servers, we should peer with',
:type => 'array',
:default => [],
:required => 'recommended'

attribute 'ntp/restrictions',
:display_name => 'Restriction lines',
:description => 'Array of restriction lines to apply to NTP servers',
:type => 'array',
:default => [],
:required => 'recommended'
:description => 'Array of restriction lines to apply to NTP servers',
:type => 'array',
:default => [],
:required => 'recommended'

0 comments on commit 8debd91

Please sign in to comment.