summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorAbhishek Koneru <akoneru@redhat.com>2013-03-26 11:50:15 -0400
committerAbhishek Koneru <akoneru@redhat.com>2013-04-03 13:40:04 -0400
commit58af16ad10520d5a667427ec998127e45dd98612 (patch)
tree440e7851fa3bc404dd32e076499258cef7cfd8ec /base
parentd5343eb15f053360be46f0d190482ea71d145357 (diff)
downloadpki-58af16ad10520d5a667427ec998127e45dd98612.tar.gz
pki-58af16ad10520d5a667427ec998127e45dd98612.tar.xz
pki-58af16ad10520d5a667427ec998127e45dd98612.zip
Separate folder for python deployment engine source code.
Place the python deployment source code and the python deployment scriptlets in two seperate folders base/deploy/src/engine and /base/deploy/src/scriptlets in the project. Ticket #521
Diffstat (limited to 'base')
-rw-r--r--base/deploy/CMakeLists.txt14
-rw-r--r--base/deploy/src/engine/pkiconfig.py (renamed from base/deploy/src/scriptlets/pkiconfig.py)0
-rw-r--r--base/deploy/src/engine/pkihelper.py (renamed from base/deploy/src/scriptlets/pkihelper.py)44
-rw-r--r--base/deploy/src/engine/pkilogging.py (renamed from base/deploy/src/scriptlets/pkilogging.py)0
-rw-r--r--base/deploy/src/engine/pkimanifest.py (renamed from base/deploy/src/scriptlets/pkimanifest.py)0
-rw-r--r--base/deploy/src/engine/pkimessages.py (renamed from base/deploy/src/scriptlets/pkimessages.py)0
-rw-r--r--base/deploy/src/engine/pkiparser.py (renamed from base/deploy/src/scriptlets/pkiparser.py)0
-rw-r--r--base/deploy/src/engine/pkiscriptlet.py (renamed from base/deploy/src/scriptlets/pkiscriptlet.py)0
8 files changed, 29 insertions, 29 deletions
diff --git a/base/deploy/CMakeLists.txt b/base/deploy/CMakeLists.txt
index 8483482c2..9c2b7f942 100644
--- a/base/deploy/CMakeLists.txt
+++ b/base/deploy/CMakeLists.txt
@@ -107,18 +107,18 @@ install(
install(
FILES
+ src/engine/pkiconfig.py
+ src/engine/pkihelper.py
+ src/engine/pkilogging.py
+ src/engine/pkimanifest.py
+ src/engine/pkimessages.py
+ src/engine/pkiparser.py
+ src/engine/pkiscriptlet.py
src/scriptlets/configuration.py
src/scriptlets/finalization.py
src/scriptlets/infrastructure_layout.py
src/scriptlets/initialization.py
src/scriptlets/instance_layout.py
- src/scriptlets/pkiconfig.py
- src/scriptlets/pkihelper.py
- src/scriptlets/pkilogging.py
- src/scriptlets/pkimanifest.py
- src/scriptlets/pkimessages.py
- src/scriptlets/pkiparser.py
- src/scriptlets/pkiscriptlet.py
src/scriptlets/security_databases.py
src/scriptlets/selinux_setup.py
src/scriptlets/slot_substitution.py
diff --git a/base/deploy/src/scriptlets/pkiconfig.py b/base/deploy/src/engine/pkiconfig.py
index ad6c22251..ad6c22251 100644
--- a/base/deploy/src/scriptlets/pkiconfig.py
+++ b/base/deploy/src/engine/pkiconfig.py
diff --git a/base/deploy/src/scriptlets/pkihelper.py b/base/deploy/src/engine/pkihelper.py
index c1828ef41..df71978ed 100644
--- a/base/deploy/src/scriptlets/pkihelper.py
+++ b/base/deploy/src/engine/pkihelper.py
@@ -1011,7 +1011,7 @@ class instance:
status = root.findtext("Status")
return status
except requests.exceptions.ConnectionError:
- config.pki_log.debug("No connection",
+ config.pki_log.debug("No connection",
extra=config.PKI_INDENTATION_LEVEL_3)
return None
@@ -2358,7 +2358,7 @@ class certutil:
extra=config.PKI_INDENTATION_LEVEL_2)
sys.exit(1)
- config.pki_log.info(command,
+ config.pki_log.info(command,
extra=config.PKI_INDENTATION_LEVEL_2)
subprocess.call(command)
except subprocess.CalledProcessError as exc:
@@ -2491,7 +2491,7 @@ class pk12util:
extra=config.PKI_INDENTATION_LEVEL_2)
sys.exit(1)
- config.pki_log.info(command,
+ config.pki_log.info(command,
extra=config.PKI_INDENTATION_LEVEL_2)
with open(os.devnull, "w") as fnull:
subprocess.call(command, stdout=fnull, stderr=fnull)
@@ -2577,7 +2577,7 @@ class kra_connector:
else:
return
- self.execute_using_sslget(caport, cahost, subsystemnick,
+ self.execute_using_sslget(caport, cahost, subsystemnick,
token_pwd, krahost, kraport)
except subprocess.CalledProcessError as exc:
@@ -2592,7 +2592,7 @@ class kra_connector:
sys.exit(-1)
return
- def execute_using_pki(self, caport, cahost, subsystemnick,
+ def execute_using_pki(self, caport, cahost, subsystemnick,
token_pwd, krahost, kraport, critical_failure=False):
command = "/bin/pki -p '{}' -h '{}' -n '{}' -P https -d '{}' -w '{}' "\
"kraconnector-del {} {}".format(
@@ -2616,7 +2616,7 @@ class kra_connector:
if critical_failure == True:
sys.exit(-1)
- def execute_using_sslget(self, caport, cahost, subsystemnick,
+ def execute_using_sslget(self, caport, cahost, subsystemnick,
token_pwd, krahost, kraport):
urlheader = "https://{}:{}".format(cahost, caport)
updateURL = "/ca/rest/admin/kraconnector/remove"
@@ -2717,20 +2717,20 @@ class security_domain:
log.PKIHELPER_SECURITY_DOMAIN_UNREACHABLE_1,
secname,
extra=config.PKI_INDENTATION_LEVEL_2)
- output = self.update_domain_using_agent_port(typeval,
- secname, params, updateURL, sechost, secagentport,
+ output = self.update_domain_using_agent_port(typeval,
+ secname, params, updateURL, sechost, secagentport,
critical_failure)
else:
- output = self.update_domain_using_agent_port(typeval,
- secname, params, updateURL, sechost, secagentport,
+ output = self.update_domain_using_agent_port(typeval,
+ secname, params, updateURL, sechost, secagentport,
critical_failure)
- if not output:
+ if not output:
if critical_failure == True:
sys.exit(-1)
else:
return
-
+
config.pki_log.debug(log.PKIHELPER_SSLGET_OUTPUT_1,
output,
extra=config.PKI_INDENTATION_LEVEL_2)
@@ -3089,11 +3089,11 @@ class config_client:
os.chmod(master['pki_client_admin_cert_p12'],
config.PKI_DEPLOYMENT_DEFAULT_SECURITY_DATABASE_PERMISSIONS)
-
+
def construct_pki_configuration_data(self):
config.pki_log.info(log.PKI_CONFIG_CONSTRUCTING_PKI_DATA,
extra=config.PKI_INDENTATION_LEVEL_2)
-
+
data = pki.system.ConfigurationRequest()
# Miscellaneous Configuration Information
@@ -3122,7 +3122,7 @@ class config_client:
# PKI CA or External CA
self.set_new_security_domain(data)
- # database
+ # database
if master['pki_subsystem'] != "RA":
self.set_database_parameters(data)
@@ -3130,7 +3130,7 @@ class config_client:
if master['pki_instance_type'] == "Tomcat":
self.set_backup_parameters(data)
- # admin user
+ # admin user
if not config.str2bool(master['pki_clone']):
self.set_admin_parameters(data)
@@ -3319,18 +3319,18 @@ class config_client:
certutil.generate_certificate_request(
master['pki_admin_subject_dn'],
master['pki_admin_keysize'],
- master['pki_client_password_conf'],
+ master['pki_client_password_conf'],
noise_file,
- output_file,
- master['pki_client_database_dir'],
+ output_file,
+ master['pki_client_database_dir'],
None, None, True)
# convert output to ascii
command = ["BtoA", output_file, output_file + ".asc"]
- config.pki_log.info(command,
+ config.pki_log.info(command,
extra=config.PKI_INDENTATION_LEVEL_2)
subprocess.call(command)
-
+
with open(output_file + ".asc") as f:
b64 = f.read().replace('\n','')
@@ -3378,7 +3378,7 @@ class config_client:
cert.subjectDN = master["pki_ssl_server_subject_dn"]
cert.token = cs_cfg.get(cstype + ".sslserver.tokenname")
return cert
-
+
# PKI Deployment Helper Class Instances
identity = identity()
namespace = namespace()
diff --git a/base/deploy/src/scriptlets/pkilogging.py b/base/deploy/src/engine/pkilogging.py
index 319616145..319616145 100644
--- a/base/deploy/src/scriptlets/pkilogging.py
+++ b/base/deploy/src/engine/pkilogging.py
diff --git a/base/deploy/src/scriptlets/pkimanifest.py b/base/deploy/src/engine/pkimanifest.py
index 04a638f06..04a638f06 100644
--- a/base/deploy/src/scriptlets/pkimanifest.py
+++ b/base/deploy/src/engine/pkimanifest.py
diff --git a/base/deploy/src/scriptlets/pkimessages.py b/base/deploy/src/engine/pkimessages.py
index a6361dc8b..a6361dc8b 100644
--- a/base/deploy/src/scriptlets/pkimessages.py
+++ b/base/deploy/src/engine/pkimessages.py
diff --git a/base/deploy/src/scriptlets/pkiparser.py b/base/deploy/src/engine/pkiparser.py
index c4bf9b886..c4bf9b886 100644
--- a/base/deploy/src/scriptlets/pkiparser.py
+++ b/base/deploy/src/engine/pkiparser.py
diff --git a/base/deploy/src/scriptlets/pkiscriptlet.py b/base/deploy/src/engine/pkiscriptlet.py
index 767b3c609..767b3c609 100644
--- a/base/deploy/src/scriptlets/pkiscriptlet.py
+++ b/base/deploy/src/engine/pkiscriptlet.py