updates template
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -9,11 +9,11 @@ gem 'facter'
|
|||||||
gem 'rspec-puppet'
|
gem 'rspec-puppet'
|
||||||
gem 'yard'
|
gem 'yard'
|
||||||
gem 'puppet-strings', '< 2.0.0'
|
gem 'puppet-strings', '< 2.0.0'
|
||||||
gem 'rake'
|
|
||||||
gem 'semantic_puppet'
|
gem 'semantic_puppet'
|
||||||
gem 'rgen'
|
gem 'rgen'
|
||||||
gem 'public_suffix', '<= 2.0.5'
|
gem 'public_suffix', '<= 2.0.5'
|
||||||
gem 'parallel', '<= 1.13.0'
|
gem 'parallel', '<= 1.13.0'
|
||||||
|
gem 'rake', '~> 12.3', '>= 12.3.3'
|
||||||
|
|
||||||
# rspec must be v2 for ruby 1.8.7
|
# rspec must be v2 for ruby 1.8.7
|
||||||
if RUBY_VERSION >= '1.8.7' && RUBY_VERSION < '1.9'
|
if RUBY_VERSION >= '1.8.7' && RUBY_VERSION < '1.9'
|
||||||
|
|||||||
@@ -49,8 +49,8 @@ ScriptAlias /nagios/cgi-bin/ "/usr/lib64/nagios/cgi-bin/"
|
|||||||
<% unless @ng_required_hosts.empty? -%>
|
<% unless @ng_required_hosts.empty? -%>
|
||||||
Require host <%= @ng_required_hosts %>
|
Require host <%= @ng_required_hosts %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% unless @ng_required_ips.empty? -%>
|
<% unless @source_range.empty? -%>
|
||||||
Require ip <%= @ng_required_ips %>
|
Require ip <%= @source_range %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
AuthName "Nagios Access"
|
AuthName "Nagios Access"
|
||||||
AuthType Basic
|
AuthType Basic
|
||||||
@@ -63,8 +63,8 @@ ScriptAlias /nagios/cgi-bin/ "/usr/lib64/nagios/cgi-bin/"
|
|||||||
<% unless @ng_required_hosts.empty? -%>
|
<% unless @ng_required_hosts.empty? -%>
|
||||||
Allow from <%= @ng_required_hosts %>
|
Allow from <%= @ng_required_hosts %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% unless @ng_required_ips.empty? -%>
|
<% unless @source_range.empty? -%>
|
||||||
Allow from <%= @ng_required_ips %>
|
Allow from <%= @source_range %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
AuthName "Nagios Access"
|
AuthName "Nagios Access"
|
||||||
AuthType Basic
|
AuthType Basic
|
||||||
@@ -89,8 +89,8 @@ Alias /nagios "/usr/share/nagios/html"
|
|||||||
<% unless @ng_required_hosts.empty? -%>
|
<% unless @ng_required_hosts.empty? -%>
|
||||||
Require host <%= @ng_required_hosts %>
|
Require host <%= @ng_required_hosts %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% unless @ng_required_ips.empty? -%>
|
<% unless @source_range.empty? -%>
|
||||||
Require ip <%= @ng_required_ips %>
|
Require ip <%= @source_range %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
AuthName "Nagios Access"
|
AuthName "Nagios Access"
|
||||||
AuthType Basic
|
AuthType Basic
|
||||||
@@ -103,8 +103,8 @@ Alias /nagios "/usr/share/nagios/html"
|
|||||||
<% unless @ng_required_hosts.empty? -%>
|
<% unless @ng_required_hosts.empty? -%>
|
||||||
Allow from <%= @ng_required_hosts %>
|
Allow from <%= @ng_required_hosts %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% unless @ng_required_ips.empty? -%>
|
<% unless @source_range.empty? -%>
|
||||||
Allow from <%= @ng_required_ips %>
|
Allow from <%= @source_range %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
AuthName "Nagios Access"
|
AuthName "Nagios Access"
|
||||||
AuthType Basic
|
AuthType Basic
|
||||||
|
|||||||
Reference in New Issue
Block a user