Skip to content

Instantly share code, notes, and snippets.

@brendanjerwin
Last active August 29, 2015 14:11
Show Gist options
  • Save brendanjerwin/204f305e51337cb2ef84 to your computer and use it in GitHub Desktop.
Save brendanjerwin/204f305e51337cb2ef84 to your computer and use it in GitHub Desktop.
#cloud-config
write_files:
- path: /etc/systemd/system/docker.service.d/50-insecure-registry.conf
content: |
[Service]
Environment=DOCKER_OPTS='--insecure-registry="0.0.0.0/0"'
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: restart
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: restart
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/d2f73b16e114669295414b9d18770138
addr: 172.16.1.201:4001
peer-addr: 172.16.1.201:7001
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCb2u8697rU4rrvpI46SNQdcJ/Rc1dZiusbfIlFZT9crpods/FZesROG70wXi+dfaj6pMPD0FDyZKNxgz7rIHVxS45nU0l8VFTJUwuIOzP1TfOExEyNhgNiSD1RnbD2e3anmz//FOvddBuA9NwzWz+t94BFqdxP0eovkMIYVY6eU1dYA9TMWtYSl+wxKTVZvrYPg7JprjgRjkKZrYsWh6Zzx00SeXBrY4elBW0Yyv7Oo/LJ77qPkypdkHZKf7UnCpAq+d2/iZn1WoYgj+h3RPo515OsqKIL0PRxNksg3R5/juER1hej5QVCuyUwzSayr6Cao815o79wMyydf9J/JFVp brendanjerwin@Brendans-Hackintosh.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment