forked from sous-chefs/nagios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
91 lines (87 loc) · 2.06 KB
/
.kitchen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
driver:
name: vagrant
network:
- ["forwarded_port", {guest: 80, host: 8080}]
provisioner:
name: chef_zero
require_chef_omnibus: <%= ENV['CHEF_VERSION'] || 'latest' %>
verifier:
name: inspec
platforms:
- name: ubuntu-14.04
run_list:
- recipe[apt::default]
- name: ubuntu-16.04
run_list:
- recipe[apt::default]
- name: debian-7.11
run_list:
- recipe[apt::default]
- name: debian-8.8
run_list:
- recipe[apt::default]
- name: centos-7.3
- name: centos-6.9
- name: amazon-linux
driver_config:
box: mvbcoding/awslinux
suites:
- name: server_package
run_list:
- recipe[nagios::default]
- recipe[nrpe::default]
- recipe[nagios_test::default]
- role[monitoring]
attributes:
nagios:
verifier:
inspec_tests:
- test/smoke/default/server.rb
- test/smoke/default/nagios_website.rb
- name: server_source
run_list:
- recipe[nagios::default]
- recipe[nrpe::default]
- recipe[nagios_test::default]
- role[monitoring]
attributes:
nagios:
server:
install_method: 'source'
- name: pagerduty
run_list:
- recipe[nagios::default]
- recipe[nagios::pagerduty]
- recipe[nrpe::default]
- recipe[nagios_test::default]
- role[monitoring]
attributes:
nagios:
server:
install_method: 'source'
pagerduty:
key: 'your_key_here_3eC2'
- name: allowed_ips
run_list:
- recipe[nagios::default]
- recipe[nrpe::default]
- recipe[nagios_test::default]
- role[monitoring]
attributes:
nagios:
allowed_ips: ['127.0.0.1', '::1']
- name: nginx
run_list:
- recipe[nagios_test::fcgiwrap_rpm]
- recipe[nagios::nginx]
- recipe[nrpe::default]
- recipe[nagios_test::default]
- role[monitoring]
attributes:
nagios:
server:
stop_apache: true
verifier:
inspec_tests:
- test/smoke/default/server.rb
- test/smoke/default/nagios_website.rb