Home
DevCentral
Search
Configure Global Search
Log In
Transactions
D4095
Change Details
Change Details
Old
New
Diff
Ysul has two public IPv4 addresses: - 163.172.49.16 - 212.83.187.132 as an alias, which is the canonical public IPv4 address However, we noticed that the alias was not actually applied on the server after applying roles/core/network. The pillar nodes.sls was correct, but the Jinja syntax used to read the aliases was wrong. The template used `interface.get("ipv4.aliases", [])`, which looks for a key literally named `ipv4.aliases`. It should instead read the nested value with: `interface.ipv4.get("aliases", [])` After this change, the alias is correctly generated in `/etc/rc.conf.d/netif/ipv4_public` and aplied on the server. Ref T2315
Ysul has two public IPv4 addresses: - 163.172.49.16 - 212.83.187.132 as an alias, which is the canonical public IPv4 address However, we noticed that the alias was not actually applied on the server after applying roles/core/network. The pillar nodes.sls was correct, but the Jinja syntax used to read the aliases was wrong. The template used `interface.get("ipv4.aliases", [])`, which looks for a key literally named `ipv4.aliases`. It should instead read the aliases with: `interface.ipv4.get("aliases", [])` After this change, the alias is correctly generated in `/etc/rc.conf.d/netif/ipv4_public` and aplied on the server. Ref T2315
Ysul has two public IPv4 addresses: - 163.172.49.16 - 212.83.187.132 as an alias, which is the canonical public IPv4 address However, we noticed that the alias was not actually applied on the server after applying roles/core/network. The pillar nodes.sls was correct, but the Jinja syntax used to read the aliases was wrong. The template used `interface.get("ipv4.aliases", [])`, which looks for a key literally named `ipv4.aliases`. It should instead read the
nested value
aliases
with: `interface.ipv4.get("aliases", [])` After this change, the alias is correctly generated in `/etc/rc.conf.d/netif/ipv4_public` and aplied on the server. Ref T2315
Continue