Add consul and name the agent
This commit is contained in:
40
1-coreos/1-prepare-ignition-files/jaglan-beta-m42.bu
Normal file
40
1-coreos/1-prepare-ignition-files/jaglan-beta-m42.bu
Normal file
@@ -0,0 +1,40 @@
|
||||
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
|
||||
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
|
||||
directories:
|
||||
- path: /opt/consul
|
||||
mode: 0700
|
||||
user:
|
||||
name: consul
|
||||
group:
|
||||
name: consul
|
||||
Reference in New Issue
Block a user