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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ff6c857b37974cb25f27ac23756bff7f69e8c0f
4
- data.tar.gz: 3f5458a86db9f1662dc996be3e1951ba250e0b29
3
+ metadata.gz: 87e37287168010d760b9011c4563626769900a6d
4
+ data.tar.gz: 1b0903cf20c7f7b9178a4c6452351cb3da8e3dcf
5
5
  SHA512:
6
- metadata.gz: c3886fdab9de7d81ec0263e5cc8fe421208907fcd5f5f74d375b076645ee774e49921e85d2179a119d13a8260e9cec63d968831d842f13dd589fcdbe9b49e93a
7
- data.tar.gz: 557df5fea59f9191593cbe76f02162ea3f50c7090eaf75c4a0021440c31c8a011d7735f24330b6e16086e2fbb9a928498ee9be01343ba152afb79b5f4745c4c7
6
+ metadata.gz: a5a9c542115bfe96333bf757d01058cc97226c417d9e95bcf7f938758745381a7a21656ea5944cbbee42b7f29983357a7e04fa59f5def135262d6a49e11bfbf7
7
+ data.tar.gz: 94238d5b1cbe84153890fe692457e81e5a2de50e47f59e42512f15edd7bd0dad078e257d963c921da216a1b66401c86ee01e4e17f45ce5db897b8ad5123e284a
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Kitchen
3
3
  module Ansible
4
- VERSION = '0.46.3'.freeze
4
+ VERSION = '0.46.4'.freeze
5
5
  end
6
6
  end
@@ -46,17 +46,22 @@ module Kitchen
46
46
  ## Fix debconf tty warning messages
47
47
  export DEBIAN_FRONTEND=noninteractive
48
48
 
49
- ## 13.10, 14.04 include add-apt-repository in software-properties-common
50
- #{sudo_env('apt-get')} -y install software-properties-common
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
- ## 10.04, 12.04 include add-apt-repository in
53
- #{sudo_env('apt-get')} -y install python-software-properties
56
+ ## 10.04, 12.04 include add-apt-repository in
57
+ #{sudo_env('apt-get')} -y install python-software-properties
54
58
 
55
- ## 10.04 version of add-apt-repository doesn't accept --yes
56
- ## later versions require interaction from user, so we must specify --yes
57
- ## First try with -y flag, else if it fails, try without.
58
- ## "add-apt-repository: error: no such option: -y" is returned but is ok to ignore, we just retry
59
- #{sudo_env('add-apt-repository')} -y #{@config[:ansible_apt_repo]} || #{sudo_env('add-apt-repository')} #{@config[:ansible_apt_repo]}
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.3
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-03-23 00:00:00.000000000 Z
11
+ date: 2017-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen