Update local scripts

This commit is contained in:
Quentin 2020-06-16 16:28:24 +02:00
parent 3534ba1a19
commit e7ed8a49fb
7 changed files with 14 additions and 11 deletions

View File

@ -1,11 +1,16 @@
---
- hosts: cluster_nodes
serial: 1
roles:
- role: common
tags: base
- role: users
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
# to the ansible playbook command line.
@ -18,14 +23,6 @@
- role: network
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.
# - role: storage
# tags: sto

1
ansible/group_vars/all/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
vars_file.yml

View File

@ -0,0 +1 @@
consul_gossip_encrypt: 'xxx'

View File

@ -1,6 +1,6 @@
- name: "Set consul version"
set_fact:
consul_version: 1.4.0
consul_version: 1.7.4
- name: "Download and install Consul for armv7l"
unarchive:

View File

@ -1,5 +1,9 @@
[Unit]
Description=Nomad
After=network-online.target
Wants=network-online.target
After=glusterd.service
Wants=glusterd.service
[Service]
ExecStart=/usr/local/bin/nomad agent -config /etc/nomad

View File

@ -1,6 +1,6 @@
- name: "Set nomad version"
set_fact:
nomad_version: 0.8.6
nomad_version: 0.11.3
- name: "Download and install Nomad for armv7l"
unarchive:

View File

@ -63,7 +63,7 @@
path: /mnt/glusterfs
src: "{{ private_ip }}:/donnees"
fstype: glusterfs
opts: "defaults,_netdev"
opts: "defaults,_netdev,noauto,x-systemd.automount"
state: present
- name: Mount everything