56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
variant: fcos
|
|
version: 1.5.0
|
|
passwd:
|
|
users:
|
|
- name: core
|
|
ssh_authorized_keys:
|
|
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJwojmm5GUDQTt/ic1w3yf5c0fyiPqhy8D9Y4qMVljEA othrayte@gmail.com
|
|
# We need to make users for consul and nomad as we need them before their installed
|
|
- name: consul
|
|
no_create_home: true
|
|
- name: nomad
|
|
no_create_home: true
|
|
systemd:
|
|
units:
|
|
- name: rpm-ostree-install-hashistack.service
|
|
enabled: true
|
|
contents_local: /units/rpm-ostree-install-hashistack.service
|
|
storage:
|
|
files:
|
|
- path: /etc/hostname
|
|
mode: 0644
|
|
contents:
|
|
inline: jaglan-beta-m42
|
|
- path: /etc/yum.repos.d/hashicorp.repo
|
|
contents:
|
|
local: /etc/yum.repos.d/hashicorp.repo
|
|
mode: 0644
|
|
- path: /etc/consul.d/consul.hcl
|
|
contents:
|
|
local: /etc/consul.d/consul.hcl
|
|
mode: 0600
|
|
group:
|
|
name: consul
|
|
user:
|
|
name: consul
|
|
- path: /etc/nomad.d/nomad.hcl
|
|
contents:
|
|
local: /etc/nomad.d/nomad.hcl
|
|
mode: 0600
|
|
group:
|
|
name: nomad
|
|
user:
|
|
name: nomad
|
|
directories:
|
|
- path: /opt/consul
|
|
mode: 0700
|
|
user:
|
|
name: consul
|
|
group:
|
|
name: consul
|
|
- path: /opt/nomad/data
|
|
mode: 0700
|
|
user:
|
|
name: nomad
|
|
group:
|
|
name: nomad |