kitchen-ansible 0.55.0 → 0.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b1b9ed5296c5ccc0a6c0de5ed5dffda713e3cdfd36c835d6911591a89d92c40
4
- data.tar.gz: 39ee501a044573823c5b1bf321d15d81ce9a557446ff664c917216f54723b21f
3
+ metadata.gz: 1a8dd6b2d531e23dfc6c50c161be2ba3b94a1d2a9b5f4cad55c3febb7d57301a
4
+ data.tar.gz: b987177ab9bed7bc399e56150cc0c34df023b525aaa354857e2ad957d178f315
5
5
  SHA512:
6
- metadata.gz: 5c51f85d84585dbb8c888be34d11b877ec954de08230816767ac9754360798655b4a69f3414aebc6f415ed034dc21715ac35364ee1c0f74ad2a30343a90ab982
7
- data.tar.gz: beecbbc16b179865e4e7123860462101857151105f8697821618f8feb21406ff241fe9dd61b4e737d64d4d4d6af7cb0471804ec0ef81eb5fdd2986df7ce8ecce
6
+ metadata.gz: cd93caf0fe0fde4a9cb8b5bc1a61d22af0a1155b61253cdc9745dea4ff5678499c06b330de09192ba410500f7c4476d0d472d2da0c097e53ed2093c9f31457f0
7
+ data.tar.gz: 9e7b3ca6a11f397760a80351a8607e5d2de14af98cae400b18925d76ae14a2f7364dda87a06a38df6bdb3eb3d07f04a2ea9fe6b043363e9d84564b6a7cefab39
@@ -44,8 +44,8 @@ module Kitchen
44
44
  default_config :tags, []
45
45
  default_config :ansible_apt_repo, 'ppa:ansible/ansible'
46
46
  default_config :ansible_yum_repo, nil
47
- default_config :ansible_sles_repo, 'http://download.opensuse.org/repositories/systemsmanagement/SLE_12/systemsmanagement.repo'
48
- default_config :python_sles_repo, 'http://download.opensuse.org/repositories/devel:/languages:/python/SLE_12/devel:languages:python.repo'
47
+ default_config :ansible_sles_repo, 'http://download.opensuse.org/repositories/systemsmanagement/openSUSE_Leap_15.2/systemsmanagement.repo'
48
+ default_config :python_sles_repo, 'http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_Leap_15.2/devel:languages:python.repo'
49
49
  default_config :chef_bootstrap_url, 'https://www.chef.io/chef/install.sh'
50
50
  # Providing we have Ruby >= 2.0 we only need Ruby. Leaving default to install Chef Omnibus for backwards compatibility.
51
51
  # Note: if using kitchen-verifer-serverspec your we can avoid needing Ruby too.
@@ -344,7 +344,15 @@ module Kitchen
344
344
 
345
345
  if config[:additional_ssh_private_keys]
346
346
  commands << [
347
- sudo_env('cp -r'), File.join(config[:root_path], 'ssh_private_keys'), '~/.ssh'
347
+ sudo_env('chmod -R 600'), File.join(config[:root_path], 'ssh_private_keys/*')
348
+ ].join(' ')
349
+
350
+ commands << [
351
+ sudo_env('chown -R'), "#{instance.transport[:username]}:#{instance.transport[:username]}", File.join(config[:root_path], 'ssh_private_keys/*')
352
+ ].join(' ')
353
+
354
+ commands << [
355
+ sudo_env('cp -rp'), File.join(config[:root_path], 'ssh_private_keys/*'), '~/.ssh'
348
356
  ].join(' ')
349
357
  end
350
358
 
@@ -483,6 +491,7 @@ module Kitchen
483
491
  def ansible_galacy_collection_command
484
492
  cmd = [
485
493
  'ansible-galaxy', 'collection', 'install', '--force',
494
+ galaxy_cert_ignore,
486
495
  '-p', File.join(config[:root_path], 'collections'),
487
496
  '-r', File.join(config[:root_path], galaxy_requirements_collections)
488
497
  ].join(' ')
