forked from Deuxfleurs/infrastructure
Update local scripts
This commit is contained in:
parent
3534ba1a19
commit
e7ed8a49fb
7 changed files with 14 additions and 11 deletions
|
@ -1,11 +1,16 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- hosts: cluster_nodes
|
- hosts: cluster_nodes
|
||||||
|
serial: 1
|
||||||
roles:
|
roles:
|
||||||
- role: common
|
- role: common
|
||||||
tags: base
|
tags: base
|
||||||
- role: users
|
- role: users
|
||||||
tags: account
|
tags: account
|
||||||
|
- role: consul
|
||||||
|
tags: kv
|
||||||
|
- role: nomad
|
||||||
|
tags: orchestrator
|
||||||
|
|
||||||
# UNSAFE!! This section is disabled by default, to run it the flags -t net should be added
|
# UNSAFE!! This section is disabled by default, to run it the flags -t net should be added
|
||||||
# to the ansible playbook command line.
|
# to the ansible playbook command line.
|
||||||
|
@ -18,14 +23,6 @@
|
||||||
- role: network
|
- role: network
|
||||||
tags: [ net, never ]
|
tags: [ net, never ]
|
||||||
|
|
||||||
- hosts: cluster_nodes
|
|
||||||
serial: 1
|
|
||||||
roles:
|
|
||||||
- role: consul
|
|
||||||
tags: kv
|
|
||||||
- role: nomad
|
|
||||||
tags: orchestrator
|
|
||||||
|
|
||||||
# UNSAFE!! This section configures glusterfs. Once done, don't run it ever again as it may break stuff.
|
# UNSAFE!! This section configures glusterfs. Once done, don't run it ever again as it may break stuff.
|
||||||
# - role: storage
|
# - role: storage
|
||||||
# tags: sto
|
# tags: sto
|
||||||
|
|
1
ansible/group_vars/all/.gitignore
vendored
Normal file
1
ansible/group_vars/all/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
vars_file.yml
|
1
ansible/group_vars/all/vars_file.yml.sample
Normal file
1
ansible/group_vars/all/vars_file.yml.sample
Normal file
|
@ -0,0 +1 @@
|
||||||
|
consul_gossip_encrypt: 'xxx'
|
|
@ -1,6 +1,6 @@
|
||||||
- name: "Set consul version"
|
- name: "Set consul version"
|
||||||
set_fact:
|
set_fact:
|
||||||
consul_version: 1.4.0
|
consul_version: 1.7.4
|
||||||
|
|
||||||
- name: "Download and install Consul for armv7l"
|
- name: "Download and install Consul for armv7l"
|
||||||
unarchive:
|
unarchive:
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Nomad
|
Description=Nomad
|
||||||
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
After=glusterd.service
|
||||||
|
Wants=glusterd.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad
|
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
- name: "Set nomad version"
|
- name: "Set nomad version"
|
||||||
set_fact:
|
set_fact:
|
||||||
nomad_version: 0.8.6
|
nomad_version: 0.11.3
|
||||||
|
|
||||||
- name: "Download and install Nomad for armv7l"
|
- name: "Download and install Nomad for armv7l"
|
||||||
unarchive:
|
unarchive:
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
path: /mnt/glusterfs
|
path: /mnt/glusterfs
|
||||||
src: "{{ private_ip }}:/donnees"
|
src: "{{ private_ip }}:/donnees"
|
||||||
fstype: glusterfs
|
fstype: glusterfs
|
||||||
opts: "defaults,_netdev"
|
opts: "defaults,_netdev,noauto,x-systemd.automount"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Mount everything
|
- name: Mount everything
|
||||||
|
|
Loading…
Reference in a new issue