Skip to content

Instantly share code, notes, and snippets.

@punkdata
Last active August 8, 2018 06:21
Show Gist options
  • Save punkdata/a7922d10a1f0dca27cd8 to your computer and use it in GitHub Desktop.
Save punkdata/a7922d10a1f0dca27cd8 to your computer and use it in GitHub Desktop.
CoreOS cloud-config.yaml Example
#cloud-config
hostname: <your hostname>
ssh_authorized_keys:
- ssh-rsa < your Public SSH key AAAAB3NzaC1... >
coreos:
etcd:
addr: $private_ipv4:4001
peer-addr: $private_ipv4:7001
units:
- name: etcd.service
command: start
- name: fleet.service
command: start
- name: static.network
content: |
[Match]
Name=< your Network Interface name example: enp0s7 >
[Network]
Address=< your STATIC IP Address example: 10.1.10.1o/24 #note the /24 should follow the IP>
Gateway=< your Gateway IP >
DNS=75.75.75.75
DNS=8.8.8.8
users:
- name: <your username >
passwd: < your Hashed pwd for this user >
ssh-authorized-keys:
- ssh-rsa < your Public SSH key AAAAB3NzaC1... >
- groups:
- sudo
- docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment