2016-11-09 05:44:22 -06:00
|
|
|
#
|
|
|
|
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
|
|
|
|
#
|
|
|
|
|
|
|
|
"""
|
|
|
|
Dogtag-based service installer module
|
|
|
|
"""
|
|
|
|
|
|
|
|
from ipalib.install import service
|
|
|
|
from ipalib.install.service import prepare_only, replica_install_only
|
|
|
|
from ipapython.install.core import knob
|
2019-02-08 08:09:28 -06:00
|
|
|
from ipaserver.install.dogtaginstance import PKIIniLoader
|
2016-11-09 05:44:22 -06:00
|
|
|
|
|
|
|
|
|
|
|
class DogtagInstallInterface(service.ServiceInstallInterface):
|
|
|
|
"""
|
|
|
|
Interface common to all Dogtag-based service installers
|
|
|
|
"""
|
|
|
|
|
|
|
|
ca_file = knob(
|
|
|
|
str, None,
|
|
|
|
description="location of CA PKCS#12 file",
|
|
|
|
cli_metavar='FILE',
|
|
|
|
)
|
|
|
|
ca_file = prepare_only(ca_file)
|
|
|
|
ca_file = replica_install_only(ca_file)
|
2018-09-03 05:45:30 -05:00
|
|
|
|
|
|
|
pki_config_override = knob(
|
|
|
|
str, None,
|
|
|
|
cli_names='--pki-config-override',
|
|
|
|
description="Path to ini file with config overrides.",
|
|
|
|
)
|
|
|
|
|
|
|
|
@pki_config_override.validator
|
|
|
|
def pki_config_override(self, value):
|
2019-02-08 08:09:28 -06:00
|
|
|
if value is not None:
|
|
|
|
PKIIniLoader.verify_pki_config_override(value)
|