@@ -543,9 +552,13 @@ module Kitchen
543
552
  <<-INSTALL
544
553
  if [ ! $(which ansible) ]; then
545
554
  if [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
555
+ EL_RELEASE=$(rpm -E %{rhel})
556
+ if [ "${EL_RELEASE}" -ge 8 ]; then
557
+ echo "*** Redhat/Centos 8 does not support pip2 with kitchen-ansible ***"
558
+ fi
546
559
  #{Kitchen::Provisioner::Ansible::Os::Redhat.new('redhat', config).install_epel_repo}
547
560
  #{update_packages_redhat_cmd} > #{detect_debug}
548
- #{sudo_env('yum')} -y install libselinux-python python2-devel git python-setuptools python-setuptools-dev libffi-devel openssl-devel gcc > #{detect_debug}
561
+ #{sudo_env('yum')} -y install libselinux-python python2-devel git python-setuptools libffi-devel openssl-devel gcc > #{detect_debug}
549
562
  else
550
563
  if [ -f /etc/SUSE-brand ] || [ -f /etc/SuSE-release ]; then
551
564
  #{sudo_env('zypper')} ar #{python_sles_repo} > #{detect_debug}
@@ -558,7 +571,8 @@ module Kitchen
558
571
  fi
559
572
 
560
573
  #{export_http_proxy}
561
- #{sudo_env('easy_install')} pip > #{detect_debug}
574
+ #{sudo_env('curl')} 'https://bootstrap.pypa.io/pip/2.7/get-pip.py' -o 'get-pip.py' > #{detect_debug}
575
+ #{sudo_env('python')} 'get-pip.py' > #{detect_debug}
562
576
  #{sudo_env('pip')} install -U setuptools > #{detect_debug}
563
577
  #{sudo_env('pip')} install ansible#{ansible_version} > #{detect_debug}
564
578
  fi
@@ -581,14 +595,15 @@ module Kitchen
581
595
  if [ -f /etc/SUSE-brand ] || [ -f /etc/SuSE-release ]; then
582
596
  #{sudo_env('zypper')} ar #{python_sles_repo} > #{detect_debug}
583
597
  #{update_packages_suse_cmd} > #{detect_debug}
584
- #{sudo_env('zypper')} --non-interactive install python python-devel git python-setuptools python-pip python-six libyaml-devel libffi-devel libopenssl-devel > #{detect_debug}
598
+ #{sudo_env('zypper')} --non-interactive install python3 python3-pip python3-setuptools python-devel git python-six libyaml-devel libffi-devel libopenssl-devel > #{detect_debug}
585
599
  else
586
600
  #{update_packages_debian_cmd} > #{detect_debug}
587
- #{sudo_env('apt-get')} -y install git python python-pip python-setuptools build-essential python-dev libffi-dev libssl-dev > #{detect_debug}
601
+ #{sudo_env('apt-get')} -y install git python3 python3-pip python3-setuptools build-essential python3-dev libffi-dev libssl-dev > #{detect_debug}
588
602
  fi
589
603
  fi
590
604
 
591
605
  #{export_http_proxy}
606
+ #{sudo_env('python3')} -m pip install --upgrade pip > #{detect_debug}
592
607
  #{sudo_env('pip3')} install -U setuptools > #{detect_debug}
593
608
  #{sudo_env('pip3')} install ansible#{ansible_version} > #{detect_debug}
594
609
  fi
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  module Kitchen
3
3
  module Ansible
4
- VERSION = '0.55.0'.freeze
4
+ VERSION = '0.57.0'.freeze
5
5
  end
6
6
  end
@@ -28,6 +28,21 @@ It installs it in the following order:
28
28
 
29
29
  NOTE: Set to ansible_package_name to 'ansible' when installing from the CentOS/Redhat extras repo, instead of the EPEL.
30
30
 
31
+ # Install Options Maxtrix
32
+
33
+ Install options require_XXXX parameter by operation system
34
+
35
+ OS | repo | pip | pip3 | ansible_source | ansible_omnibus
36
+ ---|------|-----|------|----------------|----------------
37
+ centos-72 | YES | YES | YES | NO | YES
38
+ centos-8 | YES | NO | YES | NO | NO
39
+ ubuntu-1604 | YES | YES | NO | NO | YES
40
+ ubuntu-2004 | YES | NO | YES | NO | YES
41
+ debian-9 | YES | YES | YES | NO | YES
42
+ debian-10 | YES | YES | YES | NO | YES
43
+ suse-15 | YES | YES | YES | NO | NO
44
+ alpine-38 | UNTESTED | NO | NO | NO | NO
45
+
31
46
  # Provisioner Options
32
47
 
33
48
  kitchen-ansible runs the ansible playbook command http://linux.die.net/man/1/ansible-playbook with options from parameters in the kitchen.yml file:
@@ -53,7 +68,7 @@ ansible_omnibus_url | `https://raw.githubusercontent.com` `/neillturner/omnibus-
53
68
  ansible_package_name | | Set to ansible when installing from the CentOS/Redhat extras repo, instead of the EPEL.
54
69
  ansible_platform | Naively tries to determine | OS platform of server
55
70
  ansible_playbook_command | | Override the Ansible playbook command
56
- ansible_sles_repo | `http://download.opensuse.org/repositories` `/systemsmanagement/SLE_12` `/systemsmanagement.repo` | Zypper SuSE Ansible repo
71
+ ansible_sles_repo | `http://download.opensuse.org/repositories` `/systemsmanagement/openSUSE_Leap_15.2` `/systemsmanagement.repo` | Zypper SuSE Ansible repo
57
72
  ansible_source_url | `git://github.com/ansible/ansible.git` | Git URL of Ansible source
58
73
  ansible_source_rev | | Branch or tag to install Ansible source
59
74
  ansible_sudo | true | Determines whether `ansible-playbook` is executed as root or as the current authenticated user
@@ -94,7 +109,7 @@ modules_path | | Ansible repo manifests directory
94
109
  no_proxy | nil | List of URLs or IPs that should be excluded from proxying
95
110
  playbook | default.yml | Playbook for `ansible-playbook` to run
96
111
  private_key | | ssh private key file for ssh connection
97
- python_sles_repo | `http://download.opensuse.org/repositories` `/devel:/languages:/python/SLE_12` `/devel:languages:python.repo` | Zypper SuSE python repo
112
+ python_sles_repo | `http://download.opensuse.org/repositories` `/devel:/languages:/python/openSUSE_Leap_15.2` `/devel:languages:python.repo` | Zypper SuSE python repo
98
113
  recursive_additional_copy_path | | Arbitrary array of files and directories to copy into test environment. See below section Copying Additional Files
99
114
  require_ansible_omnibus | false | Set to `true` if using Omnibus Ansible `pip` install
100
115
  require_ansible_repo | true | Set if installing Ansible from a `yum` or `apt` repo
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.55.0
4
+ version: 0.57.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neill Turner
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2021-04-03 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rspec
@@ -116,7 +115,6 @@ homepage: https://github.com/neillturner/kitchen-ansible
116
115
  licenses:
117
116
  - Apache-2.0
118
117
  metadata: {}
119
- post_install_message:
120
118
  rdoc_options: []
121
119
  require_paths:
122
120
  - lib
@@ -131,8 +129,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
129
  - !ruby/object:Gem::Version
132
130
  version: '0'
133
131
  requirements: []
134
- rubygems_version: 3.1.4
135
- signing_key:
132
+ rubygems_version: 4.0.3
136
133
  specification_version: 4
137
134
  summary: ansible provisioner for test-kitchen
138
135
  test_files: []
136
+ ...