summaryrefslogtreecommitdiffstats
path: root/bin/prepare_mock.py
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-01-15 09:18:15 +0100
committerGeorg Pfuetzenreuter2023-01-15 09:18:15 +0100
commitf1a4b0514c148d9b5477f5c2b11938445e4438b1 (patch)
tree003745428e583f6d3287f0259040dc1358503505 /bin/prepare_mock.py
downloadsalt-f1a4b0514c148d9b5477f5c2b11938445e4438b1.tar.gz
salt-f1a4b0514c148d9b5477f5c2b11938445e4438b1.tar.bz2
salt-f1a4b0514c148d9b5477f5c2b11938445e4438b1.zip
Init
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'bin/prepare_mock.py')
-rwxr-xr-xbin/prepare_mock.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/prepare_mock.py b/bin/prepare_mock.py
new file mode 100755
index 0000000..982ca32
--- /dev/null
+++ b/bin/prepare_mock.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python3
+
+import os
+import shutil
+import socket
+
+iddir = 'pillar/id/'
+secretiddir = 'pillar/secret/id/'
+baseidfile = 'atvkdev02_home_lysergic_dev.sls'
+myidfile = socket.gethostname() + '.sls'
+
+shutil.copyfile(iddir + baseidfile, iddir + myidfile)
+shutil.copyfile(secretiddir + baseidfile, secretiddir + myidfile)