salt/bin/prepare_mock.py
Georg Pfuetzenreuter f1a4b0514c
Init
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-01-15 09:18:15 +01:00

14 lines
327 B
Python
Executable File

#!/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)