diff options
Diffstat (limited to 'puppet/modules')
| -rw-r--r-- | puppet/modules/site_check_mk/manifests/agent/webapp.pp | 9 | ||||
| -rw-r--r-- | puppet/modules/site_config/manifests/hosts.pp | 1 | ||||
| -rw-r--r-- | puppet/modules/site_config/templates/hosts | 3 | 
3 files changed, 12 insertions, 1 deletions
| diff --git a/puppet/modules/site_check_mk/manifests/agent/webapp.pp b/puppet/modules/site_check_mk/manifests/agent/webapp.pp index dc2baf19..48fa0828 100644 --- a/puppet/modules/site_check_mk/manifests/agent/webapp.pp +++ b/puppet/modules/site_check_mk/manifests/agent/webapp.pp @@ -1,5 +1,14 @@  class site_check_mk::agent::webapp { +  # check webapp login +  package { 'python-srp': ensure => installed } +  file { '/usr/lib/check_mk_agent/local/nagios-webapp_login.py': +    ensure => link, +    target => '/srv/leap/webapp/test/nagios/webapp_login.py' +  } + + +  # check syslog    concat::fragment { 'syslog_webapp':      source  => 'puppet:///modules/site_check_mk/agent/logwatch/syslog/webapp.cfg',      target  => '/etc/check_mk/logwatch.d/syslog.cfg', diff --git a/puppet/modules/site_config/manifests/hosts.pp b/puppet/modules/site_config/manifests/hosts.pp index a3ce0c1f..e5d4dd70 100644 --- a/puppet/modules/site_config/manifests/hosts.pp +++ b/puppet/modules/site_config/manifests/hosts.pp @@ -3,6 +3,7 @@ class site_config::hosts() {    $hostname      = hiera('name')    $domain_hash   = hiera('domain')    $domain_public = $domain_hash['full_suffix'] +  $api           = hiera('api', '')    file { '/etc/hostname':      ensure  => present, diff --git a/puppet/modules/site_config/templates/hosts b/puppet/modules/site_config/templates/hosts index c0a2740f..bfcabaa5 100644 --- a/puppet/modules/site_config/templates/hosts +++ b/puppet/modules/site_config/templates/hosts @@ -1,7 +1,8 @@  # This file is managed by puppet, any changes will be overwritten!  127.0.0.1    localhost -127.0.1.1    <%= @hostname %>.<%= @domain_public %> <%= @hostname %> +127.0.1.1    <%= @hostname %>.<%= @domain_public %> <%= @hostname %> <% if (defined? @services) and (@services.include? 'webapp') -%><%= @domain_public %> <%= @api['domain'] %><% end -%> +  <%- if @hosts then -%>  <%   @hosts.keys.sort.each do |name| -%> | 
