Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Adds support to configure Director Self-Service config string #642

Conversation

LordHepipud
Copy link
Collaborator

@LordHepipud LordHepipud commented Jul 14, 2023

This new feature allows to configure the Icinga Director Self-Service call during registration, by modifing the JSON-String. This will only apply to the first time registration of a host and is not modified again, unless the host and director keys for this specific host object are removed.

This works directly inside the IMC installation wizard as well as for the exported installation command or file.

By doing so, you can manually define the IP-Address with address key in your JSON as well as the display name of an object with display_name. Example:

{ "address": "127.0.0.1", "display_name": "Example Host" }

The following constants are available inside the configuration:

$ifw.hostaddress$: Will use the default IP-Address automatically fetched from the system
$ifw.hostname$: The current hostname of the host, without FQDN and not modiying upper/lowercase
$ifw.hostfqdn$: The current FQDN of the host, without case modification

For lower and upper case modification, you can use .tolower or .toupper for the hostname and FQDN, example:

{ "address": "127.0.0.1", "display_name": "$ifw.hostname.tolower$" }

Fixes #292
Fixes #544

@cla-bot cla-bot bot added the cla/signed label Jul 14, 2023
@LordHepipud LordHepipud self-assigned this Jul 14, 2023
@LordHepipud LordHepipud added the Enhancement New feature or request label Jul 14, 2023
@LordHepipud LordHepipud added this to the v1.11.0 milestone Jul 14, 2023
@LordHepipud LordHepipud merged commit 6220349 into master Jul 14, 2023
1 check passed
@LordHepipud LordHepipud deleted the feature/allow_to_configure_director_self_service_register_string branch July 14, 2023 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed Enhancement New feature or request
Projects
None yet
1 participant