Compare commits
2 Commits
442ff683d1
...
b67e61bd1b
Author | SHA1 | Date | |
---|---|---|---|
b67e61bd1b | |||
8c72e7c63a |
4
bin/nbroles_to_grains.sh
Normal file
4
bin/nbroles_to_grains.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
# This rewrites top-files to fetch roles from grains instead of our custom roles API. Useful for testing outside of the LibertaCasa infrastructure, but not recommended for production.
|
||||
|
||||
sed -i "s/salt\['nbroles.get'\](id)/grains\['roles'\]/" */top.sls
|
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
# Prepares a minion for local testing of Salt code in this repository. Requires roles to be written as grains, as development and pipeline containers generally do not have access to our roles API. Consider nbroles_to_grains.sh first if this is the case.
|
||||
|
||||
import roles
|
||||
import os
|
||||
|
1
pillar/id/README.md
Normal file
1
pillar/id/README.md
Normal file
@ -0,0 +1 @@
|
||||
This directory can be used for machine-specific pillar data.
|
1
pillar/role/README.md
Normal file
1
pillar/role/README.md
Normal file
@ -0,0 +1 @@
|
||||
This directory is used for role-wide pillar data.
|
Loading…
x
Reference in New Issue
Block a user