summaryrefslogtreecommitdiffstats
path: root/bin/prepare_minion.py
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-01-21 18:38:41 +0100
committerGeorg Pfuetzenreuter2023-01-21 18:54:58 +0100
commit97db5ef6db7952d8f7da9e46559a352736d4cb4d (patch)
treed3cfffd077cfc63b0cb54d30eeda5dade3ee838d /bin/prepare_minion.py
parent8c72e7c63a2124d19e361821ef184ce66a5d6cd4 (diff)
downloadsalt-97db5ef6db7952d8f7da9e46559a352736d4cb4d.tar.gz
salt-97db5ef6db7952d8f7da9e46559a352736d4cb4d.tar.bz2
salt-97db5ef6db7952d8f7da9e46559a352736d4cb4d.zip
Add nbroles_to_grains script + add note
Script allows for testing and pipeline minions to work without access to the roles API. Additionally added a note about this in prepare_minion.py. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'bin/prepare_minion.py')
-rwxr-xr-xbin/prepare_minion.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/prepare_minion.py b/bin/prepare_minion.py
index e89434a..a4aee0c 100755
--- a/bin/prepare_minion.py
+++ b/bin/prepare_minion.py
@@ -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