Skip to content

Instantly share code, notes, and snippets.

@brendanjerwin
Last active August 29, 2015 14:11
Show Gist options
  • Save brendanjerwin/3d165025b135d9f415f5 to your computer and use it in GitHub Desktop.
Save brendanjerwin/3d165025b135d9f415f5 to your computer and use it in GitHub Desktop.
cloud-config : core-brix
#cloud-config
hostname: core-brix
write_files:
- path: /etc/systemd/coredump.conf
content: |
[Coredump]
Compress=yes
MaxUse=3G
- path: /run/systemd/system/etcd.service.d/30-timing.conf
content: |
[Service]
Environment=ETCD_PEER_HEARTBEAT_INTERVAL=150
Environment=ETCD_PEER_ELECTION_TIMEOUT=750
- path: /etc/systemd/system/docker.service.d/50-insecure-registry.conf
content: |
[Service]
Environment=DOCKER_OPTS='--insecure-registry="0.0.0.0/0"'
- path: /etc/environment
content: |
COREOS_PRIVATE_IPV4=172.16.1.201
coreos:
units:
- name: etcd.service
enable: true
command: start
- name: fleet.service
enable: true
command: start
- name: 10-static.network
runtime: true
content: |
[Match]
Name=enp2s0
[Network]
DNS=172.16.1.1
Address=172.16.1.201/24
Gateway=172.16.1.1
- name: 20-dhcp.network
runtime: true
content: |
[Match]
Name=en*
[Network]
DHCP=yes
- name: mnt-nfs.mount
command: start
enable: true
content: |
[Unit]
Description=NFS Directories
Documentation=man:hier(7)
DefaultDependencies=no
Conflicts=umount.target
Restart=always
Before=local-fs.target umount.target
Requires=network-online.target
Requires=rpc-statd.service
After=network-online.target
After=rpc-statd.service
[Mount]
What=172.16.1.70:/mnt/DroboFS/Shares/CoreOS
Where=/mnt/nfs
Type=nfs
Options=rw
- name: mnt-plex.mount
command: start
enable: true
content: |
[Unit]
Description=Plex Directories
Documentation=man:hier(7)
DefaultDependencies=no
Conflicts=umount.target
Restart=always
Before=local-fs.target umount.target
Requires=network-online.target
Requires=rpc-statd.service
After=network-online.target
After=rpc-statd.service
[Mount]
What=172.16.1.70:/mnt/DroboFS/Shares/Plex
Where=/mnt/plex
Type=nfs
Options=rw
- name: docker-tcp.socket
command: start
enable: true
content: |
[Unit]
Description=Docker Socket for the API
[Socket]
ListenStream=2375
Service=docker.service
BindIPv6Only=both
[Install]
WantedBy=sockets.target
etcd:
discovery: https://discovery.etcd.io/05de76b2fb7f18080631eb2f585814a9
addr: 0.0.0.0:4001
peer-addr: 172.16.1.201:7001
name: core-brix
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCb2u8697rU4rrvpI46SNQdcJ/Rc1dZiusbfIlFZT9crpods/FZesROG70wXi+dfaj6pMPD0FDyZKNxgz7rIHVxS45nU0l8VFTJUwuIOzP1TfOExEyNhgNiSD1RnbD2e3anmz//FOvddBuA9NwzWz+t94BFqdxP0eovkMIYVY6eU1dYA9TMWtYSl+wxKTVZvrYPg7JprjgRjkKZrYsWh6Zzx00SeXBrY4elBW0Yyv7Oo/LJ77qPkypdkHZKf7UnCpAq+d2/iZn1WoYgj+h3RPo515OsqKIL0PRxNksg3R5/juER1hej5QVCuyUwzSayr6Cao815o79wMyydf9J/JFVp [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment