Created
February 18, 2020 18:47
-
-
Save hasues/ca6a94d8e02d61a690c916d51953dd99 to your computer and use it in GitHub Desktop.
Understanding masterless minion and branch configuration..
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Masterless minion: | |
`/etc/salt/minion`: | |
```yaml | |
ext_pillar: | |
- git: | |
- 2017.12 ssh://gituser@mygitrepo/home/gituser/reponame: | |
- root: pillar | |
- privkey: /root/.ssh/id_rsa | |
- pubkey: /root/.ssh/id_rsa.pub | |
fileserver_backend: | |
- git | |
gitfs_profider: pygit2 | |
#gitfs_base: 2017.12 | |
gitfs_remotes: | |
- ssh://gituser@mygitrepo/home/gituser/reponame: | |
- root: salt | |
- base: 2017.12 | |
- user: gituser | |
- insecure_auth: False | |
- pubkey: /root/.ssh/id_rsa.pub | |
- privkey: /root/.ssh/id_rsa | |
``` | |
On git host: | |
pillar `top.sls`: | |
```yaml | |
base: | |
'*': | |
- something1 | |
- something2 | |
'nodemame:host1': | |
- match: grain | |
- something3 | |
- something4 | |
``` | |
On salt `top.sls`: | |
```yaml | |
base: | |
'G@os:someOSdetectedbyGrain: | |
- state1 | |
- state2 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment