kitchen-ansible 0.55.0 → 0.56.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb3c0e10d572c5db59b9d6ecc8be05c0b62f227beb977f68b8c8b6b5e261a5f4
|
4
|
+
data.tar.gz: d33c5a241fab596f8dd4f849a2b5784eaac33d04ae3711a8cd8d1ff068ee9151
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3981c30637f136f8441b6644b0845a63e8cd6d8e7e9194079712525e38f7b905e14a47d52e191bebcc378c8574b1d1a38428a9d7ce4e7435affaeacfa0d70dab
|
7
|
+
data.tar.gz: 701f3281bdf9c5d6fc1346f0523221efc36e911385bd0cbe6657b38d7544f0fbf6e4ae928f726bf06e4fea1ffaeb6bf060e4943d2c45220b6c8f750b94598d20
|
@@ -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/
|
48
|
-
default_config :python_sles_repo, 'http://download.opensuse.org/repositories/devel:/languages:/python/
|
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.
|
@@ -543,9 +543,13 @@ module Kitchen
|
|
543
543
|
<<-INSTALL
|
544
544
|
if [ ! $(which ansible) ]; then
|
545
545
|
if [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
|
546
|
+
EL_RELEASE=$(rpm -E %{rhel})
|
547
|
+
if [ "${EL_RELEASE}" -ge 8 ]; then
|
548
|
+
echo "*** Redhat/Centos 8 does not support pip2 with kitchen-ansible ***"
|
549
|
+
fi
|
546
550
|
#{Kitchen::Provisioner::Ansible::Os::Redhat.new('redhat', config).install_epel_repo}
|
547
551
|
#{update_packages_redhat_cmd} > #{detect_debug}
|
548
|
-
#{sudo_env('yum')} -y install libselinux-python python2-devel git python-setuptools
|
552
|
+
#{sudo_env('yum')} -y install libselinux-python python2-devel git python-setuptools libffi-devel openssl-devel gcc > #{detect_debug}
|
549
553
|
else
|
550
554
|
if [ -f /etc/SUSE-brand ] || [ -f /etc/SuSE-release ]; then
|
551
555
|
#{sudo_env('zypper')} ar #{python_sles_repo} > #{detect_debug}
|
@@ -558,7 +562,8 @@ module Kitchen
|
|
558
562
|
fi
|
559
563
|
|
560
564
|
#{export_http_proxy}
|
561
|
-
#{sudo_env('
|
565
|
+
#{sudo_env('curl')} 'https://bootstrap.pypa.io/pip/2.7/get-pip.py' -o 'get-pip.py' > #{detect_debug}
|
566
|
+
#{sudo_env('python')} 'get-pip.py' > #{detect_debug}
|
562
567
|
#{sudo_env('pip')} install -U setuptools > #{detect_debug}
|
563
568
|
#{sudo_env('pip')} install ansible#{ansible_version} > #{detect_debug}
|
564
569
|
fi
|
@@ -581,14 +586,15 @@ module Kitchen
|
|
581
586
|
if [ -f /etc/SUSE-brand ] || [ -f /etc/SuSE-release ]; then
|
582
587
|
#{sudo_env('zypper')} ar #{python_sles_repo} > #{detect_debug}
|
583
588
|
#{update_packages_suse_cmd} > #{detect_debug}
|
584
|
-
#{sudo_env('zypper')} --non-interactive install
|
589
|
+
#{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
590
|
else
|
586
591
|
#{update_packages_debian_cmd} > #{detect_debug}
|
587
|
-
#{sudo_env('apt-get')} -y install git
|
592
|
+
#{sudo_env('apt-get')} -y install git python3 python3-pip python3-setuptools build-essential python3-dev libffi-dev libssl-dev > #{detect_debug}
|
588
593
|
fi
|
589
594
|
fi
|
590
595
|
|
591
596
|
#{export_http_proxy}
|
597
|
+
#{sudo_env('python3')} -m pip install --upgrade pip > #{detect_debug}
|
592
598
|
#{sudo_env('pip3')} install -U setuptools > #{detect_debug}
|
593
599
|
#{sudo_env('pip3')} install ansible#{ansible_version} > #{detect_debug}
|
594
600
|
fi
|
data/provisioner_options.md
CHANGED
@@ -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/
|
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/
|
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,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-ansible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.56.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neill Turner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|