-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy path.kitchen.yml
116 lines (107 loc) · 3.29 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
---
# This file is managed by the stacks toolchain. It may be overwritten by
# updates to the template. Your customizations should be placed inside the
# .kitchen.local.yml, which will not be overwritten by newer templates.
# If you need to override the driver, do it in ~/.kitchen/config.yml or using
# environment variables like VAGRANT_DEFAULT_PROVIDER.
driver:
name: vagrant
network:
- ["forwarded_port", {guest: 9200, host: 9200, auto_correct: true}] # elastic
- ["forwarded_port", {guest: 80, host: 8080, auto_correct: true}] # kibana
- ["forwarded_port", {guest: 443, host: 8443, auto_correct: true}] # ssl
driver_config:
require_chef_omnibus: true
provisioner:
name: chef_zero
client_rb:
environment: _default
attributes:
firewall:
ubuntu_iptables: true
allow_ssh: true
openssh:
server:
password_authentication: 'yes'
permit_root_login: 'yes'
cloud:
public_ipv4: '127.0.0.1'
authorization:
sudo:
users: ['vagrant']
passwordless: true
elasticsearch:
network:
host: '127.0.0.1'
index:
number_of_replicas: 0
# so the kitchen node doesn't have unallocated replica shards
# and comes up green (healthy) instead of yellow
discovery:
zen:
minimum_master_nodes: 1 # since search returns more than one, but they are fake
elkstack:
config:
iptables:
enabled: true
kibana:
password: 'kibana'
platforms:
- name: ubuntu-14.04
run_list:
- recipe[apt]
- name: ubuntu-12.04
run_list:
- recipe[apt]
- name: centos-6
run_list:
- recipe[yum]
attributes:
java:
jdk_version: 8
- name: centos-7
run_list:
- recipe[yum]
attributes:
java:
jdk_version: 8
suites:
- name: default # server
data_bags_path: "test/integration/forwarder/data_bags"
encrypted_data_bag_secret_key_path: "test/integration/forwarder/encrypted_data_bag_secret"
run_list:
- recipe[java::default]
- recipe[elkstack::default]
- name: agent # java agent with server
run_list:
- recipe[wrapper::logstash_override]
- recipe[java::default]
- recipe[elkstack::agent]
- name: forwarder # alternative golang agent with server
data_bags_path: "test/integration/forwarder/data_bags"
encrypted_data_bag_secret_key_path: "test/integration/forwarder/encrypted_data_bag_secret"
run_list:
- recipe[elkstack::forwarder]
- name: wrapper
data_bags_path: "test/integration/forwarder/data_bags"
encrypted_data_bag_secret_key_path: "test/integration/forwarder/encrypted_data_bag_secret"
run_list:
- recipe[wrapper::elk]
<% if ENV['RACKSPACE_MONITORING_USERNAME'] && ENV['RACKSPACE_MONITORING_API_KEY'] %>
<%# Disabling backup as elasticsearch_backup seems to fail if you don't give the good credentials %>
- name: monitoring # server
run_list:
- recipe[java::default]
- recipe[elkstack::default]
attributes:
elkstack:
config:
backups:
enabled: false
cloud_monitoring:
enabled: true
rackspace:
cloud_credentials:
username: <%= ENV['RACKSPACE_MONITORING_USERNAME'] %>
api_key: <%= ENV['RACKSPACE_MONITORING_API_KEY'] %>
<% end %>