14 lines
327 B
Python
14 lines
327 B
Python
|
#!/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)
|