Skip to content

Instantly share code, notes, and snippets.

@phaus
Last active September 30, 2015 23:33
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 phaus/e52241b66576d4484f6f to your computer and use it in GitHub Desktop.
Save phaus/e52241b66576d4484f6f to your computer and use it in GitHub Desktop.
#cloud-config
hostname: "coreos1"
# include one or more SSH public keys
ssh_authorized_keys:
- ssh-rsa XXX
coreos:
units:
- name: systemd-networkd
command: stop
- name: 00-static.network
runtime: true
content: |
[Match]
Name=eth*
[Network]
Gateway=10.10.0.1
Address=10.10.0.111/24
DNS=8.8.8.8
- name: systemd-networkd
command: start
#cloud-config
hostname: "coreos2"
# include one or more SSH public keys
ssh_authorized_keys:
- ssh-rsa XXX
coreos:
units:
- name: systemd-networkd
command: stop
- name: 00-static.network
runtime: true
content: |
[Match]
Name=eth*
[Network]
Gateway=10.10.0.1
Address=10.10.0.112/24
DNS=8.8.8.8
- name: systemd-networkd
command: start
#cloud-config
hostname: "coreos3"
# include one or more SSH public keys
ssh_authorized_keys:
- ssh-rsa XXX
coreos:
units:
- name: systemd-networkd
command: stop
- name: 00-static.network
runtime: true
content: |
[Match]
Name=eth*
[Network]
Gateway=10.10.0.1
Address=10.10.0.113/24
DNS=8.8.8.8
- name: systemd-networkd
command: start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment