-
Notifications
You must be signed in to change notification settings - Fork 11
/
.kitchen.yml
173 lines (168 loc) · 4.25 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
---
# Installer:
# #!/bin/bash
# apt-get update
# apt-get install -y build-essential
# apt-get install -y ruby ruby-dev
# gem install test-kitchen kitchen-ansible kitchen-ec2
# Place this role into a subdir of an _empty_ dir. Because, kitchen uploads all nearby dirs.
driver:
name: ec2
region: ca-central-1
subnet_id: subnet-99e681e2
security_group_ids:
- sg-24901f4c
aws_ssh_key_id: testkitchen
instance_type: t2.xlarge
transport:
ssh_key: /root/.ssh/testkitchen.pem
connection_timeout: 10
connection_retries: 5
max_ssh_sessions: 2
platforms:
# - name: ubuntu-21.04
# driver:
# image_id: ami-00d9a1f9aa698cd29
# transport:
# username: ubuntu
# - name: ubuntu-20.04
# driver:
# image_id: ami-08a6203f59f9df866
# transport:
# username: ubuntu
# - name: ubuntu-18.04
# driver:
# image_id: ami-0427e8367e3770df1
# transport:
# username: ubuntu
# - name: ubuntu-16.04
# driver:
# image_id: ami-018b3065
# transport:
# username: ubuntu
# - name: ubuntu-17.10
# driver:
# image_id: ami-cfba02ab
# transport:
# username: ubuntu
# - name: ubuntu-17.04
# driver:
# image_id: ami-02b20966
# transport:
# username: ubuntu
# - name: debian-11
# driver:
# image_id: ami-0a1eebd24eb7a0cec
# transport:
# username: admin
# - name: debian-10
# driver:
# image_id: ami-037099906a22f210f
# transport:
# username: admin
# - name: debian-9.3
# driver:
# image_id: ami-1545ff71
# transport:
# username: admin
# - name: centos-7.4
# driver:
# image_id: ami-b111aad5
# transport:
# username: centos
# - name: centos-8
# driver:
# image_id: ami-0949556ba850896ed
# transport:
# username: centos
# - name: rocky-8
# driver:
# image_id: ami-06e4adca178dfc59a
# transport:
# username: rocky
- name: amazon2
driver:
image_id: ami-0e2407e55b9816758
transport:
ansible.builtin.username: ec2-user
provisioner:
attributes:
extra_vars:
vnc_testvar: testz
# - name: tightvnc-gnome
# attributes:
# extra_vars:
# vnc_desktop: gnome
provisioner:
name: ansible_playbook
roles_path: ../
hosts: test-kitchen
# the default setting:
# playbook: default.yml
# require_ansible_repo: true
ansible_verbose: true
ansible_version: latest
# require_pip: true
# ansible_binary_path: /usr/local/bin
custom_pre_install_command: if [ -e /usr/bin/apt-get ]; then apt-get update; fi
require_chef_for_busser: false
# ansible_connection: winrm
# require_windows_support: true
# extra_vars:
# vnc_desktop: gnome
# vnc_server: tigervnc
#
suites:
- name: tigervnc-mate
attributes:
extra_vars:
vnc_desktop: mate
vnc_server: tigervnc
default_vnc_users:
- username: ec2-user
# usergroup: 'admin'
# port 5901 is 1
vnc_num: 1
vnc_default_password: mypassword
# - username: 'john'
# # port 5902 is 2
# vnc_num: 2
# vnc_default_password: mypassword
# # vnc_server_options_per_user: "-localhost"
# - name: tigervnc-gnome
# attributes:
# extra_vars:
# vnc_desktop: gnome
# vnc_server: tigervnc
# # vnc_install_systemd_services: true
# default_vnc_users:
# - username: 'ec2-user'
# # usergroup: 'admin'
# # port 5901 is 1
# vnc_num: 1
# vnc_default_password: mypassword
# # - username: 'john'
# # # port 5902 is 2
# # vnc_num: 2
# # vnc_default_password: mypassword
# # # vnc_server_options_per_user: "-localhost"
# - name: tightvnc-gnome
# attributes:
# extra_vars:
# vnc_desktop: gnome
# vnc_server: tightvnc
# - name: tightvnc-xfce4
# attributes:
# extra_vars:
# vnc_desktop: xfce4
# vnc_server: tightvnc
# - name: vnc4server-gnome
# attributes:
# extra_vars:
# vnc_desktop: gnome
# vnc_server: vnc4server
# - name: vnc4server-xfce4
# attributes:
# extra_vars:
# vnc_desktop: xfce4
# vnc_server: vnc4server