mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 11:54:47 +00:00
ipa[server,replica,client]: Remove unused variables and wrong doc strings
This commit is contained in:
@@ -31,11 +31,6 @@ from ansible.errors import AnsibleError
|
|||||||
from ansible.module_utils._text import to_native
|
from ansible.module_utils._text import to_native
|
||||||
from ansible.plugins.action import ActionBase
|
from ansible.plugins.action import ActionBase
|
||||||
|
|
||||||
try:
|
|
||||||
from __main__ import display
|
|
||||||
except ImportError:
|
|
||||||
from ansible.utils.display import Display
|
|
||||||
display = Display()
|
|
||||||
|
|
||||||
def run_cmd(args, stdin=None):
|
def run_cmd(args, stdin=None):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -88,26 +88,6 @@ EXAMPLES = '''
|
|||||||
ipaddress: 192.168.100.23
|
ipaddress: 192.168.100.23
|
||||||
random: True
|
random: True
|
||||||
register: result_ipaclient_get_otp
|
register: result_ipaclient_get_otp
|
||||||
|
|
||||||
# Add a new host, authenticate with a keytab stored on the controller node
|
|
||||||
- ipaclient_get_otp:
|
|
||||||
keytab: admin.keytab
|
|
||||||
fqdn: ipaclient.ipa.domain.com
|
|
||||||
|
|
||||||
# Remove a host, authenticate using principal/password
|
|
||||||
- ipaclient_get_otp:
|
|
||||||
principal: admin
|
|
||||||
password: MySecretPassword
|
|
||||||
fqdn: ipaclient.ipa.domain.com
|
|
||||||
state: absent
|
|
||||||
|
|
||||||
# Modify a host, add ssh public key:
|
|
||||||
- ipaclient_get_otp:
|
|
||||||
principal: admin
|
|
||||||
password: MySecretPassword
|
|
||||||
fqdn: ipaclient.ipa.domain.com
|
|
||||||
sshpubkey: ssh-rsa AAAA...
|
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ def main():
|
|||||||
ntp_servers=dict(required=False, type='list', default=None),
|
ntp_servers=dict(required=False, type='list', default=None),
|
||||||
ntp_pool=dict(required=False, default=None),
|
ntp_pool=dict(required=False, default=None),
|
||||||
no_ntp=dict(required=False, type='bool', default=False),
|
no_ntp=dict(required=False, type='bool', default=False),
|
||||||
#force_ntpd=dict(required=False, type='bool', default=False),
|
# force_ntpd=dict(required=False, type='bool', default=False),
|
||||||
on_master=dict(required=False, type='bool', default=False),
|
on_master=dict(required=False, type='bool', default=False),
|
||||||
### additional ###
|
### additional ###
|
||||||
servers=dict(required=False, type='list', default=None),
|
servers=dict(required=False, type='list', default=None),
|
||||||
@@ -109,7 +109,7 @@ def main():
|
|||||||
options.ntp_servers = module.params.get('ntp_servers')
|
options.ntp_servers = module.params.get('ntp_servers')
|
||||||
options.ntp_pool = module.params.get('ntp_pool')
|
options.ntp_pool = module.params.get('ntp_pool')
|
||||||
options.no_ntp = module.params.get('no_ntp')
|
options.no_ntp = module.params.get('no_ntp')
|
||||||
#options.force_ntpd = module.params.get('force_ntpd')
|
# options.force_ntpd = module.params.get('force_ntpd')
|
||||||
options.on_master = module.params.get('on_master')
|
options.on_master = module.params.get('on_master')
|
||||||
cli_server = module.params.get('servers')
|
cli_server = module.params.get('servers')
|
||||||
cli_domain = module.params.get('domain')
|
cli_domain = module.params.get('domain')
|
||||||
|
|||||||
@@ -451,7 +451,7 @@ def main():
|
|||||||
dnsok = False
|
dnsok = False
|
||||||
cli_domain = None
|
cli_domain = None
|
||||||
cli_server = None
|
cli_server = None
|
||||||
subject_base = None
|
# subject_base = None
|
||||||
cli_realm = None
|
cli_realm = None
|
||||||
cli_kdc = None
|
cli_kdc = None
|
||||||
client_domain = None
|
client_domain = None
|
||||||
@@ -467,7 +467,7 @@ def main():
|
|||||||
cli_domain_source = 'Unknown source'
|
cli_domain_source = 'Unknown source'
|
||||||
cli_server_source = 'Unknown source'
|
cli_server_source = 'Unknown source'
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.IPA_CLIENT_SYSRESTORE)
|
# fstore = sysrestore.FileStore(paths.IPA_CLIENT_SYSRESTORE)
|
||||||
|
|
||||||
if not os.getegid() == 0:
|
if not os.getegid() == 0:
|
||||||
raise ScriptError(
|
raise ScriptError(
|
||||||
@@ -824,7 +824,7 @@ def main():
|
|||||||
cli_basedn = ds.basedn
|
cli_basedn = ds.basedn
|
||||||
cli_basedn_source = ds.basedn_source
|
cli_basedn_source = ds.basedn_source
|
||||||
logger.debug("will use discovered basedn: %s", cli_basedn)
|
logger.debug("will use discovered basedn: %s", cli_basedn)
|
||||||
subject_base = DN(('O', cli_realm))
|
# subject_base = DN(('O', cli_realm))
|
||||||
|
|
||||||
logger.info("Client hostname: %s", hostname)
|
logger.info("Client hostname: %s", hostname)
|
||||||
logger.debug("Hostname source: %s", hostname_source)
|
logger.debug("Hostname source: %s", hostname_source)
|
||||||
@@ -877,8 +877,6 @@ def main():
|
|||||||
|
|
||||||
### client._install ###
|
### client._install ###
|
||||||
|
|
||||||
statestore = sysrestore.StateFile(paths.IPA_CLIENT_SYSRESTORE)
|
|
||||||
|
|
||||||
# May not happen in here at this time
|
# May not happen in here at this time
|
||||||
#if not options.on_master:
|
#if not options.on_master:
|
||||||
# # Try removing old principals from the keytab
|
# # Try removing old principals from the keytab
|
||||||
|
|||||||
@@ -100,10 +100,6 @@ ping_test_ok:
|
|||||||
type: bool
|
type: bool
|
||||||
'''
|
'''
|
||||||
|
|
||||||
class Object(object):
|
|
||||||
pass
|
|
||||||
options = Object()
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
|
|||||||
@@ -97,13 +97,9 @@ def main():
|
|||||||
|
|
||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALLER ==")
|
ansible_log.debug("== INSTALLER ==")
|
||||||
|
|
||||||
options = installer
|
options = installer
|
||||||
promote = installer.promote
|
|
||||||
|
|
||||||
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
||||||
constants.DEFAULT_CONFIG)
|
constants.DEFAULT_CONFIG)
|
||||||
|
|||||||
@@ -94,18 +94,6 @@ options:
|
|||||||
_ca_enabled:
|
_ca_enabled:
|
||||||
description:
|
description:
|
||||||
required: yes
|
required: yes
|
||||||
_kra_enabled:
|
|
||||||
description:
|
|
||||||
required: yes
|
|
||||||
_dirsrv_pkcs12_info:
|
|
||||||
description:
|
|
||||||
required: yes
|
|
||||||
_http_pkcs12_info:
|
|
||||||
description:
|
|
||||||
required: yes
|
|
||||||
_pkinit_pkcs12_info:
|
|
||||||
description:
|
|
||||||
required: yes
|
|
||||||
_top_dir:
|
_top_dir:
|
||||||
description:
|
description:
|
||||||
required: yes
|
required: yes
|
||||||
@@ -176,10 +164,6 @@ def main():
|
|||||||
ccache=dict(required=True),
|
ccache=dict(required=True),
|
||||||
installer_ccache=dict(required=True),
|
installer_ccache=dict(required=True),
|
||||||
_ca_enabled=dict(required=False, type='bool'),
|
_ca_enabled=dict(required=False, type='bool'),
|
||||||
_kra_enabled=dict(required=False, type='bool'),
|
|
||||||
_dirsrv_pkcs12_info = dict(required=False),
|
|
||||||
_http_pkcs12_info = dict(required=False),
|
|
||||||
_pkinit_pkcs12_info = dict(required=False),
|
|
||||||
_top_dir = dict(required=True),
|
_top_dir = dict(required=True),
|
||||||
_add_to_ipaservers = dict(required=True, type='bool'),
|
_add_to_ipaservers = dict(required=True, type='bool'),
|
||||||
_ca_subject=dict(required=True),
|
_ca_subject=dict(required=True),
|
||||||
@@ -235,11 +219,6 @@ def main():
|
|||||||
#os.environ['KRB5CCNAME'] = ansible_module.params.get('installer_ccache')
|
#os.environ['KRB5CCNAME'] = ansible_module.params.get('installer_ccache')
|
||||||
installer._ccache = ansible_module.params.get('installer_ccache')
|
installer._ccache = ansible_module.params.get('installer_ccache')
|
||||||
ca_enabled = ansible_module.params.get('_ca_enabled')
|
ca_enabled = ansible_module.params.get('_ca_enabled')
|
||||||
kra_enabled = ansible_module.params.get('_kra_enabled')
|
|
||||||
|
|
||||||
dirsrv_pkcs12_info = ansible_module.params.get('_dirsrv_pkcs12_info')
|
|
||||||
http_pkcs12_info = ansible_module.params.get('_http_pkcs12_info')
|
|
||||||
pkinit_pkcs12_info = ansible_module.params.get('_pkinit_pkcs12_info')
|
|
||||||
|
|
||||||
options.subject_base = ansible_module.params.get('subject_base')
|
options.subject_base = ansible_module.params.get('subject_base')
|
||||||
if options.subject_base is not None:
|
if options.subject_base is not None:
|
||||||
@@ -256,7 +235,6 @@ def main():
|
|||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
# prepare (install prepare, install checks) #
|
# prepare (install prepare, install checks) #
|
||||||
|
|
||||||
@@ -276,11 +254,8 @@ def main():
|
|||||||
remote_api = gen_remote_api(master_host_name, paths.ETC_IPA)
|
remote_api = gen_remote_api(master_host_name, paths.ETC_IPA)
|
||||||
installer._remote_api = remote_api
|
installer._remote_api = remote_api
|
||||||
|
|
||||||
conn = remote_api.Backend.ldap2
|
|
||||||
ccache = os.environ['KRB5CCNAME']
|
ccache = os.environ['KRB5CCNAME']
|
||||||
|
|
||||||
cafile = paths.IPA_CA_CRT
|
|
||||||
|
|
||||||
if promote:
|
if promote:
|
||||||
ansible_log.debug("-- CREATE_IPA_CONF --")
|
ansible_log.debug("-- CREATE_IPA_CONF --")
|
||||||
# Create the management framework config file. Do this irregardless
|
# Create the management framework config file. Do this irregardless
|
||||||
|
|||||||
@@ -70,12 +70,6 @@ options:
|
|||||||
_kra_host_name:
|
_kra_host_name:
|
||||||
description:
|
description:
|
||||||
required: yes
|
required: yes
|
||||||
_dirsrv_pkcs12_info:
|
|
||||||
description:
|
|
||||||
required: yes
|
|
||||||
_pkinit_pkcs12_info:
|
|
||||||
description:
|
|
||||||
required: yes
|
|
||||||
_top_dir:
|
_top_dir:
|
||||||
description:
|
description:
|
||||||
required: yes
|
required: yes
|
||||||
@@ -111,8 +105,6 @@ def main():
|
|||||||
_ca_file=dict(required=False),
|
_ca_file=dict(required=False),
|
||||||
_kra_enabled=dict(required=False, type='bool'),
|
_kra_enabled=dict(required=False, type='bool'),
|
||||||
_kra_host_name=dict(required=False),
|
_kra_host_name=dict(required=False),
|
||||||
_dirsrv_pkcs12_info = dict(required=False),
|
|
||||||
_pkinit_pkcs12_info = dict(required=False),
|
|
||||||
_top_dir = dict(required=True),
|
_top_dir = dict(required=True),
|
||||||
dirman_password=dict(required=True, no_log=True),
|
dirman_password=dict(required=True, no_log=True),
|
||||||
config_setup_ca=dict(required=True, type='bool'),
|
config_setup_ca=dict(required=True, type='bool'),
|
||||||
@@ -145,8 +137,6 @@ def main():
|
|||||||
ca_enabled = ansible_module.params.get('_ca_enabled')
|
ca_enabled = ansible_module.params.get('_ca_enabled')
|
||||||
kra_enabled = ansible_module.params.get('_kra_enabled')
|
kra_enabled = ansible_module.params.get('_kra_enabled')
|
||||||
kra_host_name = ansible_module.params.get('_kra_host_name')
|
kra_host_name = ansible_module.params.get('_kra_host_name')
|
||||||
dirsrv_pkcs12_info = ansible_module.params.get('_dirsrv_pkcs12_info')
|
|
||||||
pkinit_pkcs12_info = ansible_module.params.get('_pkinit_pkcs12_info')
|
|
||||||
options._top_dir = ansible_module.params.get('_top_dir')
|
options._top_dir = ansible_module.params.get('_top_dir')
|
||||||
dirman_password = ansible_module.params.get('dirman_password')
|
dirman_password = ansible_module.params.get('dirman_password')
|
||||||
config_setup_ca = ansible_module.params.get('config_setup_ca')
|
config_setup_ca = ansible_module.params.get('config_setup_ca')
|
||||||
@@ -154,9 +144,6 @@ def main():
|
|||||||
|
|
||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
options = installer
|
options = installer
|
||||||
@@ -177,7 +164,6 @@ def main():
|
|||||||
remote_api = gen_remote_api(config.master_host_name, paths.ETC_IPA)
|
remote_api = gen_remote_api(config.master_host_name, paths.ETC_IPA)
|
||||||
installer._remote_api = remote_api
|
installer._remote_api = remote_api
|
||||||
|
|
||||||
conn = remote_api.Backend.ldap2
|
|
||||||
ccache = os.environ['KRB5CCNAME']
|
ccache = os.environ['KRB5CCNAME']
|
||||||
|
|
||||||
# do the work #
|
# do the work #
|
||||||
|
|||||||
@@ -105,14 +105,10 @@ def main():
|
|||||||
|
|
||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
options = installer
|
options = installer
|
||||||
promote = installer.promote
|
promote = installer.promote
|
||||||
pkinit_pkcs12_info = installer._pkinit_pkcs12_info
|
|
||||||
|
|
||||||
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
||||||
constants.DEFAULT_CONFIG)
|
constants.DEFAULT_CONFIG)
|
||||||
@@ -122,7 +118,6 @@ def main():
|
|||||||
config.subject_base = options.subject_base
|
config.subject_base = options.subject_base
|
||||||
|
|
||||||
remote_api = gen_remote_api(master_host_name, paths.ETC_IPA)
|
remote_api = gen_remote_api(master_host_name, paths.ETC_IPA)
|
||||||
#installer._remote_api = remote_api
|
|
||||||
|
|
||||||
conn = remote_api.Backend.ldap2
|
conn = remote_api.Backend.ldap2
|
||||||
ccache = os.environ['KRB5CCNAME']
|
ccache = os.environ['KRB5CCNAME']
|
||||||
@@ -132,7 +127,6 @@ def main():
|
|||||||
api.Backend.ldap2.connect()
|
api.Backend.ldap2.connect()
|
||||||
conn.connect(ccache=ccache)
|
conn.connect(ccache=ccache)
|
||||||
|
|
||||||
cafile = paths.IPA_CA_CRT
|
|
||||||
with redirect_stdout(ansible_log):
|
with redirect_stdout(ansible_log):
|
||||||
ds = replica_ds_init_info(ansible_log,
|
ds = replica_ds_init_info(ansible_log,
|
||||||
config, options, ca_enabled,
|
config, options, ca_enabled,
|
||||||
|
|||||||
@@ -143,14 +143,10 @@ def main():
|
|||||||
|
|
||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
options = installer
|
options = installer
|
||||||
promote = installer.promote
|
promote = installer.promote
|
||||||
pkinit_pkcs12_info = installer._pkinit_pkcs12_info
|
|
||||||
|
|
||||||
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
||||||
constants.DEFAULT_CONFIG)
|
constants.DEFAULT_CONFIG)
|
||||||
|
|||||||
@@ -109,13 +109,8 @@ def main():
|
|||||||
|
|
||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
promote = installer.promote
|
|
||||||
|
|
||||||
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
||||||
constants.DEFAULT_CONFIG)
|
constants.DEFAULT_CONFIG)
|
||||||
api_bootstrap_finalize(env)
|
api_bootstrap_finalize(env)
|
||||||
@@ -124,7 +119,6 @@ def main():
|
|||||||
remote_api = gen_remote_api(config_master_host_name, paths.ETC_IPA)
|
remote_api = gen_remote_api(config_master_host_name, paths.ETC_IPA)
|
||||||
installer._remote_api = remote_api
|
installer._remote_api = remote_api
|
||||||
|
|
||||||
conn = remote_api.Backend.ldap2
|
|
||||||
ccache = os.environ['KRB5CCNAME']
|
ccache = os.environ['KRB5CCNAME']
|
||||||
|
|
||||||
api.Backend.ldap2.connect()
|
api.Backend.ldap2.connect()
|
||||||
|
|||||||
@@ -128,11 +128,6 @@ def main():
|
|||||||
server=dict(required=True),
|
server=dict(required=True),
|
||||||
ccache=dict(required=True),
|
ccache=dict(required=True),
|
||||||
installer_ccache=dict(required=True),
|
installer_ccache=dict(required=True),
|
||||||
_ca_enabled=dict(required=False, type='bool'),
|
|
||||||
_kra_enabled=dict(required=False, type='bool'),
|
|
||||||
_dirsrv_pkcs12_info = dict(required=False),
|
|
||||||
_http_pkcs12_info = dict(required=False),
|
|
||||||
_pkinit_pkcs12_info = dict(required=False),
|
|
||||||
_top_dir = dict(required=True),
|
_top_dir = dict(required=True),
|
||||||
_add_to_ipaservers = dict(required=True, type='bool'),
|
_add_to_ipaservers = dict(required=True, type='bool'),
|
||||||
_ca_subject=dict(required=True),
|
_ca_subject=dict(required=True),
|
||||||
@@ -186,11 +181,6 @@ def main():
|
|||||||
os.environ['KRB5CCNAME'] = ccache
|
os.environ['KRB5CCNAME'] = ccache
|
||||||
#os.environ['KRB5CCNAME'] = ansible_module.params.get('installer_ccache')
|
#os.environ['KRB5CCNAME'] = ansible_module.params.get('installer_ccache')
|
||||||
installer._ccache = ansible_module.params.get('installer_ccache')
|
installer._ccache = ansible_module.params.get('installer_ccache')
|
||||||
ca_enabled = ansible_module.params.get('_ca_enabled')
|
|
||||||
kra_enabled = ansible_module.params.get('_kra_enabled')
|
|
||||||
dirsrv_pkcs12_info = ansible_module.params.get('_dirsrv_pkcs12_info')
|
|
||||||
http_pkcs12_info = ansible_module.params.get('_http_pkcs12_info')
|
|
||||||
pkinit_pkcs12_info = ansible_module.params.get('_pkinit_pkcs12_info')
|
|
||||||
options.subject_base = ansible_module.params.get('subject_base')
|
options.subject_base = ansible_module.params.get('subject_base')
|
||||||
if options.subject_base is not None:
|
if options.subject_base is not None:
|
||||||
options.subject_base = DN(options.subject_base)
|
options.subject_base = DN(options.subject_base)
|
||||||
@@ -207,9 +197,6 @@ def main():
|
|||||||
|
|
||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALLER ==")
|
ansible_log.debug("== INSTALLER ==")
|
||||||
|
|
||||||
options = installer
|
options = installer
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ def main():
|
|||||||
ccache=dict(required=True),
|
ccache=dict(required=True),
|
||||||
_ca_enabled=dict(required=False, type='bool'),
|
_ca_enabled=dict(required=False, type='bool'),
|
||||||
_ca_file=dict(required=False),
|
_ca_file=dict(required=False),
|
||||||
_dirsrv_pkcs12_info = dict(required=False),
|
|
||||||
_pkinit_pkcs12_info = dict(required=False),
|
_pkinit_pkcs12_info = dict(required=False),
|
||||||
_top_dir = dict(required=True),
|
_top_dir = dict(required=True),
|
||||||
dirman_password=dict(required=True, no_log=True),
|
dirman_password=dict(required=True, no_log=True),
|
||||||
@@ -92,8 +91,6 @@ def main():
|
|||||||
os.environ['KRB5CCNAME'] = ccache
|
os.environ['KRB5CCNAME'] = ccache
|
||||||
#os.environ['KRB5CCNAME'] = ansible_module.params.get('installer_ccache')
|
#os.environ['KRB5CCNAME'] = ansible_module.params.get('installer_ccache')
|
||||||
#installer._ccache = ansible_module.params.get('installer_ccache')
|
#installer._ccache = ansible_module.params.get('installer_ccache')
|
||||||
ca_enabled = ansible_module.params.get('_ca_enabled')
|
|
||||||
dirsrv_pkcs12_info = ansible_module.params.get('_dirsrv_pkcs12_info')
|
|
||||||
options._pkinit_pkcs12_info = ansible_module.params.get('_pkinit_pkcs12_info')
|
options._pkinit_pkcs12_info = ansible_module.params.get('_pkinit_pkcs12_info')
|
||||||
options._top_dir = ansible_module.params.get('_top_dir')
|
options._top_dir = ansible_module.params.get('_top_dir')
|
||||||
dirman_password = ansible_module.params.get('dirman_password')
|
dirman_password = ansible_module.params.get('dirman_password')
|
||||||
@@ -101,13 +98,10 @@ def main():
|
|||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
options = installer
|
options = installer
|
||||||
promote = installer.promote
|
|
||||||
pkinit_pkcs12_info = installer._pkinit_pkcs12_info
|
|
||||||
|
|
||||||
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
||||||
constants.DEFAULT_CONFIG)
|
constants.DEFAULT_CONFIG)
|
||||||
|
|||||||
@@ -67,16 +67,13 @@ def main():
|
|||||||
|
|
||||||
module._ansible_debug = True
|
module._ansible_debug = True
|
||||||
|
|
||||||
options.master_password = module.params.get('master_password')
|
master_password = module.params.get('master_password')
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
if not master_password:
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
master_password = ipa_generate_password()
|
||||||
|
|
||||||
if not options.master_password:
|
|
||||||
options.master_password = ipa_generate_password()
|
|
||||||
|
|
||||||
module.exit_json(changed=True,
|
module.exit_json(changed=True,
|
||||||
password=options.master_password)
|
password=master_password)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|||||||
@@ -106,14 +106,8 @@ def main():
|
|||||||
|
|
||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
promote = installer.promote
|
|
||||||
|
|
||||||
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
||||||
constants.DEFAULT_CONFIG)
|
constants.DEFAULT_CONFIG)
|
||||||
api_bootstrap_finalize(env)
|
api_bootstrap_finalize(env)
|
||||||
@@ -125,7 +119,6 @@ def main():
|
|||||||
remote_api = gen_remote_api(config.master_host_name, paths.ETC_IPA)
|
remote_api = gen_remote_api(config.master_host_name, paths.ETC_IPA)
|
||||||
installer._remote_api = remote_api
|
installer._remote_api = remote_api
|
||||||
|
|
||||||
conn = remote_api.Backend.ldap2
|
|
||||||
ccache = os.environ['KRB5CCNAME']
|
ccache = os.environ['KRB5CCNAME']
|
||||||
|
|
||||||
with redirect_stdout(ansible_log):
|
with redirect_stdout(ansible_log):
|
||||||
|
|||||||
@@ -106,13 +106,8 @@ def main():
|
|||||||
|
|
||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
promote = installer.promote
|
|
||||||
|
|
||||||
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
||||||
constants.DEFAULT_CONFIG)
|
constants.DEFAULT_CONFIG)
|
||||||
api_bootstrap_finalize(env)
|
api_bootstrap_finalize(env)
|
||||||
@@ -124,7 +119,6 @@ def main():
|
|||||||
remote_api = gen_remote_api(config.master_host_name, paths.ETC_IPA)
|
remote_api = gen_remote_api(config.master_host_name, paths.ETC_IPA)
|
||||||
installer._remote_api = remote_api
|
installer._remote_api = remote_api
|
||||||
|
|
||||||
conn = remote_api.Backend.ldap2
|
|
||||||
ccache = os.environ['KRB5CCNAME']
|
ccache = os.environ['KRB5CCNAME']
|
||||||
|
|
||||||
with redirect_stdout(ansible_log):
|
with redirect_stdout(ansible_log):
|
||||||
|
|||||||
@@ -63,10 +63,7 @@ def main():
|
|||||||
#### additional ###
|
#### additional ###
|
||||||
config_master_host_name=dict(required=True),
|
config_master_host_name=dict(required=True),
|
||||||
ccache=dict(required=True),
|
ccache=dict(required=True),
|
||||||
_ca_enabled=dict(required=False, type='bool'),
|
|
||||||
_ca_file=dict(required=False),
|
_ca_file=dict(required=False),
|
||||||
_dirsrv_pkcs12_info = dict(required=False),
|
|
||||||
#_pkinit_pkcs12_info = dict(required=False),
|
|
||||||
_top_dir = dict(required=True),
|
_top_dir = dict(required=True),
|
||||||
dirman_password=dict(required=True, no_log=True),
|
dirman_password=dict(required=True, no_log=True),
|
||||||
),
|
),
|
||||||
@@ -91,24 +88,16 @@ def main():
|
|||||||
master_host_name = ansible_module.params.get('config_master_host_name')
|
master_host_name = ansible_module.params.get('config_master_host_name')
|
||||||
ccache = ansible_module.params.get('ccache')
|
ccache = ansible_module.params.get('ccache')
|
||||||
os.environ['KRB5CCNAME'] = ccache
|
os.environ['KRB5CCNAME'] = ccache
|
||||||
#os.environ['KRB5CCNAME'] = ansible_module.params.get('installer_ccache')
|
|
||||||
#installer._ccache = ansible_module.params.get('installer_ccache')
|
|
||||||
ca_enabled = ansible_module.params.get('_ca_enabled')
|
|
||||||
dirsrv_pkcs12_info = ansible_module.params.get('_dirsrv_pkcs12_info')
|
|
||||||
#pkinit_pkcs12_info = ansible_module.params.get('_pkinit_pkcs12_info')
|
|
||||||
options._top_dir = ansible_module.params.get('_top_dir')
|
options._top_dir = ansible_module.params.get('_top_dir')
|
||||||
dirman_password = ansible_module.params.get('dirman_password')
|
dirman_password = ansible_module.params.get('dirman_password')
|
||||||
|
|
||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
options = installer
|
options = installer
|
||||||
promote = installer.promote
|
|
||||||
#pkinit_pkcs12_info = installer._pkinit_pkcs12_info
|
|
||||||
|
|
||||||
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
||||||
constants.DEFAULT_CONFIG)
|
constants.DEFAULT_CONFIG)
|
||||||
@@ -117,7 +106,6 @@ def main():
|
|||||||
config.dirman_password = dirman_password
|
config.dirman_password = dirman_password
|
||||||
|
|
||||||
remote_api = gen_remote_api(master_host_name, paths.ETC_IPA)
|
remote_api = gen_remote_api(master_host_name, paths.ETC_IPA)
|
||||||
#installer._remote_api = remote_api
|
|
||||||
|
|
||||||
conn = remote_api.Backend.ldap2
|
conn = remote_api.Backend.ldap2
|
||||||
ccache = os.environ['KRB5CCNAME']
|
ccache = os.environ['KRB5CCNAME']
|
||||||
|
|||||||
@@ -119,12 +119,9 @@ def main():
|
|||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
promote = installer.promote
|
|
||||||
|
|
||||||
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
||||||
constants.DEFAULT_CONFIG)
|
constants.DEFAULT_CONFIG)
|
||||||
api_bootstrap_finalize(env)
|
api_bootstrap_finalize(env)
|
||||||
@@ -135,7 +132,6 @@ def main():
|
|||||||
remote_api = gen_remote_api(config.master_host_name, paths.ETC_IPA)
|
remote_api = gen_remote_api(config.master_host_name, paths.ETC_IPA)
|
||||||
installer._remote_api = remote_api
|
installer._remote_api = remote_api
|
||||||
|
|
||||||
conn = remote_api.Backend.ldap2
|
|
||||||
ccache = os.environ['KRB5CCNAME']
|
ccache = os.environ['KRB5CCNAME']
|
||||||
|
|
||||||
api.Backend.ldap2.connect()
|
api.Backend.ldap2.connect()
|
||||||
|
|||||||
@@ -46,9 +46,6 @@ options:
|
|||||||
no_pkinit:
|
no_pkinit:
|
||||||
description:
|
description:
|
||||||
required: yes
|
required: yes
|
||||||
no_ui_redirect:
|
|
||||||
description:
|
|
||||||
required: yes
|
|
||||||
subject_base:
|
subject_base:
|
||||||
description:
|
description:
|
||||||
required: yes
|
required: yes
|
||||||
@@ -117,7 +114,6 @@ def main():
|
|||||||
setup_ca=dict(required=False, type='bool'),
|
setup_ca=dict(required=False, type='bool'),
|
||||||
setup_kra=dict(required=False, type='bool'),
|
setup_kra=dict(required=False, type='bool'),
|
||||||
no_pkinit=dict(required=False, type='bool'),
|
no_pkinit=dict(required=False, type='bool'),
|
||||||
no_ui_redirect=dict(required=False, type='bool'),
|
|
||||||
#### certificate system ###
|
#### certificate system ###
|
||||||
subject_base=dict(required=True),
|
subject_base=dict(required=True),
|
||||||
#### additional ###
|
#### additional ###
|
||||||
@@ -180,14 +176,9 @@ def main():
|
|||||||
|
|
||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
options = installer
|
options = installer
|
||||||
promote = installer.promote
|
|
||||||
pkinit_pkcs12_info = installer._pkinit_pkcs12_info
|
|
||||||
|
|
||||||
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
||||||
constants.DEFAULT_CONFIG)
|
constants.DEFAULT_CONFIG)
|
||||||
@@ -206,7 +197,6 @@ def main():
|
|||||||
remote_api = gen_remote_api(config.master_host_name, paths.ETC_IPA)
|
remote_api = gen_remote_api(config.master_host_name, paths.ETC_IPA)
|
||||||
options._remote_api = remote_api
|
options._remote_api = remote_api
|
||||||
|
|
||||||
conn = remote_api.Backend.ldap2
|
|
||||||
ccache = os.environ['KRB5CCNAME']
|
ccache = os.environ['KRB5CCNAME']
|
||||||
|
|
||||||
# There is a api.Backend.ldap2.connect call somewhere in ca, ds, dns or
|
# There is a api.Backend.ldap2.connect call somewhere in ca, ds, dns or
|
||||||
|
|||||||
@@ -62,8 +62,6 @@ def main():
|
|||||||
|
|
||||||
# get parameters #
|
# get parameters #
|
||||||
|
|
||||||
options = installer
|
|
||||||
|
|
||||||
with redirect_stdout(ansible_log):
|
with redirect_stdout(ansible_log):
|
||||||
ansible_log.debug("-- CONFIGURE_CERTMONGER --")
|
ansible_log.debug("-- CONFIGURE_CERTMONGER --")
|
||||||
|
|
||||||
|
|||||||
@@ -106,7 +106,6 @@ def main():
|
|||||||
_ca_file=dict(required=False),
|
_ca_file=dict(required=False),
|
||||||
_kra_enabled=dict(required=False, type='bool'),
|
_kra_enabled=dict(required=False, type='bool'),
|
||||||
_kra_host_name=dict(required=False),
|
_kra_host_name=dict(required=False),
|
||||||
_dirsrv_pkcs12_info = dict(required=False),
|
|
||||||
_pkinit_pkcs12_info = dict(required=False),
|
_pkinit_pkcs12_info = dict(required=False),
|
||||||
_top_dir = dict(required=True),
|
_top_dir = dict(required=True),
|
||||||
dirman_password=dict(required=True, no_log=True),
|
dirman_password=dict(required=True, no_log=True),
|
||||||
@@ -137,21 +136,16 @@ def main():
|
|||||||
ca_enabled = ansible_module.params.get('_ca_enabled')
|
ca_enabled = ansible_module.params.get('_ca_enabled')
|
||||||
kra_enabled = ansible_module.params.get('_kra_enabled')
|
kra_enabled = ansible_module.params.get('_kra_enabled')
|
||||||
kra_host_name = ansible_module.params.get('_kra_host_name')
|
kra_host_name = ansible_module.params.get('_kra_host_name')
|
||||||
dirsrv_pkcs12_info = ansible_module.params.get('_dirsrv_pkcs12_info')
|
|
||||||
options._pkinit_pkcs12_info = ansible_module.params.get('_pkinit_pkcs12_info')
|
options._pkinit_pkcs12_info = ansible_module.params.get('_pkinit_pkcs12_info')
|
||||||
options._top_dir = ansible_module.params.get('_top_dir')
|
options._top_dir = ansible_module.params.get('_top_dir')
|
||||||
dirman_password = ansible_module.params.get('dirman_password')
|
dirman_password = ansible_module.params.get('dirman_password')
|
||||||
|
|
||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
options = installer
|
options = installer
|
||||||
promote = installer.promote
|
promote = installer.promote
|
||||||
pkinit_pkcs12_info = installer._pkinit_pkcs12_info
|
|
||||||
|
|
||||||
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
||||||
constants.DEFAULT_CONFIG)
|
constants.DEFAULT_CONFIG)
|
||||||
@@ -163,7 +157,6 @@ def main():
|
|||||||
config.kra_host_name = kra_host_name
|
config.kra_host_name = kra_host_name
|
||||||
|
|
||||||
remote_api = gen_remote_api(master_host_name, paths.ETC_IPA)
|
remote_api = gen_remote_api(master_host_name, paths.ETC_IPA)
|
||||||
#installer._remote_api = remote_api
|
|
||||||
|
|
||||||
conn = remote_api.Backend.ldap2
|
conn = remote_api.Backend.ldap2
|
||||||
ccache = os.environ['KRB5CCNAME']
|
ccache = os.environ['KRB5CCNAME']
|
||||||
|
|||||||
@@ -122,13 +122,8 @@ def main():
|
|||||||
|
|
||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
promote = installer.promote
|
|
||||||
|
|
||||||
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
||||||
constants.DEFAULT_CONFIG)
|
constants.DEFAULT_CONFIG)
|
||||||
api_bootstrap_finalize(env)
|
api_bootstrap_finalize(env)
|
||||||
@@ -139,7 +134,6 @@ def main():
|
|||||||
remote_api = gen_remote_api(config.master_host_name, paths.ETC_IPA)
|
remote_api = gen_remote_api(config.master_host_name, paths.ETC_IPA)
|
||||||
installer._remote_api = remote_api
|
installer._remote_api = remote_api
|
||||||
|
|
||||||
conn = remote_api.Backend.ldap2
|
|
||||||
ccache = os.environ['KRB5CCNAME']
|
ccache = os.environ['KRB5CCNAME']
|
||||||
|
|
||||||
# There is a api.Backend.ldap2.connect call somewhere in ca, ds, dns or
|
# There is a api.Backend.ldap2.connect call somewhere in ca, ds, dns or
|
||||||
|
|||||||
@@ -94,18 +94,9 @@ options:
|
|||||||
_ca_enabled:
|
_ca_enabled:
|
||||||
description:
|
description:
|
||||||
required: yes
|
required: yes
|
||||||
_kra_enabled:
|
|
||||||
description:
|
|
||||||
required: yes
|
|
||||||
_dirsrv_pkcs12_info:
|
_dirsrv_pkcs12_info:
|
||||||
description:
|
description:
|
||||||
required: yes
|
required: yes
|
||||||
_http_pkcs12_info:
|
|
||||||
description:
|
|
||||||
required: yes
|
|
||||||
_pkinit_pkcs12_info:
|
|
||||||
description:
|
|
||||||
required: yes
|
|
||||||
_top_dir:
|
_top_dir:
|
||||||
description:
|
description:
|
||||||
required: yes
|
required: yes
|
||||||
@@ -176,10 +167,7 @@ def main():
|
|||||||
ccache=dict(required=True),
|
ccache=dict(required=True),
|
||||||
installer_ccache=dict(required=True),
|
installer_ccache=dict(required=True),
|
||||||
_ca_enabled=dict(required=False, type='bool'),
|
_ca_enabled=dict(required=False, type='bool'),
|
||||||
_kra_enabled=dict(required=False, type='bool'),
|
|
||||||
_dirsrv_pkcs12_info = dict(required=False),
|
_dirsrv_pkcs12_info = dict(required=False),
|
||||||
_http_pkcs12_info = dict(required=False),
|
|
||||||
_pkinit_pkcs12_info = dict(required=False),
|
|
||||||
_top_dir = dict(required=True),
|
_top_dir = dict(required=True),
|
||||||
_add_to_ipaservers = dict(required=True, type='bool'),
|
_add_to_ipaservers = dict(required=True, type='bool'),
|
||||||
_ca_subject=dict(required=True),
|
_ca_subject=dict(required=True),
|
||||||
@@ -238,11 +226,8 @@ def main():
|
|||||||
#os.environ['KRB5CCNAME'] = ansible_module.params.get('installer_ccache')
|
#os.environ['KRB5CCNAME'] = ansible_module.params.get('installer_ccache')
|
||||||
installer._ccache = ansible_module.params.get('installer_ccache')
|
installer._ccache = ansible_module.params.get('installer_ccache')
|
||||||
ca_enabled = ansible_module.params.get('_ca_enabled')
|
ca_enabled = ansible_module.params.get('_ca_enabled')
|
||||||
kra_enabled = ansible_module.params.get('_kra_enabled')
|
|
||||||
|
|
||||||
dirsrv_pkcs12_info = ansible_module.params.get('_dirsrv_pkcs12_info')
|
dirsrv_pkcs12_info = ansible_module.params.get('_dirsrv_pkcs12_info')
|
||||||
http_pkcs12_info = ansible_module.params.get('_http_pkcs12_info')
|
|
||||||
pkinit_pkcs12_info = ansible_module.params.get('_pkinit_pkcs12_info')
|
|
||||||
|
|
||||||
options.subject_base = ansible_module.params.get('subject_base')
|
options.subject_base = ansible_module.params.get('subject_base')
|
||||||
if options.subject_base is not None:
|
if options.subject_base is not None:
|
||||||
@@ -263,7 +248,6 @@ def main():
|
|||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
|
|||||||
@@ -137,11 +137,9 @@ def main():
|
|||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
options = installer
|
|
||||||
promote = installer.promote
|
promote = installer.promote
|
||||||
|
|
||||||
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
||||||
|
|||||||
@@ -116,9 +116,6 @@ def main():
|
|||||||
_ca_enabled=dict(required=False, type='bool'),
|
_ca_enabled=dict(required=False, type='bool'),
|
||||||
_kra_enabled=dict(required=False, type='bool'),
|
_kra_enabled=dict(required=False, type='bool'),
|
||||||
_kra_host_name=dict(required=False),
|
_kra_host_name=dict(required=False),
|
||||||
_dirsrv_pkcs12_info = dict(required=False),
|
|
||||||
_http_pkcs12_info = dict(required=False),
|
|
||||||
_pkinit_pkcs12_info = dict(required=False),
|
|
||||||
_top_dir = dict(required=True),
|
_top_dir = dict(required=True),
|
||||||
_add_to_ipaservers = dict(required=True, type='bool'),
|
_add_to_ipaservers = dict(required=True, type='bool'),
|
||||||
_ca_subject=dict(required=True),
|
_ca_subject=dict(required=True),
|
||||||
@@ -179,10 +176,6 @@ def main():
|
|||||||
kra_enabled = ansible_module.params.get('_kra_enabled')
|
kra_enabled = ansible_module.params.get('_kra_enabled')
|
||||||
kra_host_name = ansible_module.params.get('_kra_host_name')
|
kra_host_name = ansible_module.params.get('_kra_host_name')
|
||||||
|
|
||||||
dirsrv_pkcs12_info = ansible_module.params.get('_dirsrv_pkcs12_info')
|
|
||||||
http_pkcs12_info = ansible_module.params.get('_http_pkcs12_info')
|
|
||||||
pkinit_pkcs12_info = ansible_module.params.get('_pkinit_pkcs12_info')
|
|
||||||
|
|
||||||
options.subject_base = ansible_module.params.get('subject_base')
|
options.subject_base = ansible_module.params.get('subject_base')
|
||||||
if options.subject_base is not None:
|
if options.subject_base is not None:
|
||||||
options.subject_base = DN(options.subject_base)
|
options.subject_base = DN(options.subject_base)
|
||||||
@@ -194,13 +187,9 @@ def main():
|
|||||||
|
|
||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
options = installer
|
options = installer
|
||||||
promote = installer.promote
|
|
||||||
|
|
||||||
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
||||||
constants.DEFAULT_CONFIG)
|
constants.DEFAULT_CONFIG)
|
||||||
@@ -214,7 +203,6 @@ def main():
|
|||||||
remote_api = gen_remote_api(master_host_name, paths.ETC_IPA)
|
remote_api = gen_remote_api(master_host_name, paths.ETC_IPA)
|
||||||
installer._remote_api = remote_api
|
installer._remote_api = remote_api
|
||||||
|
|
||||||
conn = remote_api.Backend.ldap2
|
|
||||||
ccache = os.environ['KRB5CCNAME']
|
ccache = os.environ['KRB5CCNAME']
|
||||||
|
|
||||||
with redirect_stdout(ansible_log):
|
with redirect_stdout(ansible_log):
|
||||||
|
|||||||
@@ -117,7 +117,6 @@ def main():
|
|||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
@@ -132,10 +131,6 @@ def main():
|
|||||||
config.master_host_name = config_master_host_name
|
config.master_host_name = config_master_host_name
|
||||||
config.subject_base = options.subject_base
|
config.subject_base = options.subject_base
|
||||||
|
|
||||||
remote_api = gen_remote_api(config.master_host_name, paths.ETC_IPA)
|
|
||||||
#installer._remote_api = remote_api
|
|
||||||
|
|
||||||
conn = remote_api.Backend.ldap2
|
|
||||||
ccache = os.environ['KRB5CCNAME']
|
ccache = os.environ['KRB5CCNAME']
|
||||||
|
|
||||||
# There is a api.Backend.ldap2.connect call somewhere in ca, ds, dns or
|
# There is a api.Backend.ldap2.connect call somewhere in ca, ds, dns or
|
||||||
|
|||||||
@@ -58,9 +58,6 @@ options:
|
|||||||
ccache:
|
ccache:
|
||||||
description:
|
description:
|
||||||
required: yes
|
required: yes
|
||||||
_ca_enabled:
|
|
||||||
description:
|
|
||||||
required: yes
|
|
||||||
_ca_file:
|
_ca_file:
|
||||||
description:
|
description:
|
||||||
required: yes
|
required: yes
|
||||||
@@ -96,7 +93,6 @@ def main():
|
|||||||
#### additional ###
|
#### additional ###
|
||||||
config_master_host_name=dict(required=True),
|
config_master_host_name=dict(required=True),
|
||||||
ccache=dict(required=True),
|
ccache=dict(required=True),
|
||||||
_ca_enabled=dict(required=False, type='bool'),
|
|
||||||
_ca_file=dict(required=False),
|
_ca_file=dict(required=False),
|
||||||
_top_dir = dict(required=True),
|
_top_dir = dict(required=True),
|
||||||
dirman_password=dict(required=True, no_log=True),
|
dirman_password=dict(required=True, no_log=True),
|
||||||
@@ -123,19 +119,14 @@ def main():
|
|||||||
os.environ['KRB5CCNAME'] = ccache
|
os.environ['KRB5CCNAME'] = ccache
|
||||||
#os.environ['KRB5CCNAME'] = ansible_module.params.get('installer_ccache')
|
#os.environ['KRB5CCNAME'] = ansible_module.params.get('installer_ccache')
|
||||||
#installer._ccache = ansible_module.params.get('installer_ccache')
|
#installer._ccache = ansible_module.params.get('installer_ccache')
|
||||||
ca_enabled = ansible_module.params.get('_ca_enabled')
|
|
||||||
options._top_dir = ansible_module.params.get('_top_dir')
|
options._top_dir = ansible_module.params.get('_top_dir')
|
||||||
dirman_password = ansible_module.params.get('dirman_password')
|
dirman_password = ansible_module.params.get('dirman_password')
|
||||||
|
|
||||||
# init #
|
# init #
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
ansible_log.debug("== INSTALL ==")
|
ansible_log.debug("== INSTALL ==")
|
||||||
|
|
||||||
options = installer
|
options = installer
|
||||||
promote = installer.promote
|
|
||||||
|
|
||||||
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
env = gen_env_boostrap_finalize_core(paths.ETC_IPA,
|
||||||
constants.DEFAULT_CONFIG)
|
constants.DEFAULT_CONFIG)
|
||||||
@@ -144,7 +135,6 @@ def main():
|
|||||||
config.dirman_password = dirman_password
|
config.dirman_password = dirman_password
|
||||||
|
|
||||||
remote_api = gen_remote_api(master_host_name, paths.ETC_IPA)
|
remote_api = gen_remote_api(master_host_name, paths.ETC_IPA)
|
||||||
#installer._remote_api = remote_api
|
|
||||||
|
|
||||||
conn = remote_api.Backend.ldap2
|
conn = remote_api.Backend.ldap2
|
||||||
ccache = os.environ['KRB5CCNAME']
|
ccache = os.environ['KRB5CCNAME']
|
||||||
@@ -154,7 +144,6 @@ def main():
|
|||||||
api.Backend.ldap2.connect()
|
api.Backend.ldap2.connect()
|
||||||
conn.connect(ccache=ccache)
|
conn.connect(ccache=ccache)
|
||||||
|
|
||||||
cafile = paths.IPA_CA_CRT
|
|
||||||
with redirect_stdout(ansible_log):
|
with redirect_stdout(ansible_log):
|
||||||
ansible_log.debug("-- INSTALL_OTPD --")
|
ansible_log.debug("-- INSTALL_OTPD --")
|
||||||
|
|
||||||
|
|||||||
@@ -222,11 +222,6 @@
|
|||||||
server: "{{ result_ipareplica_test.server }}"
|
server: "{{ result_ipareplica_test.server }}"
|
||||||
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
||||||
installer_ccache: "{{ result_ipareplica_prepare.installer_ccache }}"
|
installer_ccache: "{{ result_ipareplica_prepare.installer_ccache }}"
|
||||||
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
|
||||||
_kra_enabled: "{{ result_ipareplica_prepare._kra_enabled }}"
|
|
||||||
_dirsrv_pkcs12_info: "{{ result_ipareplica_prepare._dirsrv_pkcs12_info }}"
|
|
||||||
_http_pkcs12_info: "{{ result_ipareplica_prepare._http_pkcs12_info }}"
|
|
||||||
_pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info }}"
|
|
||||||
subject_base: "{{ result_ipareplica_prepare.subject_base }}"
|
subject_base: "{{ result_ipareplica_prepare.subject_base }}"
|
||||||
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
||||||
_add_to_ipaservers: "{{ result_ipareplica_prepare._add_to_ipaservers }}"
|
_add_to_ipaservers: "{{ result_ipareplica_prepare._add_to_ipaservers }}"
|
||||||
@@ -270,10 +265,7 @@
|
|||||||
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
||||||
installer_ccache: "{{ result_ipareplica_prepare.installer_ccache }}"
|
installer_ccache: "{{ result_ipareplica_prepare.installer_ccache }}"
|
||||||
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
||||||
_kra_enabled: "{{ result_ipareplica_prepare._kra_enabled }}"
|
|
||||||
_dirsrv_pkcs12_info: "{{ result_ipareplica_prepare._dirsrv_pkcs12_info }}"
|
_dirsrv_pkcs12_info: "{{ result_ipareplica_prepare._dirsrv_pkcs12_info }}"
|
||||||
_http_pkcs12_info: "{{ result_ipareplica_prepare._http_pkcs12_info }}"
|
|
||||||
_pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info }}"
|
|
||||||
subject_base: "{{ result_ipareplica_prepare.subject_base }}"
|
subject_base: "{{ result_ipareplica_prepare.subject_base }}"
|
||||||
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
||||||
_add_to_ipaservers: "{{ result_ipareplica_prepare._add_to_ipaservers }}"
|
_add_to_ipaservers: "{{ result_ipareplica_prepare._add_to_ipaservers }}"
|
||||||
@@ -318,10 +310,6 @@
|
|||||||
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
||||||
installer_ccache: "{{ result_ipareplica_prepare.installer_ccache }}"
|
installer_ccache: "{{ result_ipareplica_prepare.installer_ccache }}"
|
||||||
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
||||||
_kra_enabled: "{{ result_ipareplica_prepare._kra_enabled }}"
|
|
||||||
_dirsrv_pkcs12_info: "{{ result_ipareplica_prepare._dirsrv_pkcs12_info }}"
|
|
||||||
_http_pkcs12_info: "{{ result_ipareplica_prepare._http_pkcs12_info }}"
|
|
||||||
_pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info }}"
|
|
||||||
subject_base: "{{ result_ipareplica_prepare.subject_base }}"
|
subject_base: "{{ result_ipareplica_prepare.subject_base }}"
|
||||||
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
||||||
_add_to_ipaservers: "{{ result_ipareplica_prepare._add_to_ipaservers }}"
|
_add_to_ipaservers: "{{ result_ipareplica_prepare._add_to_ipaservers }}"
|
||||||
@@ -378,10 +366,6 @@
|
|||||||
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
||||||
installer_ccache: "{{ result_ipareplica_prepare.installer_ccache }}"
|
installer_ccache: "{{ result_ipareplica_prepare.installer_ccache }}"
|
||||||
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
||||||
_kra_enabled: "{{ result_ipareplica_prepare._kra_enabled }}"
|
|
||||||
_dirsrv_pkcs12_info: "{{ result_ipareplica_prepare._dirsrv_pkcs12_info }}"
|
|
||||||
_http_pkcs12_info: "{{ result_ipareplica_prepare._http_pkcs12_info }}"
|
|
||||||
_pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info }}"
|
|
||||||
subject_base: "{{ result_ipareplica_prepare.subject_base }}"
|
subject_base: "{{ result_ipareplica_prepare.subject_base }}"
|
||||||
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
||||||
_add_to_ipaservers: "{{ result_ipareplica_prepare._add_to_ipaservers }}"
|
_add_to_ipaservers: "{{ result_ipareplica_prepare._add_to_ipaservers }}"
|
||||||
@@ -464,10 +448,6 @@
|
|||||||
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
||||||
installer_ccache: "{{ result_ipareplica_prepare.installer_ccache }}"
|
installer_ccache: "{{ result_ipareplica_prepare.installer_ccache }}"
|
||||||
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
||||||
_kra_enabled: "{{ result_ipareplica_prepare._kra_enabled }}"
|
|
||||||
_dirsrv_pkcs12_info: "{{ result_ipareplica_prepare._dirsrv_pkcs12_info }}"
|
|
||||||
_http_pkcs12_info: "{{ result_ipareplica_prepare._http_pkcs12_info }}"
|
|
||||||
_pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info }}"
|
|
||||||
subject_base: "{{ result_ipareplica_prepare.subject_base }}"
|
subject_base: "{{ result_ipareplica_prepare.subject_base }}"
|
||||||
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
||||||
_add_to_ipaservers: "{{ result_ipareplica_prepare._add_to_ipaservers }}"
|
_add_to_ipaservers: "{{ result_ipareplica_prepare._add_to_ipaservers }}"
|
||||||
@@ -489,7 +469,6 @@
|
|||||||
config_master_host_name:
|
config_master_host_name:
|
||||||
"{{ result_ipareplica_install_ca_certs.config_master_host_name }}"
|
"{{ result_ipareplica_install_ca_certs.config_master_host_name }}"
|
||||||
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
||||||
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
|
||||||
_ca_file: "{{ result_ipareplica_prepare._ca_file }}"
|
_ca_file: "{{ result_ipareplica_prepare._ca_file }}"
|
||||||
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
||||||
dirman_password: "{{ ipareplica_dirman_password }}"
|
dirman_password: "{{ ipareplica_dirman_password }}"
|
||||||
@@ -521,7 +500,6 @@
|
|||||||
setup_ca: "{{ ipareplica_setup_ca }}"
|
setup_ca: "{{ ipareplica_setup_ca }}"
|
||||||
setup_kra: "{{ result_ipareplica_test.setup_kra }}"
|
setup_kra: "{{ result_ipareplica_test.setup_kra }}"
|
||||||
no_pkinit: "{{ ipareplica_no_pkinit }}"
|
no_pkinit: "{{ ipareplica_no_pkinit }}"
|
||||||
no_ui_redirect: "{{ ipareplica_no_ui_redirect }}"
|
|
||||||
### certificate system ###
|
### certificate system ###
|
||||||
subject_base: "{{ result_ipareplica_prepare.subject_base }}"
|
subject_base: "{{ result_ipareplica_prepare.subject_base }}"
|
||||||
### additional ###
|
### additional ###
|
||||||
@@ -549,7 +527,6 @@
|
|||||||
setup_ca: "{{ ipareplica_setup_ca }}"
|
setup_ca: "{{ ipareplica_setup_ca }}"
|
||||||
setup_kra: "{{ result_ipareplica_test.setup_kra }}"
|
setup_kra: "{{ result_ipareplica_test.setup_kra }}"
|
||||||
no_pkinit: "{{ ipareplica_no_pkinit }}"
|
no_pkinit: "{{ ipareplica_no_pkinit }}"
|
||||||
# no_ui_redirect: "{{ ipareplica_no_ui_redirect }}"
|
|
||||||
### certificate system ###
|
### certificate system ###
|
||||||
subject_base: "{{ result_ipareplica_prepare.subject_base }}"
|
subject_base: "{{ result_ipareplica_prepare.subject_base }}"
|
||||||
### additional ###
|
### additional ###
|
||||||
@@ -614,9 +591,6 @@
|
|||||||
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
||||||
_kra_enabled: "{{ result_ipareplica_prepare._kra_enabled }}"
|
_kra_enabled: "{{ result_ipareplica_prepare._kra_enabled }}"
|
||||||
_kra_host_name: "{{ result_ipareplica_prepare.config_kra_host_name }}"
|
_kra_host_name: "{{ result_ipareplica_prepare.config_kra_host_name }}"
|
||||||
_dirsrv_pkcs12_info: "{{ result_ipareplica_prepare._dirsrv_pkcs12_info }}"
|
|
||||||
_http_pkcs12_info: "{{ result_ipareplica_prepare._http_pkcs12_info }}"
|
|
||||||
_pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info }}"
|
|
||||||
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
||||||
_add_to_ipaservers: "{{ result_ipareplica_prepare._add_to_ipaservers }}"
|
_add_to_ipaservers: "{{ result_ipareplica_prepare._add_to_ipaservers }}"
|
||||||
_ca_subject: "{{ result_ipareplica_prepare._ca_subject }}"
|
_ca_subject: "{{ result_ipareplica_prepare._ca_subject }}"
|
||||||
@@ -636,9 +610,7 @@
|
|||||||
config_master_host_name:
|
config_master_host_name:
|
||||||
"{{ result_ipareplica_install_ca_certs.config_master_host_name }}"
|
"{{ result_ipareplica_install_ca_certs.config_master_host_name }}"
|
||||||
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
ccache: "{{ result_ipareplica_prepare.ccache }}"
|
||||||
_ca_enabled: "{{ result_ipareplica_prepare._ca_enabled }}"
|
|
||||||
_ca_file: "{{ result_ipareplica_prepare._ca_file }}"
|
_ca_file: "{{ result_ipareplica_prepare._ca_file }}"
|
||||||
# _pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info }}"
|
|
||||||
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
||||||
dirman_password: "{{ ipareplica_dirman_password }}"
|
dirman_password: "{{ ipareplica_dirman_password }}"
|
||||||
|
|
||||||
@@ -660,7 +632,6 @@
|
|||||||
_ca_file: "{{ result_ipareplica_prepare._ca_file }}"
|
_ca_file: "{{ result_ipareplica_prepare._ca_file }}"
|
||||||
_kra_enabled: "{{ result_ipareplica_prepare._kra_enabled }}"
|
_kra_enabled: "{{ result_ipareplica_prepare._kra_enabled }}"
|
||||||
_kra_host_name: "{{ result_ipareplica_prepare.config_kra_host_name }}"
|
_kra_host_name: "{{ result_ipareplica_prepare.config_kra_host_name }}"
|
||||||
_pkinit_pkcs12_info: "{{ result_ipareplica_prepare._pkinit_pkcs12_info }}"
|
|
||||||
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
_top_dir: "{{ result_ipareplica_prepare._top_dir }}"
|
||||||
dirman_password: "{{ ipareplica_dirman_password }}"
|
dirman_password: "{{ ipareplica_dirman_password }}"
|
||||||
config_setup_ca: "{{ result_ipareplica_prepare.config_setup_ca }}"
|
config_setup_ca: "{{ result_ipareplica_prepare.config_setup_ca }}"
|
||||||
|
|||||||
@@ -87,7 +87,6 @@ def main():
|
|||||||
# setup ds ######################################################
|
# setup ds ######################################################
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
if NUM_VERSION < 40600:
|
if NUM_VERSION < 40600:
|
||||||
# Make sure the files we crated in /var/run are recreated at startup
|
# Make sure the files we crated in /var/run are recreated at startup
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ def main():
|
|||||||
)
|
)
|
||||||
|
|
||||||
ansible_module._ansible_debug = True
|
ansible_module._ansible_debug = True
|
||||||
ansible_log = AnsibleModuleLog(ansible_module)
|
|
||||||
|
|
||||||
# set values ############################################################
|
# set values ############################################################
|
||||||
|
|
||||||
|
|||||||
@@ -71,9 +71,6 @@ def main():
|
|||||||
options.dm_password = module.params.get('dm_password')
|
options.dm_password = module.params.get('dm_password')
|
||||||
options.master_password = module.params.get('master_password')
|
options.master_password = module.params.get('master_password')
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
# This will override any settings passed in on the cmdline
|
# This will override any settings passed in on the cmdline
|
||||||
if os.path.isfile(paths.ROOT_IPA_CACHE):
|
if os.path.isfile(paths.ROOT_IPA_CACHE):
|
||||||
# dm_password check removed, checked already
|
# dm_password check removed, checked already
|
||||||
|
|||||||
@@ -112,7 +112,6 @@ def main():
|
|||||||
# init ##########################################################
|
# init ##########################################################
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
api_Backend_ldap2(options.host_name, options.setup_ca, connect=True)
|
api_Backend_ldap2(options.host_name, options.setup_ca, connect=True)
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,6 @@ def main():
|
|||||||
# init ##########################################################
|
# init ##########################################################
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
api_Backend_ldap2(options.host_name, options.setup_ca, connect=True)
|
api_Backend_ldap2(options.host_name, options.setup_ca, connect=True)
|
||||||
|
|
||||||
|
|||||||
@@ -74,8 +74,6 @@ def main():
|
|||||||
|
|
||||||
# init ##################################################################
|
# init ##################################################################
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
api_Backend_ldap2(options.host_name, options.setup_ca, connect=True)
|
api_Backend_ldap2(options.host_name, options.setup_ca, connect=True)
|
||||||
|
|
||||||
# setup custodia ########################################################
|
# setup custodia ########################################################
|
||||||
|
|||||||
@@ -78,9 +78,6 @@ def main():
|
|||||||
|
|
||||||
# init ##########################################################
|
# init ##########################################################
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
api_Backend_ldap2(options.host_name, options.setup_ca, connect=True)
|
api_Backend_ldap2(options.host_name, options.setup_ca, connect=True)
|
||||||
|
|
||||||
# setup kra #####################################################
|
# setup kra #####################################################
|
||||||
|
|||||||
@@ -70,9 +70,6 @@ def main():
|
|||||||
|
|
||||||
# init ##########################################################
|
# init ##########################################################
|
||||||
|
|
||||||
fstore = sysrestore.FileStore(paths.SYSRESTORE)
|
|
||||||
sstore = sysrestore.StateFile(paths.SYSRESTORE)
|
|
||||||
|
|
||||||
api_Backend_ldap2(options.host_name, options.setup_ca, connect=True)
|
api_Backend_ldap2(options.host_name, options.setup_ca, connect=True)
|
||||||
|
|
||||||
# setup ds ######################################################
|
# setup ds ######################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user