forked from rk295/ansible-role-openvpnas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.kitchen.yml
62 lines (57 loc) · 1.64 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
---
driver:
aws_ssh_key_id: travis_key
instance_type: m4.large
name: ec2
region: eu-west-1
security_group_ids: ["sg-0039ae3576be6d1c3"]
subnet_id: subnet-5d97383a
tags:
Name: "openvpnas-kitchen"
Creator: "test-kitchen"
vpc_id: "vpc-281db64f"
platforms:
- name: openvpn-as
driver:
image_id: ami-3ed28747
# This is needed to prevent OpenVPN running the wizzard on first boot
user_data: |
admin_user=openvpn
admin_pw=password
transport:
connection_retries: 5
connection_timeout: 10
ssh_key: .ssh/travis_key
username: openvpnas
provisioner:
additional_copy_path: test/integration/default/test-cert.yml
ansible_connection: ssh
ansible_sudo: true
ansible_verbose: true
ansible_verbosity: 2
# The OpenVPN AS AMI has an "apt upgrade" which runs on first boot. This
# causes ansible-kitchen to fail to install ansible. This loop is a a
# horrible attempt at blocking the ansible install until that upgrade
# releases the apt lock.
custom_pre_install_command: |
echo "Looping, waiting for dpkg lock to be released" ;\
sudo /bin/sh -c '\
systemctl stop apt-daily ;\
while fuser /var/lib/dpkg/lock > /dev/null 2>&1 ;do \
echo "waiting for apt lock to be released, sleeping for 3s"; \
sleep 3; \
done'
hosts: test-kitchen
name: ansible_playbook
require_ansible_omnibus: false
require_ansible_repo: true
require_chef_for_busser: false
verifier:
name: serverspec
use_sudo: true
sudo_path: true
suites:
- name: default
verifier:
patterns:
- roles/ansible-role-openvpnas/test/integration/default/serverspec/default_spec.rb