Fix conntrack for opensuse and docker support (#5880)
parent
f055ba7965
commit
7eaa7c957a
|
@ -131,7 +131,7 @@ packet_centos8-calico:
|
||||||
packet_opensuse-canal:
|
packet_opensuse-canal:
|
||||||
stage: deploy-part2
|
stage: deploy-part2
|
||||||
extends: .packet
|
extends: .packet
|
||||||
when: manual
|
when: on_success
|
||||||
|
|
||||||
packet_oracle7-canal:
|
packet_oracle7-canal:
|
||||||
stage: deploy-part2
|
stage: deploy-part2
|
||||||
|
|
|
@ -26,8 +26,8 @@ SUPPORTED_OS = {
|
||||||
"centos8" => {box: "centos/8", user: "vagrant"},
|
"centos8" => {box: "centos/8", user: "vagrant"},
|
||||||
"centos8-bento" => {box: "bento/centos-8", user: "vagrant"},
|
"centos8-bento" => {box: "bento/centos-8", user: "vagrant"},
|
||||||
"fedora" => {box: "fedora/28-cloud-base", user: "vagrant"},
|
"fedora" => {box: "fedora/28-cloud-base", user: "vagrant"},
|
||||||
"opensuse" => {box: "opensuse/openSUSE-15.0-x86_64", user: "vagrant"},
|
"opensuse" => {box: "bento/opensuse-leap-15.1", user: "vagrant"},
|
||||||
"opensuse-tumbleweed" => {box: "opensuse/openSUSE-Tumbleweed-x86_64", user: "vagrant"},
|
"opensuse-tumbleweed" => {box: "opensuse/Tumbleweed.x86_64", user: "vagrant"},
|
||||||
"oraclelinux" => {box: "generic/oracle7", user: "vagrant"},
|
"oraclelinux" => {box: "generic/oracle7", user: "vagrant"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,14 @@
|
||||||
when:
|
when:
|
||||||
- http_proxy is defined or https_proxy is defined
|
- http_proxy is defined or https_proxy is defined
|
||||||
|
|
||||||
|
# Required for zypper module
|
||||||
|
- name: Install python-xml
|
||||||
|
shell: zypper refresh && zypper --non-interactive install python-xml
|
||||||
|
changed_when: false
|
||||||
|
become: true
|
||||||
|
tags:
|
||||||
|
- facts
|
||||||
|
|
||||||
# Without this package, the get_url module fails when trying to handle https
|
# Without this package, the get_url module fails when trying to handle https
|
||||||
- name: Install python-cryptography
|
- name: Install python-cryptography
|
||||||
zypper:
|
zypper:
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
- name: Assign inventory name to unconfigured hostnames (CoreOS, non-Flatcar, Suse and ClearLinux only)
|
- name: Assign inventory name to unconfigured hostnames (CoreOS, non-Flatcar, Suse and ClearLinux only)
|
||||||
command: "hostnamectl set-hostname {{ inventory_hostname }}"
|
command: "hostnamectl set-hostname {{ inventory_hostname }}"
|
||||||
register: hostname_changed
|
register: hostname_changed
|
||||||
|
become: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when:
|
when:
|
||||||
- override_system_hostname
|
- override_system_hostname
|
||||||
|
|
|
@ -10,8 +10,9 @@ After=network.target docker.socket{{ ' containerd.service' if installed_docker_v
|
||||||
{{ 'BindsTo=containerd.service' if installed_docker_version.stdout is version('18.09.1', '>=') }}
|
{{ 'BindsTo=containerd.service' if installed_docker_version.stdout is version('18.09.1', '>=') }}
|
||||||
Wants=docker.socket
|
Wants=docker.socket
|
||||||
{% elif ansible_os_family == "Suse" %}
|
{% elif ansible_os_family == "Suse" %}
|
||||||
After=network.target{{ ' containerd.service' if installed_docker_version.stdout is version('18.09.1', '>=') else '' }}
|
After=network.target lvm2-monitor.service SuSEfirewall2.service
|
||||||
{{ 'BindsTo=containerd.service' if installed_docker_version.stdout is version('18.09.1', '>=') }}
|
# After=network.target{{ ' containerd.service' if installed_docker_version.stdout is version('18.09.1', '>=') else '' }}
|
||||||
|
# {{ 'BindsTo=containerd.service' if installed_docker_version.stdout is version('18.09.1', '>=') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|
|
@ -15,7 +15,7 @@ common_required_pkgs:
|
||||||
- unzip
|
- unzip
|
||||||
- e2fsprogs
|
- e2fsprogs
|
||||||
- xfsprogs
|
- xfsprogs
|
||||||
- conntrack
|
- ebtables
|
||||||
|
|
||||||
# Set to true if your network does not support IPv6
|
# Set to true if your network does not support IPv6
|
||||||
# This maybe necessary for pulling Docker images from
|
# This maybe necessary for pulling Docker images from
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
required_pkgs:
|
required_pkgs:
|
||||||
- "{{ ( (ansible_distribution_major_version | int) < 8) | ternary('libselinux-python','python3-libselinux') }}"
|
- "{{ ( (ansible_distribution_major_version | int) < 8) | ternary('libselinux-python','python3-libselinux') }}"
|
||||||
- device-mapper-libs
|
- device-mapper-libs
|
||||||
- ebtables
|
|
||||||
- nss
|
- nss
|
||||||
|
- conntrack
|
||||||
|
|
|
@ -4,4 +4,4 @@ required_pkgs:
|
||||||
- aufs-tools
|
- aufs-tools
|
||||||
- apt-transport-https
|
- apt-transport-https
|
||||||
- software-properties-common
|
- software-properties-common
|
||||||
- ebtables
|
- conntrack
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
required_pkgs:
|
required_pkgs:
|
||||||
- libselinux-python
|
- libselinux-python
|
||||||
- device-mapper-libs
|
- device-mapper-libs
|
||||||
- ebtables
|
- conntrack
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
required_pkgs:
|
required_pkgs:
|
||||||
- "{{ ( (ansible_distribution_major_version | int) < 8) | ternary('libselinux-python','python3-libselinux') }}"
|
- "{{ ( (ansible_distribution_major_version | int) < 8) | ternary('libselinux-python','python3-libselinux') }}"
|
||||||
- device-mapper-libs
|
- device-mapper-libs
|
||||||
- ebtables
|
|
||||||
- nss
|
- nss
|
||||||
|
- conntrack
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
required_pkgs:
|
required_pkgs:
|
||||||
- device-mapper
|
- device-mapper
|
||||||
- ebtables
|
- conntrack-tools
|
||||||
|
|
|
@ -4,4 +4,4 @@ required_pkgs:
|
||||||
- aufs-tools
|
- aufs-tools
|
||||||
- apt-transport-https
|
- apt-transport-https
|
||||||
- software-properties-common
|
- software-properties-common
|
||||||
- ebtables
|
- conntrack
|
||||||
|
|
Loading…
Reference in New Issue