File tree 4 files changed +14
-9
lines changed
4 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ group :development, :test do
7
7
gem 'puppet-lint' , :require => false
8
8
gem 'serverspec' , :require => false
9
9
gem 'rspec-system-serverspec' , :require => false
10
+ gem 'vagrant-wrapper' , :require => false
10
11
end
11
12
12
13
if puppetversion = ENV [ 'PUPPET_GEM_VERSION' ]
Original file line number Diff line number Diff line change 31
31
validate_array($package_name )
32
32
validate_bool($panic )
33
33
validate_array($preferred_servers )
34
- validate_bool ($restrict )
34
+ validate_array ($restrict )
35
35
validate_array($servers )
36
36
validate_bool($service_enable )
37
37
validate_string($service_ensure )
Original file line number Diff line number Diff line change 8
8
$keys_trusted = []
9
9
$package_ensure = ' present'
10
10
$preferred_servers = []
11
- $restrict = true
11
+ $restrict = [
12
+ ' restrict default kod nomodify notrap nopeer noquery' ,
13
+ ' restrict -6 default kod nomodify notrap nopeer noquery' ,
14
+ ' restrict 127.0.0.1' ,
15
+ ' restrict -6 ::1' ,
16
+ ]
12
17
$service_enable = true
13
18
$service_ensure = ' running'
14
19
$service_manage = true
Original file line number Diff line number Diff line change 6
6
tinker panic 0
7
7
<% end -%>
8
8
9
- <% if @restrict -%>
10
- # Permit time synchronization with our time source, but do not
11
- # permit the source to query or modify the service on this system.
12
- restrict default kod nomodify notrap nopeer noquery
13
- restrict -6 default kod nomodify notrap nopeer noquery
14
- restrict 127.0.0.1
15
- restrict -6 ::1
9
+ <% if @restrict != [] -%>
10
+ # Permit time synchronization with our time source, but do not'
11
+ # permit the source to query or modify the service on this system.'
12
+ <% @restrict.flatten.each do |restrict| -%>
13
+ <%= restrict %>
14
+ <% end %>
16
15
<% end -%>
17
16
18
17
# Servers
You can’t perform that action at this time.
0 commit comments