Skip to content

Instantly share code, notes, and snippets.

@rljohnsn
Created March 27, 2015 01:26
Show Gist options
  • Save rljohnsn/2939b2cb21f1af1906ba to your computer and use it in GitHub Desktop.
Save rljohnsn/2939b2cb21f1af1906ba to your computer and use it in GitHub Desktop.
#cloud-config
coreos:
update:
reboot-strategy: etcd-lock
etcd:
name: comp01
addr: 10.x.214.y:4001
peer-addr: 10.x.214.y:7001
fleet:
metadata: name=comp01,etcd_init=leader
units:
- name: etcd.service
command: start
- name: fleet.service
command: start
- name: static.network
runtime: yes
content: |
[Match]
MACAddress=00:25:zz:zz:zz:1e
[Network]
Gateway=10.x.214.254
Address=10.x.214.y/24
Address=172.x.214.y/24
DNS=10.x.3.10
DNS=192.x.84.12
DNS=192.x.84.11
ssh_authorized_keys:
- ssh-rsa <snip>
- ssh-rsa <snip>
hostname: comp01
write_files:
- path: /etc/environment
permissions: 0644
content: |
COREOS_PUBLIC_IPV4=10.x.214.y
COREOS_PRIVATE_IPV4=172.x.214.y
- path: /etc/hosts
permissions: 0644
content: |
127.0.0.1 localhost
::1 localhost
10.x.214.y admin01.lab.zerigo.net admin01 mirror.lab.zerigo.net fedora-mirror.lab.zerigo.net centos-mirror.lab.zerigo.net ubuntu-mirror.lab.zerigo.net debian-mirror.lab.zerigo.net mirror
10.x.214.y admin02.lab.zerigo.net admin02
10.x.214.y ceph01.lab.zerigo.net ceph01
10.x.214.y comp01.lab.zerigo.net comp01
10.x.214.y comp02.lab.zerigo.net comp02
10.x.214.y comp03.lab.zerigo.net comp03
10.x.214.y ceph02.lab.zerigo.net ceph02
10.x.214.y comp04.lab.zerigo.net comp04
10.x.214.y ceph03.lab.zerigo.net ceph03
10.x.214.y comp05.lab.zerigo.net comp05
- path: /etc/resolv.conf
permissions: 0644
content: |
nameserver 10.x.3.y
nameserver 192.x.84.y
nameserver 192.x.84.y
domain lab.zerigo.net
options single-request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment