Skip to content

Instantly share code, notes, and snippets.

@mattbailey
Forked from rileyschuit/cloud-config.yaml
Last active August 29, 2015 14:17
Show Gist options
  • Save mattbailey/c26900001e4a3cfeaf4a to your computer and use it in GitHub Desktop.
Save mattbailey/c26900001e4a3cfeaf4a to your computer and use it in GitHub Desktop.
#cloud-config
users:
- name: core
passwd: $6$rounds=9056$7vhPevh3ymNyHv/9$DtAfk2hcJeWtEbOvQmap/TeQnjZV5tJCGFc4iHnFDaHOT7hcgaPQajXtc2WxMlK3uA3pgmeIuffoX7/Eiy15q1
ssh-authorized-keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCv3sOmjO+lcS67HpB/Z6cjI+1X1RphxBpR6So5Ire4rnLJTqTwA8UtsV5oQk4l+laPJP6Ef2v1Dhpq+YRoYLIriUC4ZxA/MFtJxNbN0cWz3QGhPJsrhd7Eifraw/WJVd8ywdJ/s5rg+0aCGSRbGt/H7IOji71vhuGDIbLq6tPhiM93XmLFmj6KNW+9aWDw1CFXMDMT0XpumFHrfba1sbGDA1wGr9PhP0Isf+zutTRY0hJO3c/HATtOs+QA4gmEOCp/bTFqdoli8CiKUbMjC+VdJP09q7iS9EEHM2ldeC9MmVZmaIJe6Uo55pcjgMd6gjEX/xvTNY5Yqjy+VrAY7eI7 schuit@analysis
write_files:
- path: /etc/systemd/system/docker.service.d/increase-ulimit.conf
owner: "core:core"
permissions: 0644
content: |
[Service]
LimitMEMLOCK=infinity
LimitFSIZE=infinity
LimitCPU=infinity
LimitAS=infinity
LimitNOFILE=64000
LimitNPROC=64000
- path: /etc/sysctl.d/99-inotify.conf
owner: "root:root"
permissions: 0644
content: |
fs.inotify.max_user_instances = 8192
coreos:
update:
group: stable
etcd:
discovery: https://discovery.etcd.io/896be2114330fe546a635b47db444a66
addr: 172.24.156.150:4001
peer-addr: 172.24.156.150:7001
fleet:
metadata: role=services
units:
- name: etcd.service
command: start
- name: fleet.service
command: start
- name: docker.service
command: restart
content: |
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.io
After=network.target
[Service]
ExecStartPre=/bin/mount --make-rprivate /
ExecStart=/usr/bin/docker -d -s=btrfs -r=false -H fd://
[Install]
WantedBy=multi-user.target
- name: 00-eth0.network
runtime: true
content: |
[Match]
Name=ens32
[Network]
DNS=8.8.8.8
Address=172.24.156.150/24
Gateway=172.24.156.254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment