-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsaltshaker.conf
144 lines (131 loc) · 4.16 KB
/
saltshaker.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Common settings
interface: 0.0.0.0
log_level: debug
#log_file: /dev/stderr
pidfile: /run/salt-master.pid
# Extension modules
extension_modules: /srv/salt-modules
# File server
file_roots:
base:
- /srv/salt
# Pillars
pillar_roots:
base:
- /srv/pillar
dynamicsecrets.consul_url: http://169.254.1.1:8500/
dynamicsecrets.consul_token_secret: consul-acl-master-token
# load the dynamic secrets pillar
ext_pillar:
- dynamicsecrets:
config:
approle-auth-token:
type: uuid
authserver-role-id:
type: uuid
concourse-encryption:
length: 32
concourse-hostkey:
length: 2048
type: rsa
concourse-oauth2-read:
type: uuid
concourse-role-id:
type: uuid
concourse-signingkey:
length: 2048
type: rsa
consul-acl-master-token:
type: uuid
consul-acl-token:
type: consul-acl-token
unique-per-host: True
consul-agent-master-token:
type: uuid
consul-encryptionkey:
encode: base64
length: 16
dkimsigner-role-id:
type: uuid
gpg-auth-token:
type: uuid
gpg-read-token:
type: uuid
mailforwarder-role-id:
type: uuid
grainmapping:
roles:
authserver:
- approle-auth-token
- authserver
- authserver-role-id
- concourse-oauth2-read
- dkimsigner-role-id
- dovecot-authserver
- mailforwarder-role-id
- opensmtpd-authserver
buildserver:
- approle-auth-token
- concourse-db
- concourse-encryption
- concourse-hostkey
- concourse-oauth2-read
- concourse-role-id
- concourse-signingkey
- concourse-sysop
buildworker:
- approle-auth-token
- concourse-hostkey
- concourse-role-id
- concourse-role-id
consulserver:
- consul-acl-token
- consul-acl-master-token
- consul-agent-master-token
database:
- authserver
- checkuser
- concourse-db
- dkimsigner
- dovecot-authserver
- mailforwarder
- opensmtpd-authserver
- postgres
- secure-vault
- vault-db-credential-admin
mail:
- approle-auth-token
- dkimsigner-role-id
- dovecot-authserver
- mailforwarder-role-id
- opensmtpd-authserver
vault:
- approle-auth-token
- authserver-role-id
- concourse-oauth2-read
- concourse-role-id
- dkimsigner-role-id
- mailforwarder-role-id
- secure-vault
hostmapping:
'*':
- consul-acl-token
- consul-encryptionkey
- gpg-auth-token
- gpg-read-token
# make sure that all minions run the roledir grain before their initial highstate
# http://docs.saltstack.com/en/latest/topics/reactor/#syncing-custom-types-on-minion-start
reactor:
- 'salt/minion/*/start':
- /srv/reactor/sync-all.sls
- /srv/reactor/consul-acl.sls
- 'maurusnet/consul/installed':
- /srv/reactor/consul-acl.sls
- 'maurusnet/highstate/complete':
- /srv/reactor/sync-all.sls
hash_type: sha256
# Peer publishing
peer:
.*:
- grains.ls
- grains.get