Pārlūkot izejas kodu

Orchestration metadata and states

tags/2016.12
Adam Tengler pirms 8 gadiem
vecāks
revīzija
12e9b907a0
4 mainītis faili ar 34 papildinājumiem un 14 dzēšanām
  1. +6
    -0
      galera/meta/salt.yml
  2. +0
    -14
      galera/orchestrate/init.sls
  3. +18
    -0
      galera/orchestrate/master.sls
  4. +10
    -0
      galera/orchestrate/slave.sls

+ 6
- 0
galera/meta/salt.yml Parādīt failu

@@ -0,0 +1,6 @@
orchestrate:
master:
priority: 140
slave:
priority: 150


+ 0
- 14
galera/orchestrate/init.sls Parādīt failu

@@ -1,14 +0,0 @@
galera_master:
salt.state:
- tgt: 'roles:galera.master'
- tgt_type: grain
- sls: galera

galera_slaves:
salt.state:
- tgt: 'roles:galera.slave'
- tgt_type: grain
- sls: galera
- require:
- salt: galera_master


+ 18
- 0
galera/orchestrate/master.sls Parādīt failu

@@ -0,0 +1,18 @@
galera.master:
salt.state:
- tgt: 'galera:master'
- tgt_type: pillar
- queue: True
- sls: galera.master
- batch: 1

galera.server:
salt.state:
- tgt: 'galera:master'
- tgt_type: pillar
- queue: True
- sls: galera.server
- batch: 1
- require:
- salt: galera.master


+ 10
- 0
galera/orchestrate/slave.sls Parādīt failu

@@ -0,0 +1,10 @@
galera.slave:
salt.state:
- tgt: 'galera:slave'
- tgt_type: pillar
- queue: True
- sls: galera.slave
- batch: 1
- require:
- salt: galera.server


Notiek ielāde…
Atcelt
Saglabāt