Fórumok
Sziasztok,
cloud-init-tel szeretnenk 2 eth interfecet beallitani.
Tudna valaki segiteni?
#pelda egy interface-re
network-interfaces: |
iface eth0 inet static
address 192.168.1.10
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.254
bootcmd:
- ifdown eth0
- ifup eth0
Koszonom a segitseget.
Ardi
Hozzászólások
Nalam igy megy packer-ben egy VM build pl (reszlet):
https://cloudinit.readthedocs.io/en/latest/topics/network-config-format…
A match resz is hasznos lehet ha nem fixek az interface nevek.
nos, nekem eth0 parameterei adottak, eth1 pedig parameterek nelkul kell, s mindketto up legyen boot utan...
Ardi
Pelda es a doksi alapjan ha megirod a sajatodat, akkor igy tudod validalni:
cloud-init devel schema --config-file mycloudinit.yml
https://cloudinit.readthedocs.io/en/latest/topics/debugging.html