summaryrefslogtreecommitdiffstats
path: root/bin/prepare_mock.py
blob: 982ca32a00e0310402f53365abd89ec5e096d822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)