This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
/
.kitchen.yml
79 lines (74 loc) · 2.04 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
---
<%
http_port = ENV['KITCHEN_ICINGA2_HTTP_PORT'] || 8080
https_port = ENV['KITCHEN_ICINGA2_HTTPS_PORT'] || 8443
db_host = ENV['KITCHEN_DB_HOST'] || 'localhost'
chef_omnibus_url = ENV['KITCHEN_CHEF_OMNIBUS_URL'] || nil
%>
driver:
name: vagrant
provisioner:
name: chef_zero
<% if chef_omnibus_url %>
chef_omnibus_url: '<%= chef_omnibus_url %>'
<% end %>
platforms:
- name: centos-6.8
- name: centos-7.2
- name: ubuntu-14.04
- name: ubuntu-16.04
- name: debian-8.5
suites:
- name: server
run_list:
- recipe[icinga2::server]
- recipe[icinga2-test::default]
- name: client
run_list:
- recipe[icinga2::client]
- name: web2-package
driver:
network:
- ["forwarded_port", {guest: 80, host: <%= http_port %>, auto_correct: true}]
- ["forwarded_port", {guest: 443, host: <%= https_port %>, auto_correct: true}]
run_list:
- recipe[icinga2::server]
- recipe[icinga2-test::default]
attributes:
icinga2:
web2:
enable: true
install_method: package
ido:
install_mysql_client: true
db_host: <%= db_host %>
load_schema: true
- name: web2-source
driver:
network:
- ["forwarded_port", {guest: 80, host: <%= http_port %>, auto_correct: true}]
- ["forwarded_port", {guest: 443, host: <%= https_port %>, auto_correct: true}]
run_list:
- recipe[icinga2::server]
- recipe[icinga2-test::default]
attributes:
icinga2:
web2:
enable: true
install_method: source
ido:
install_mysql_client: true
db_host: <%= db_host %>
load_schema: true
- name: classicui
driver:
network:
- ["forwarded_port", {guest: 80, host: <%= http_port %>, auto_correct: true}]
- ["forwarded_port", {guest: 443, host: <%= https_port %>, auto_correct: true}]
run_list:
- recipe[icinga2::server]
- recipe[icinga2-test::default]
attributes:
icinga2:
classic_ui:
enable: true