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

Move cert_name parameter default to module data #126

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

lbetz
Copy link
Contributor

@lbetz lbetz commented Jun 4, 2024

So we can use the default via lookup directly in hiera, e.g. for host object names.

@lbetz lbetz added the enhancement New feature or request label Jun 4, 2024
@lbetz lbetz added this to the v5.0.2 milestone Jun 4, 2024
@@ -22,3 +22,5 @@ icinga::agent::logging_level: warning
icinga::agentless::user: icinga
icinga::agentless::manage_user: true
icinga::agentless::ssh_key_type: rsa

icinga::cert_name: "%{facts.networking.fqdn}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't quite understand this change. Do you do this because you want to use icinga::cert_name within other Hiera values?

Copy link
Contributor Author

@lbetz lbetz Jun 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct, like in a profile class for icinga objects

profile::icinga::objects:
  Host:
    "%{lookup('icinga::cert_name')}"
      attribute1: value1
      attribute2: valie2

and relize these objects in this class.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lbetz lbetz merged commit ba5a01b into voxpupuli:main Jun 5, 2024
4 checks passed
@lbetz lbetz deleted the certname branch June 7, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants