diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-12-18 14:46:41 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-12-18 14:46:41 -0500 |
commit | 6260aca7bf54b5406db24ff368b52363a3c9ea28 (patch) | |
tree | d2ba8cb388facb4f963cfd890914cd935389bbe0 /base/deploy/src/scriptlets/infrastructure_layout.py | |
parent | 6e77f338ca848ec204a666b1a39bfcbc6c05301c (diff) | |
download | pki-ticket-380.tar.gz pki-ticket-380.tar.xz pki-ticket-380.zip |
WIPticket-380
Diffstat (limited to 'base/deploy/src/scriptlets/infrastructure_layout.py')
-rw-r--r-- | base/deploy/src/scriptlets/infrastructure_layout.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/base/deploy/src/scriptlets/infrastructure_layout.py b/base/deploy/src/scriptlets/infrastructure_layout.py index 947fbcdfe..5d0924f12 100644 --- a/base/deploy/src/scriptlets/infrastructure_layout.py +++ b/base/deploy/src/scriptlets/infrastructure_layout.py @@ -58,8 +58,16 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet): util.directory.create(master['pki_subsystem_registry_path']) util.file.copy(master['pki_default_deployment_cfg'], master['pki_default_deployment_cfg_replica']) - util.file.copy(master['pki_user_deployment_cfg'], - master['pki_user_deployment_cfg_replica']) + if master['pki_user_deployment_cfg']: + util.file.copy(master['pki_user_deployment_cfg'], + master['pki_user_deployment_cfg_replica']) + else: + with open(master['pki_user_deployment_cfg_replica'], 'w') as f: + f.write('[' + master['pki_subsystem'] + ']\n') + f.write('pki_instance_name=' + master['pki_instance_name'] + '\n') + f.write('pki_admin_password=' + master['pki_admin_password'] + '\n') + f.write('pki_ds_password=' + master['pki_ds_password'] + '\n') + # establish top-level infrastructure, instance, and subsystem # base directories and create the "registry" symbolic link that # the "pkidestroy" executable relies upon |