-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
125 lines (120 loc) · 3.59 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
124
125
---
driver_plugin: vagrant
driver_config:
require_chef_omnibus: '12.16'
customize:
cpus: 1
memory: 512
ssh:
insert_key: false
# network:
# - ["private_network", {ip: "192.0.2.2", netmask: "255.255.255.255"}]
provisioner:
name: chef_zero
platforms:
- name: ubuntu-14.04
run_list: ['recipe[fake::create_secrets]','recipe[apt]']
driver_config:
box: bento/ubuntu-14.04
- name: ubuntu-16.04
run_list: ['recipe[fake::create_secrets]','recipe[apt]']
driver_config:
box: bento/ubuntu-16.04
- name: centos-6.8
run_list: ['recipe[fake::create_secrets]','recipe[yum-epel]']
driver_config:
box: bento/centos-6.8
- name: centos-7.2
run_list: ['recipe[fake::create_secrets]','recipe[yum-epel]']
driver_config:
box: bento/centos-7.2
busser:
sudo: true
suites:
# This test sets up a simple PHP application, verifies the functionality of the application, and ensures that
# the required application packages are installed.
#
- name: default
run_list:
- recipe[fake::create_secrets]
- recipe[rs-application_php::default]
- recipe[rs-application_php::tags]
- recipe[rs-application_php::collectd]
- recipe[curl::default]
attributes:
apt:
compile_time_update: true
rightscale:
instance_uuid: '01-ABCDEFGH0123'
rs-base:
collectd_server: 'tss-4.rightscale.com'
cloud:
provider: vagrant
public_ips: ['33.33.33.10']
private_ips: ['10.0.2.15']
rs-application_php:
packages: ['sl']
application_name: example
vhost_path: www.example.com
bind_network_interface: 'private'
migration_command: echo migration is being performed >> /usr/local/www/sites/example/migration
scm:
revision: unified_php
repository: git://github.com/rightscale/examples.git
- name: default-php-7
includes: centos-7.2
run_list:
- recipe[yum-epel]
- recipe[yum-ius]
- recipe[rs-application_php::default]
- recipe[rs-application_php::tags]
- recipe[rs-application_php::collectd]
- recipe[curl::default]
attributes:
apt:
compile_time_update: true
rightscale:
instance_uuid: '01-ABCDEFGH0123'
rs-base:
collectd_server: 'tss-4.rightscale.com'
cloud:
provider: vagrant
public_ips: ['33.33.33.10']
private_ips: ['10.0.2.15']
rs-application_php:
packages: ['sl', 'php70u', 'php70u-common', 'php70u-mysqlnd', 'php70u-pear','php70u-devel','php70u-cli']
application_name: example
vhost_path: www.example.com
bind_network_interface: 'public'
migration_command: echo migration is being performed >> /usr/local/www/sites/example/migration
scm:
revision: unified_php
repository: git://github.com/rightscale/examples.git
# This test sets up a mysql database server locally, tests the database connectivity from the application to the
# database server, and ensures that the required database client packages are installed.
#
- name: database_mysql
run_list:
- recipe[fake::database_mysql]
- recipe[rs-application_php::default]
- recipe[curl::default]
attributes:
# The mysql cookbook requires these attributes to be set for running mysql server in a
# vagrant environment
apt:
compile_time_update: true
cloud:
provider: vagrant
public_ips: ['33.33.33.10']
private_ips: ['10.0.2.15']
rs-application_php:
application_name: example
write_settings_file: true
scm:
revision: unified_php
repository: git://github.com/rightscale/examples.git
database:
host: localhost
user: app_user
password: apppass
schema: app_test