forked from sous-chefs/nagios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kitchen.yml
123 lines (119 loc) · 3.03 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
---
driver:
name: vagrant
network:
- ["forwarded_port", {guest: 80, host: 8080}]
provisioner:
name: chef_infra
product_name: chef
enforce_idempotency: true
# This needs to be 3 due to the use of node searches
multiple_converge: 3
deprecations_as_errors: true
verifier:
name: inspec
platforms:
- name: almalinux-8
- name: almalinux-9
- name: centos-stream-9
- name: debian-11
- name: debian-12
- name: fedora-latest
- name: rockylinux-8
- name: rockylinux-9
- name: ubuntu-20.04
- name: ubuntu-22.04
- name: ubuntu-24.04
suites:
- name: server_package
run_list:
- recipe[nagios::default]
- recipe[nrpe::default]
- recipe[nagios_test::default]
- role[monitoring]
verifier:
inspec_tests:
- test/smoke/default/server.rb
- test/smoke/default/nagios_website.rb
inputs:
install_method: 'package'
- name: server_package_ldap
run_list:
- recipe[nagios::default]
- recipe[nrpe::default]
- recipe[nagios_test::default]
- role[monitoring]
attributes:
nagios:
server_auth_method: 'ldap'
ldap_url: 'ldaps://ldap.example.org:636/ou=People,dc=example,dc=org?uid?sub?(objectClass=*)'
verifier:
inspec_tests:
- test/smoke/default/server.rb
- test/smoke/default/nagios_website.rb
inputs:
install_method: 'package'
ldap_auth: true
- name: server_source
run_list:
- recipe[nagios::default]
- recipe[nrpe::default]
- recipe[nagios_test::default]
- role[monitoring]
attributes:
nagios:
server:
install_method: 'source'
verifier:
inspec_tests:
- test/smoke/server_source/default_test.rb
- name: swappable_config
run_list:
- recipe[nagios::default]
- recipe[nrpe::default]
- recipe[nagios_test::default]
- role[monitoring]
attributes:
nagios:
server:
install_method: 'package'
nagios_config:
template_cookbook: 'nagios_test'
verifier:
inspec_tests:
- test/smoke/default/server.rb
- test/smoke/default/nagios_website.rb
- test/smoke/swappable_config/default_test.rb
inputs:
install_method: 'package'
- name: pagerduty
run_list:
- recipe[nagios::pagerduty]
- recipe[nagios::default]
- recipe[nrpe::default]
- recipe[nagios_test::default]
- role[monitoring]
attributes:
nagios:
server:
install_method: 'package'
pagerduty:
key: 'your_key_here_3eC2'
verifier:
inspec_tests:
- test/smoke/pagerduty/default_test.rb
- test/smoke/pagerduty/pagerduty_test.rb
- name: nginx
run_list:
- 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