17
17
MONGODB_VERSION=2.6
18
18
- >
19
19
DISTRIBUTION=ubuntu-upstart
20
- DIST_VERSION=12.04
20
+ DIST_VERSION=12.04-builded
21
21
MONGODB_VERSION=3.2
22
22
- >
23
23
DISTRIBUTION=ubuntu-upstart
24
- DIST_VERSION=12.04
24
+ DIST_VERSION=12.04-builded
25
25
MONGODB_VERSION=3.0
26
26
- >
27
27
DISTRIBUTION=ubuntu-upstart
28
- DIST_VERSION=12.04
28
+ DIST_VERSION=12.04-builded
29
29
MONGODB_VERSION=2.6
30
- # - >
31
- # distribution=ubuntu-upstart
32
- # version=12.04
33
- # - >
34
- # distribution=debian
35
- # version=7
36
30
37
31
services :
38
32
- docker
@@ -59,7 +53,7 @@ script:
59
53
# Idempotence test
60
54
- >
61
55
sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION}
62
- | grep -q 'changed=0.*failed=0'
56
+ -e image_name=${DISTRIBUTION}:${DIST_VERSION} | grep -q 'changed=0.*failed=0'
63
57
&& (echo 'Idempotence test: pass' && exit 0)
64
58
|| (echo 'Idempotence test: fail' && exit 1)
65
59
@@ -68,11 +62,11 @@ script:
68
62
69
63
# Test 2
70
64
- >
71
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1
65
+ sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e image_name=${DISTRIBUTION}:${DIST_VERSION}
72
66
-e mongodb_version=${MONGODB_VERSION} -e mongodb_security_authorization='enabled'
73
67
# Idempotence test
74
68
- >
75
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1
69
+ sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e image_name=${DISTRIBUTION}:${DIST_VERSION}
76
70
-e mongodb_version=${MONGODB_VERSION} -e mongodb_security_authorization='enabled'
77
71
| grep -q 'changed=0.*failed=0'
78
72
&& (echo 'Idempotence test: pass' && exit 0)
@@ -83,11 +77,11 @@ script:
83
77
84
78
# Test 3
85
79
- >
86
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo
80
+ sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
87
81
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
88
82
# Idempotence test
89
83
- >
90
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo
84
+ sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
91
85
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
92
86
| grep -q 'changed=0.*failed=0'
93
87
&& (echo 'Idempotence test: pass' && exit 0)
@@ -98,12 +92,12 @@ script:
98
92
99
93
# Test 4
100
94
- >
101
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo
95
+ sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
102
96
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
103
97
-e mongodb_security_authorization='enabled'
104
98
# Idempotence test
105
99
- >
106
- sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo
100
+ sudo ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
107
101
-e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
108
102
-e mongodb_security_authorization='enabled'
109
103
| grep -q 'changed=0.*failed=0'
0 commit comments