mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
f5bf5466ed
* Use sd-notify in ipa-custodia.service * Introduce libexec/ipa/ipa-custodia script. It comes with correct default setting for IPA's config file. The new file also makes it simpler to run IPA's custodia instance with its own SELinux context. * ipapython no longer depends on custodia The patch addresses three issues: * https://bugzilla.redhat.com/show_bug.cgi?id=1430247 Forward compatibility with Custodia 0.3 in Fedora rawhide * https://pagure.io/freeipa/issue/5825 Use sd-notify * https://pagure.io/freeipa/issue/6788 Prepare for separate SELinux context Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
31 lines
589 B
Python
31 lines
589 B
Python
# Copyright (C) 2017 IPA Project Contributors, see COPYING for license
|
|
import argparse
|
|
|
|
import custodia.server
|
|
|
|
|
|
argparser = argparse.ArgumentParser(
|
|
prog='ipa-custodia',
|
|
description='IPA Custodia service'
|
|
)
|
|
argparser.add_argument(
|
|
'--debug',
|
|
action='store_true',
|
|
help='Debug mode'
|
|
)
|
|
argparser.add_argument(
|
|
'configfile',
|
|
nargs='?',
|
|
type=argparse.FileType('r'),
|
|
help="Path to IPA's custodia server config",
|
|
default='/etc/ipa/custodia/custodia.conf'
|
|
)
|
|
|
|
|
|
def main():
|
|
return custodia.server.main(argparser)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|