forked from Dynatrace/Dynatrace-AppMon-Puppet-DEPRECATED
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.kitchen.yml
156 lines (140 loc) · 5.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
---
provisioner:
name: puppet_apply
files_path: files
manifests_path: test/integration
driver:
name: docker
use_sudo: false
platforms:
- name: centos-7
driver_config:
privileged: true
use_cache: false
run_command: /usr/sbin/init
provision_command:
- yum update -y
# install initscripts needed to 'service' command
- yum -y install initscripts
# Install common dependencies
- yum install -y net-tools tar wget which
# Install ruby dependencies
- yum install -y git gcc-c++ bzip2 make patch libyaml-devel autoconf automake libtool bison curl sqlite-devel libssl-devel openssl-devel readline-devel zlib-devel
# Install ruby 2.4.0
- git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
- git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
- git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
- ~/.rbenv/bin/rbenv install 2.4.0
- ~/.rbenv/bin/rbenv global 2.4.0
- ln `~/.rbenv/bin/rbenv which ruby` /usr/bin/ruby
# Install Puppet 4.2.1
- ~/.rbenv/shims/gem install puppet -v 4.10.0
- ln `~/.rbenv/bin/rbenv which puppet` /usr/bin/puppet
# Install java 8
- yum install -y java-1.8.0-openjdk-devel
- name: debian-8.8
driver_config:
use_cache: false
provision_command:
- apt-get update
# Install common dependencies
- apt-get install -y net-tools tar wget
# Install java 8
- echo "deb http://ftp.de.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
- apt-get update
- apt install -y -t jessie-backports openjdk-8-jre-headless ca-certificates-java
- apt-get install openjdk-8-jdk -y
# Install ruby dependencies
- apt-get install -y git-core build-essential libffi-dev libssl-dev libcurl4-openssl-dev libreadline-dev
# Install ruby 2.4.0
- git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
- git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
- git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
- ~/.rbenv/bin/rbenv install 2.4.0
- ~/.rbenv/bin/rbenv global 2.4.0
- ln `~/.rbenv/bin/rbenv which ruby` /usr/bin/ruby
# Install Puppet 4.10.0
- ~/.rbenv/shims/gem install puppet -v 4.10.0
- ln `~/.rbenv/bin/rbenv which puppet` /usr/bin/puppet
- name: ubuntu-16.04
driver_config:
use_cache: false
provision_command:
- apt-get update
# Install common dependencies
- apt-get install -y net-tools tar wget
# Install java 8
- apt-get install openjdk-8-jdk -y
# Install ruby dependencies
- apt-get install -y git-core build-essential libffi-dev libssl-dev libcurl4-openssl-dev libreadline-dev
# Install ruby 2.4.0
- git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
- git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
- git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
- ~/.rbenv/bin/rbenv install 2.4.0
- ~/.rbenv/bin/rbenv global 2.4.0
- ln `~/.rbenv/bin/rbenv which ruby` /usr/bin/ruby
# Install Puppet 4.10.0
- ~/.rbenv/shims/gem install puppet -v 4.10.0
- ln `~/.rbenv/bin/rbenv which puppet` /usr/bin/puppet
suites:
- name: apache_wsagent_debian
provisioner:
manifest: apache_wsagent_debian/init.pp
includes:
- debian-8.8
- ubuntu-16.04
- name: apache_wsagent_redhat
provisioner:
manifest: apache_wsagent_redhat/init.pp
includes:
- centos-6
- name: agents_package
provisioner:
manifest: agents_package/init.pp
- name: collector
provisioner:
manifest: collector/init.pp
- name: java_agent
provisioner:
manifest: java_agent/init.pp
- name: memory_analysis_server
provisioner:
manifest: memory_analysis_server/init.pp
- name: server
provisioner:
manifest: server/init.pp
- name: server_collector_agent
provisioner:
manifest: server_collector_agent/init.pp
- name: wsagent_package
provisioner:
manifest: wsagent_package/init.pp
- name: php_one_agent_ubuntu
provisioner:
manifest: php_one_agent_debian/init.pp
driver_config:
use_cache: false
provision_command:
- apt-get install -y apache2
- apt-get install -y php7.0
- apt-get install -y libapache2-mod-php7.0
includes:
- ubuntu-16.04
- name: php_one_agent_debian
provisioner:
manifest: php_one_agent_debian/init.pp
driver_config:
use_cache: false
provision_command:
- echo "deb http://packages.dotdeb.org jessie all" >> /etc/apt/sources.list
- echo "deb-src http://packages.dotdeb.org jessie all" >> /etc/apt/sources.list
- apt-get install -y wget
- wget https://www.dotdeb.org/dotdeb.gpg
- apt-key add dotdeb.gpg
- apt-get update
- apt-get install -y apache2
- apt-get install -y php7.0
- apt-get install -y libapache2-mod-php7.0
includes:
- debian-8.8