kitchen-ansible 0.50.0 → 0.50.1

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
  SHA256:
3
- metadata.gz: c7ad611fbb31e8722a7867348c3ed91580a66b85f1458ae44217396dac67509c
4
- data.tar.gz: da95ffe993c35e40964c8c8eb4a367309c937b0b705c9145823766d528f13746
3
+ metadata.gz: 12f00ffe0cf6ec8436074b5fffcfbf108a8b382a6f5b0ea916214bbc139a8994
4
+ data.tar.gz: 5ccb79c952524c5dc2388a89459b8c3c0b2265a9cf4f0fc4b534b3e1008efb4c
5
5
  SHA512:
6
- metadata.gz: fb4fc3b33307eeacf64eae37da8ae10f8b9604256db742a662345bb8727efc9c7f6cdd67af73ec783bb3a198595203952d8c07ec13226ecb67cd1656791e6c9d
7
- data.tar.gz: 8c651db78e32cf1cdbb655961f8ce86119ec2182f32863b8a2348820713c78288aa35225dbaf1be37395cdf70c3a0923e419effdcfd8a3e3e97af0309f259d5f
6
+ metadata.gz: 8d8b98e8cc45cf4f18c4b291af31e8dea39748ef0a1110af663508eb9714f82e0f4f7c14cdad2d60bed6e2600b84da51a2b57c43fa12187c090dccf4fefd7f6f
7
+ data.tar.gz: 4c9cfc4c83fe4a99bbf86cca8c0a1cd69dfea00838b9a5df2bbe056e3f6c22c3dcea3daaa7babf885c8fd5b09eb1372e666b1bba9938f868b92078313df362ee
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Kitchen
3
3
  module Ansible
4
- VERSION = '0.50.0'.freeze
4
+ VERSION = '0.50.1'.freeze
5
5
  end
6
6
  end
@@ -55,7 +55,9 @@ module Kitchen
55
55
  #{sudo_env('apt-get')} -y install software-properties-common
56
56
 
57
57
  ## 10.04, 12.04 include add-apt-repository in
58
- #{sudo_env('apt-get')} -y install python-software-properties
58
+ if [apt-cache pkgnames | grep -q 'python-software-properties']; then
59
+ #{sudo_env('apt-get')} -y install python-software-properties
60
+ fi
59
61
 
60
62
  ## 10.04 version of add-apt-repository doesn't accept --yes
61
63
  ## later versions require interaction from user, so we must specify --yes
@@ -29,7 +29,13 @@ module Kitchen
29
29
  if [ ! $(which ansible) ]; then
30
30
  #{redhat_yum_repo}
31
31
  #{update_packages_command}
32
- #{sudo_env('dnf')} -y install #{ansible_package_name} libselinux-python git python2-dnf
32
+ FEDORA_RELEASE=$(rpm --query --queryformat="%{VERSION}" --file /etc/fedora-release)
33
+
34
+ if [ ${FEDORA_RELEASE} -le 28 ]; then
35
+ #{sudo_env('dnf')} -y install #{ansible_package_name} libselinux-python git python2-dnf
36
+ else
37
+ #{sudo_env('dnf')} -y install #{ansible_package_name} python3-libselinux git python3-dnf
38
+ fi
33
39
  fi
34
40
  INSTALL
35
41
  end
@@ -921,10 +921,10 @@ module Kitchen
921
921
  roles_paths << File.join(config[:root_path], 'roles') unless config[:roles_path].nil?
922
922
  if config[:additional_copy_role_path]
923
923
  if config[:additional_copy_role_path].is_a? String
924
- roles_paths << File.join(config[:root_path], File.basename(config[:additional_copy_role_path]))
924
+ roles_paths << File.join(config[:root_path], 'roles', File.basename(config[:additional_copy_role_path]))
925
925
  else
926
926
  config[:additional_copy_role_path].each do |path|
927
- roles_paths << File.join(config[:root_path], File.basename(File.expand_path(path)))
927
+ roles_paths << File.join(config[:root_path], 'roles', File.basename(File.expand_path(path)))
928
928
  end
929
929
  end
930
930
  end
@@ -952,12 +952,12 @@ module Kitchen
952
952
  if config[:additional_copy_role_path]
953
953
  if config[:additional_copy_role_path].is_a? String
954
954
  debug("Using additional roles copy from #{File.expand_path(config[:additional_copy_role_path])}")
955
- dest = File.join(sandbox_path, File.basename(File.expand_path(config[:additional_copy_role_path])))
955
+ dest = File.join(sandbox_path, 'roles', File.basename(File.expand_path(config[:additional_copy_role_path])))
956
956
  FileUtils.mkdir_p(File.dirname(dest))
957
957
  FileUtils.cp_r(File.expand_path(config[:additional_copy_role_path]), dest)
958
958
  else
959
959
  config[:additional_copy_role_path].each do |path|
960
- dest = File.join(sandbox_path, File.basename(File.expand_path(path)))
960
+ dest = File.join(sandbox_path, 'roles', File.basename(File.expand_path(path)))
961
961
  FileUtils.mkdir_p(File.dirname(dest))
962
962
  FileUtils.cp_r(File.expand_path(path), dest)
963
963
  end
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.50.0
4
+ version: 0.50.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neill Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-12 00:00:00.000000000 Z
11
+ date: 2019-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
- rubygems_version: 3.0.3
134
+ rubygems_version: 3.0.1
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: ansible provisioner for test-kitchen