Selaa lähdekoodia

Pillar test data

tags/0.4
Ales Komarek 8 vuotta sitten
vanhempi
commit
b2c8ff6df5
11 muutettua tiedostoa jossa 164 lisäystä ja 23 poistoa
  1. +8
    -23
      README.rst
  2. +6
    -0
      salt/master/pillar.sls
  3. +24
    -0
      tests/pillar/master_acl.sls
  4. +25
    -0
      tests/pillar/master_api.sls
  5. +18
    -0
      tests/pillar/master_cluster_failover.sls
  6. +24
    -0
      tests/pillar/master_custom_handler.sls
  7. +15
    -0
      tests/pillar/master_ssh_minion_key.sls
  8. +15
    -0
      tests/pillar/master_ssh_minion_password.sls
  9. +15
    -0
      tests/pillar/master_ssh_minion_root.sls
  10. +14
    -0
      tests/pillar/minion_custom_handler.sls
  11. +0
    -0
      tests/pillar/salt_master_peer.sls

+ 8
- 23
README.rst Näytä tiedosto

@@ -25,28 +25,13 @@ Salt master with reclass ENC as metadata backend

Salt master with API

.. code-block:: yaml

salt:
api:
enabled: true
ssl:
engine: salt
bind:
address: 0.0.0.0
port: 8000
.. literalinclude:: tests/pillar/master_api.sls
:language: yaml

Salt master with defined user ACLs

.. code-block:: yaml

salt:
master:
user:
peter:
permissions:
- 'fs.fs'
- 'fs.\*'
.. literalinclude:: tests/pillar/master_acl.sls
:language: yaml

Salt master with preset minions

@@ -55,7 +40,6 @@ Salt master with preset minions
salt:
master:
enabled: true
...
minions:
- name: 'node1.system.location.domain.com'

@@ -125,8 +109,7 @@ Salt master syndicate master of masters
salt:
master:
enabled: true
...
syndic:
syndicate:
mode: master

Salt master syndicate (client) master
@@ -136,7 +119,6 @@ Salt master syndicate (client) master
salt:
master:
enabled: true
...
syndicate:
mode: client
host: master-master
@@ -222,6 +204,9 @@ Salt minion with graphing dependencies
.. literalinclude:: tests/pillar/minion_graph.sls
:language: yaml

PKI CA
~~~~~~

Salt minion with PKI CA

.. literalinclude:: tests/pillar/minion_pki_ca.sls

+ 6
- 0
salt/master/pillar.sls Näytä tiedosto

@@ -4,9 +4,13 @@
{%- if master.pillar.engine == 'salt' %}

include:
{%- if master.pillar.source.engine == "git" %}
- git.client
{%- endif %}
- salt.master.service

{%- if master.pillar.source.engine == "git" %}

{{ master.pillar.source.address }}:
git.latest:
- target: /srv/salt/pillar
@@ -25,6 +29,8 @@ include:

{%- endif %}

{%- endif %}

{%- elif master.pillar.engine == 'reclass' %}

include:

+ 24
- 0
tests/pillar/master_acl.sls Näytä tiedosto

@@ -0,0 +1,24 @@
git:
client:
enabled: true
linux:
system:
enabled: true
salt:
master:
enabled: true
source:
engine: pkg
pillar:
engine: salt
source:
engine: local
environment:
prd:
formula: {}
user:
peter:
enabled: true
permissions:
- 'fs.fs'
- 'fs.\*'

+ 25
- 0
tests/pillar/master_api.sls Näytä tiedosto

@@ -0,0 +1,25 @@
git:
client:
enabled: true
linux:
system:
enabled: true
salt:
master:
enabled: true
source:
engine: pkg
pillar:
engine: salt
source:
engine: local
environment:
prd:
formula: {}
api:
enabled: true
ssl:
engine: salt
bind:
address: 0.0.0.0
port: 8000

+ 18
- 0
tests/pillar/master_cluster_failover.sls Näytä tiedosto

@@ -0,0 +1,18 @@
git:
client:
enabled: true
linux:
system:
enabled: true
salt:
master:
enabled: true
source:
engine: pkg
pillar:
engine: salt
source:
engine: local
environment:
prd:
formula: {}

+ 24
- 0
tests/pillar/master_custom_handler.sls Näytä tiedosto

@@ -0,0 +1,24 @@
git:
client:
enabled: true
linux:
system:
enabled: true
salt:
master:
enabled: true
source:
engine: pkg
pillar:
engine: salt
source:
engine: local
environment:
prd:
formula: {}
handler:
handler01:
engine: udp
bind:
host: 127.0.0.1
port: 9999

+ 15
- 0
tests/pillar/master_ssh_minion_key.sls Näytä tiedosto

@@ -1,6 +1,21 @@
git:
client:
enabled: true
linux:
system:
enabled: true
salt:
master:
enabled: true
source:
engine: pkg
pillar:
engine: salt
source:
engine: local
environment:
prd:
formula: {}
ssh_minion:
node01:
host: 10.0.0.1

+ 15
- 0
tests/pillar/master_ssh_minion_password.sls Näytä tiedosto

@@ -1,6 +1,21 @@
git:
client:
enabled: true
linux:
system:
enabled: true
salt:
master:
enabled: true
source:
engine: pkg
pillar:
engine: salt
source:
engine: local
environment:
prd:
formula: {}
ssh_minion:
node01:
host: 10.0.0.1

+ 15
- 0
tests/pillar/master_ssh_minion_root.sls Näytä tiedosto

@@ -1,6 +1,21 @@
git:
client:
enabled: true
linux:
system:
enabled: true
salt:
master:
enabled: true
source:
engine: pkg
pillar:
engine: salt
source:
engine: local
environment:
prd:
formula: {}
ssh_minion:
node01:
host: 10.0.0.1

+ 14
- 0
tests/pillar/minion_custom_handler.sls Näytä tiedosto

@@ -0,0 +1,14 @@
salt:
minion:
enabled: true
handler:
handler01:
engine: udp
bind:
host: 127.0.0.1
port: 9999
handler02:
engine: zmq
bind:
host: 127.0.0.1
port: 9999

tests/pillar/master_base.sls → tests/pillar/salt_master_peer.sls Näytä tiedosto


Loading…
Peruuta
Tallenna