Skip to content
Snippets Groups Projects
Commit 3a4cb6a7 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

ipa[server,replica,client]: Remove unused variables and wrong doc strings

parent cb94c345
No related branches found
No related tags found
No related merge requests found
Showing
with 9 additions and 162 deletions
...@@ -31,11 +31,6 @@ from ansible.errors import AnsibleError ...@@ -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 = ''' ...@@ -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 = '''
......
...@@ -451,7 +451,7 @@ def main(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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: ...@@ -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(): ...@@ -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: ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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: ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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: ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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(): ...@@ -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 --")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment