Skip to content

Instantly share code, notes, and snippets.

@psftw
Created December 29, 2014 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psftw/f5a913b949283a5ffd81 to your computer and use it in GitHub Desktop.
Save psftw/f5a913b949283a5ffd81 to your computer and use it in GitHub Desktop.
static IP for fedora atomic?
#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