Created
December 29, 2014 23:55
-
-
Save psftw/f5a913b949283a5ffd81 to your computer and use it in GitHub Desktop.
static IP for fedora atomic?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
ssh_authorized_keys: | |
- ssh-rsa yaddayadda | |
write_files: | |
- path: /etc/sysconfig/network-scripts/ifcfg-eth0 | |
permissions: 0644 | |
content: | | |
DEVICE=eth0 | |
IPADDR=192.168.1.34 | |
NETMASK=255.255.255.0 | |
GATEWAY=192.168.1.1 | |
ONBOOT=yes | |
runcmd: | |
- [ systemctl, stop, NetworkManager ] | |
- [ systemctl, restart, network ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment