2023-01-15 09:18:15 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import os
|
|
|
|
import shutil
|
|
|
|
import socket
|
|
|
|
|
|
|
|
iddir = 'pillar/id/'
|
|
|
|
secretiddir = 'pillar/secret/id/'
|
2023-01-21 18:53:50 +01:00
|
|
|
baseidfile = 'pillar/mock/example.sls'
|
2023-01-15 09:18:15 +01:00
|
|
|
myidfile = socket.gethostname() + '.sls'
|
|
|
|
|
2023-01-21 18:53:50 +01:00
|
|
|
shutil.copyfile(baseidfile, os.path.join(iddir, myidfile))
|
|
|
|
os.makedirs(secretiddir)
|
|
|
|
shutil.copyfile(baseidfile, os.path.join(secretiddir, myidfile))
|