Last active
December 23, 2016 11:32
-
-
Save dongsupark/96af2b9cb3d40c51b4c8f2c61737936d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ignition": { "version": "2.0.0" }, | |
"storage": { | |
"files": [{ | |
"filesystem": "root", | |
"path": "/opt/bin/fleet-wrapper", | |
"mode": 493, | |
"contents": { | |
"source": "https://raw.githubusercontent.com/coreos/fleet/master/scripts/fleet-wrapper" | |
} | |
}] | |
}, | |
"systemd": { | |
"units": [ | |
{ | |
"name": "fleet.service", | |
"enable": true, | |
"contents": "[Unit]\nAfter=etcd.service etcd2.service etcd-member.service\nWants=network.target fleet.socket\n\n[Service]\nType=notify\nRestart=always\nRestartSec=10s\nLimitNOFILE=40000\nTimeoutStartSec=0\nExecStartPre=/usr/bin/mkdir -p /etc/fleet /run/dbus /run/fleet/units\nExecStartPre=/usr/bin/rkt trust --prefix \"quay.io/coreos/fleet\" --skip-fingerprint-review\nExecStart=/opt/bin/fleet-wrapper\n\n[Install]\nWantedBy=multi-user.target" | |
}, | |
{ | |
"name": "fleet.socket", | |
"enable": true, | |
"contents": "[Unit]\nDescription=Fleet API Socket\nPartOf=fleet.service\n\n[Socket]\nListenStream=/var/run/fleet.sock\nSocketMode=0660\nSocketUser=fleet\nSocketGroup=fleet" | |
} | |
] | |
}, | |
"passwd": { | |
"users": [ | |
{ | |
"name": "core", | |
"sshAuthorizedKeys": [ | |
"ssh-rsa [email protected]" | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment