Make ipaserver role working with ipa 4.5(.4)

This commit is contained in:
Thomas Woerner
2018-01-28 11:46:31 +01:00
parent c5462d4aac
commit 3edc1bedca
3 changed files with 15 additions and 3 deletions

View File

@@ -87,6 +87,10 @@ def main():
fstore = sysrestore.FileStore(paths.SYSRESTORE)
sstore = sysrestore.StateFile(paths.SYSRESTORE)
if NUM_VERSION < 40600:
# Make sure the files we crated in /var/run are recreated at startup
tasks.configure_tmpfiles()
with redirect_stdout(ansible_log):
services.knownservices.ipa.enable()

View File

@@ -124,6 +124,10 @@ def main():
# setup DS ##############################################################
if NUM_VERSION < 40600:
# Make sure tmpfiles dir exist before installing components
tasks.create_tmpfiles_dirs(IPAAPI_USER)
# Create a directory server instance
if not options.external_cert_files:
ds = dsinstance.DsInstance(fstore=fstore,