diff options
Diffstat (limited to 'bin/prepare_mock.py')
-rwxr-xr-x | bin/prepare_mock.py | 13 |
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) |