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
|
||||
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
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"
|
||||
set_fact:
|
||||
consul_version: 1.4.0
|
||||
consul_version: 1.7.4
|
||||
|
||||
- name: "Download and install Consul for armv7l"
|
||||
unarchive:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue