kitchen-ansible 0.46.3 → 0.46.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchen-ansible/version.rb +1 -1
- data/lib/kitchen/provisioner/ansible/os/debian.rb +14 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87e37287168010d760b9011c4563626769900a6d
|
4
|
+
data.tar.gz: 1b0903cf20c7f7b9178a4c6452351cb3da8e3dcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5a9c542115bfe96333bf757d01058cc97226c417d9e95bcf7f938758745381a7a21656ea5944cbbee42b7f29983357a7e04fa59f5def135262d6a49e11bfbf7
|
7
|
+
data.tar.gz: 94238d5b1cbe84153890fe692457e81e5a2de50e47f59e42512f15edd7bd0dad078e257d963c921da216a1b66401c86ee01e4e17f45ce5db897b8ad5123e284a
|
@@ -46,17 +46,22 @@ module Kitchen
|
|
46
46
|
## Fix debconf tty warning messages
|
47
47
|
export DEBIAN_FRONTEND=noninteractive
|
48
48
|
|
49
|
-
|
50
|
-
|
49
|
+
if [ -f /etc/os-release ] && [ `grep 'ID=debian' /etc/os-release` ]; then
|
50
|
+
#{sudo_env('echo')} "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list
|
51
|
+
#{sudo_env('apt-key')} adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
52
|
+
else
|
53
|
+
## 13.10, 14.04 include add-apt-repository in software-properties-common
|
54
|
+
#{sudo_env('apt-get')} -y install software-properties-common
|
51
55
|
|
52
|
-
|
53
|
-
|
56
|
+
## 10.04, 12.04 include add-apt-repository in
|
57
|
+
#{sudo_env('apt-get')} -y install python-software-properties
|
54
58
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
59
|
+
## 10.04 version of add-apt-repository doesn't accept --yes
|
60
|
+
## later versions require interaction from user, so we must specify --yes
|
61
|
+
## First try with -y flag, else if it fails, try without.
|
62
|
+
## "add-apt-repository: error: no such option: -y" is returned but is ok to ignore, we just retry
|
63
|
+
#{sudo_env('add-apt-repository')} -y #{@config[:ansible_apt_repo]} || #{sudo_env('add-apt-repository')} #{@config[:ansible_apt_repo]}
|
64
|
+
fi
|
60
65
|
#{sudo_env('apt-get')} update
|
61
66
|
#{sudo_env('apt-get')} -y install ansible#{ansible_debian_version}
|
62
67
|
fi
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-ansible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.46.
|
4
|
+
version: 0.46.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neill Turner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|