75 lines
2.7 KiB
Plaintext
75 lines
2.7 KiB
Plaintext
{
|
|
"ignition": {
|
|
"version": "3.4.0"
|
|
},
|
|
"passwd": {
|
|
"users": [
|
|
{
|
|
"name": "core",
|
|
"sshAuthorizedKeys": [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJwojmm5GUDQTt/ic1w3yf5c0fyiPqhy8D9Y4qMVljEA othrayte@gmail.com"
|
|
]
|
|
},
|
|
{
|
|
"name": "consul",
|
|
"noCreateHome": true
|
|
}
|
|
]
|
|
},
|
|
"storage": {
|
|
"directories": [
|
|
{
|
|
"group": {
|
|
"name": "consul"
|
|
},
|
|
"path": "/opt/consul",
|
|
"user": {
|
|
"name": "consul"
|
|
},
|
|
"mode": 448
|
|
}
|
|
],
|
|
"files": [
|
|
{
|
|
"path": "/etc/hostname",
|
|
"contents": {
|
|
"compression": "",
|
|
"source": "data:,jaglan-beta-m42"
|
|
},
|
|
"mode": 420
|
|
},
|
|
{
|
|
"path": "/etc/yum.repos.d/hashicorp.repo",
|
|
"contents": {
|
|
"compression": "gzip",
|
|
"source": "data:;base64,H4sIAAAAAAAC/7SPPcvCQBCE+/sVKdIm+76tkN5eO7HYXMY7ydexuwr+e4kfZ2EjgtXOMvAMzy6yxqOfJe3dxCOa9fMvNsbtgKIqypYVLD66JZxkaKJZ0hWRpLEWDGCF1plU+3mkA7pZmMpHfYZQ5pDe0A7Tcrrm34UUfITv77HH5ZOJkIJzL4HKoPZmsYXaTxyWtWzw97XBNQAA//9Dsu7agQEAAA=="
|
|
},
|
|
"mode": 420
|
|
},
|
|
{
|
|
"group": {
|
|
"name": "consul"
|
|
},
|
|
"path": "/etc/consul.d/consul.hcl",
|
|
"user": {
|
|
"name": "consul"
|
|
},
|
|
"contents": {
|
|
"compression": "gzip",
|
|
"source": "data:;base64,H4sIAAAAAAAC/1SPPU/DMBRFd/+KK7NSlZa2WzY+FhCtBAKEUPviPGK3yXNjvwD596hhgfWc4d5TkZJjUU4oYPdUNySTkpWsOaltFUYxjUeduii5b6xhcWk46okv75buQW79ZnV5/XTfrVUW+npVzl7oo23LzfdcVs/d+tDxTS4szvDoQ0bIIGR2iRXqSZF97JsKJaNm4UTKFb6Ceux+J3HgoWbZmcSahu0+BkGBt793J+3FzJ7jP1rM7bvJnD7HOk09m58AAAD//+J027nwAAAA"
|
|
},
|
|
"mode": 384
|
|
}
|
|
]
|
|
},
|
|
"systemd": {
|
|
"units": [
|
|
{
|
|
"contents": "[Unit]\nDescription=Layer nomad \u0026 consul with rpm-ostree\nWants=network-online.target\nAfter=network-online.target\n# We run before `zincati.service` to avoid conflicting rpm-ostree\n# transactions.\nBefore=zincati.service\nConditionPathExists=!/var/lib/%N.stamp\n\n[Service]\nType=oneshot\nRemainAfterExit=yes\n# `--allow-inactive` ensures that rpm-ostree does not return an error\n# if the package is already installed. This is useful if the package is\n# added to the root image in a future Fedora CoreOS release as it will\n# prevent the service from failing.\nExecStart=/usr/bin/rpm-ostree install --apply-live --allow-inactive consul nomad\nExecStart=systemctl enable consul nomad\nExecStart=/bin/touch /var/lib/%N.stamp\nExecStart=systemctl reboot\n\n[Install]\nWantedBy=multi-user.target",
|
|
"enabled": true,
|
|
"name": "rpm-ostree-install-hashistack.service"
|
|
}
|
|
]
|
|
}
|
|
}
|