Commit d858b561963e5c930918afbfbc079944930e56fa

Authored by Paulo Tada
1 parent a3f8f787
Exists in syslog

Creating a machine "monitor" and configuring for local usage

config/local/ips.yaml
@@ -3,4 +3,4 @@ email: 10.10.10.3 @@ -3,4 +3,4 @@ email: 10.10.10.3
3 social: 10.10.10.4 3 social: 10.10.10.4
4 database: 10.10.10.5 4 database: 10.10.10.5
5 reverseproxy: 10.10.10.6 5 reverseproxy: 10.10.10.6
6 - 6 +monitor: 10.10.10.7
@@ -14,6 +14,11 @@ database: @@ -14,6 +14,11 @@ database:
14 run_list: 14 run_list:
15 - role[server] 15 - role[server]
16 - role[database_server] 16 - role[database_server]
  17 +monitor:
  18 + run_list:
  19 + - recipe[basics]
  20 + - recipe[firewall]
  21 + - role[monitoring_server]
17 reverseproxy: 22 reverseproxy:
18 run_list: 23 run_list:
19 - role[server] 24 - role[server]
roles/monitoring_server.rb
1 name 'monitoring_server' 1 name 'monitoring_server'
2 description 'Monitoring server' 2 description 'Monitoring server'
3 -run_list 'recipe[munin]' 3 +run_list 'recipe[munin]', 'recipe[rsyslog::server]'
roles/server.rb
1 name 'server' 1 name 'server'
2 description 'Common configuration for all servers' 2 description 'Common configuration for all servers'
3 -run_list 'recipe[basics]', 'recipe[firewall]', 'recipe[email::client]', 'recipe[munin::node]' 3 +run_list 'recipe[basics]', 'recipe[firewall]', 'recipe[email::client]', 'recipe[munin::node]', 'recipe[rsyslog::node]'
4 \ No newline at end of file 4 \ No newline at end of file