Skip to content

Commit

Permalink
HMS-2814 feat: IPA client installer and automount
Browse files Browse the repository at this point in the history
Add option for IPA client installer and automount locations. The
hostconf API now returns an optional array of arguments that are passed
to `ipa-client-install` word-for-word. The IPA domain object now
contains a list of automount locations. Automount locations are
indepenent from DNS locations. Their values are LDAP RDNs (cn).

Signed-off-by: Christian Heimes <[email protected]>
  • Loading branch information
tiran committed Oct 18, 2023
1 parent bd8f888 commit c922620
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
20 changes: 19 additions & 1 deletion public.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,16 @@
"$ref": "#/components/schemas/DomainIpaServer"
}
},
"automount_locations": {
"description": "List of automount locations for AutoFS",
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 0,
"example": "[\"default\"]"
},
"ca_certs": {
"description": "A base64 representation of all the list of chain of certificates, including the server ca.",
"type": "array",
Expand All @@ -744,7 +754,7 @@
"example": "[\n {\n \"nickname\": \"MYDOMAIN.EXAMPLE IPA CA\",\n \"issuer\": \"CN=Certificate Authority,O=MYDOMAIN.EXAMPLE\",\n \"subject\": \"CN=Certificate Authority,O=MYDOMAIN.EXAMPLE\",\n \"serial_number\": \"1\",\n \"not_before\": \"2023-01-31T13:23:36Z\",\n \"not_after\": \"2023-01-31T13:23:36Z\"\n \"pem\": \"-----BEGIN CERTIFICATE-----\\nMIIE...\\n-----END CERTIFICATE-----\\n\",\n }\n]"
},
"locations": {
"description": "List of allowed locations",
"description": "List of DNS locations",
"type": "array",
"items": {
"$ref": "#/components/schemas/Location"
Expand Down Expand Up @@ -1096,6 +1106,14 @@
},
"example": "[{\"fqdn\": \"server1.mydomain.example\"}, {\"fqdn\": \"server2.mydomain.example\"}]"
},
"ipa_client_install_args": {
"description": "List of additional arguments for ipa-client-install",
"type": "array",
"items": {
"type": "string"
},
"example": "[\"--automount-location=default\", \"--enable-dns-updates\"]"
},
"realm_name": {
"$ref": "#/components/schemas/RealmName"
}
Expand Down
16 changes: 15 additions & 1 deletion public.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,14 @@ components:
type: array
items:
$ref: '#/components/schemas/DomainIpaServer'
automount_locations:
description: List of automount locations for AutoFS
type: array
items:
type: string
minLength: 1
minItems: 0
example: '["default"]'
ca_certs:
description: A base64 representation of all the list of chain of certificates, including the server ca.
type: array
Expand All @@ -499,7 +507,7 @@ components:
}
]
locations:
description: List of allowed locations
description: List of DNS locations
type: array
items:
$ref: '#/components/schemas/Location'
Expand Down Expand Up @@ -770,6 +778,12 @@ components:
items:
$ref: '#/components/schemas/HostConfIpaServer'
example: '[{"fqdn": "server1.mydomain.example"}, {"fqdn": "server2.mydomain.example"}]'
ipa_client_install_args:
description: List of additional arguments for ipa-client-install
type: array
items:
type: string
example: '["--automount-location=default", "--enable-dns-updates"]'
realm_name:
$ref: '#/components/schemas/RealmName'
x-rh-ipa-hcc:
Expand Down

0 comments on commit c922620

Please sign in to comment.