copr-pulp: setup ipv6

This commit is contained in:
Pavel Raiskup 2024-03-13 21:26:45 +01:00
parent f5adb3bf01
commit 20d43f939f
5 changed files with 9 additions and 3 deletions

View file

@ -12,3 +12,5 @@ additional_known_hosts_cleanup:
- copr-be-dev-temp.aws.fedoraproject.org
copr-be.aws.fedoraproject.org:
- copr-be-temp.aws.fedoraproject.org
aws_ipv6_con: "cloud-init eth0"

View file

@ -1,3 +1,3 @@
---
services_disabled: true
aws_ipv6_addr: "2600:1f18:8ee:ae00:c4b7:de1a:4d13:e5a4"
aws_ipv6_addr: "2600:1f18:8ee:ae00:c607:4520:249f:6cc8"

View file

@ -18,3 +18,5 @@ tcp_ports: [
# PULP API
24817,
]
aws_ipv6_con: "System eth0"

View file

@ -14,3 +14,5 @@ nagios_Can_Connect: false
public_ip: TODO
swap_file_path: /swap
swap_file_size_mb: 8096
aws_ipv6_con: "System eth0"

View file

@ -100,7 +100,7 @@
- ansible_distribution == 'Fedora'
- name: disable offloading (persitently)
shell: "nmcli con modify 'cloud-init eth0' ethtool.feature-tso off ethtool.feature-gro off ethtool.feature-gso off"
shell: "nmcli con modify '{{ aws_ipv6_con }}' ethtool.feature-tso off ethtool.feature-gro off ethtool.feature-gso off"
when:
- offloading.rc == 0
- ansible_distribution == 'Fedora'
@ -108,7 +108,7 @@
- config
- name: check we have the needed ipv6
shell: "nmcli con show 'cloud-init eth0' | grep ipv6.addresses | grep {{ aws_ipv6_addr }}"
shell: "nmcli con show '{{ aws_ipv6_con }}' | grep ipv6.addresses | grep {{ aws_ipv6_addr }}"
register: ipv6_config_check
failed_when: false
changed_when: ipv6_config_check.rc == 1