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

Replace config template by conversion to yaml #37

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

lbetz
Copy link
Contributor

@lbetz lbetz commented Sep 20, 2024

No description provided.

@lbetz lbetz added this to the v3.1.0 milestone Sep 20, 2024
manifests/config.pp Outdated Show resolved Hide resolved
@lbetz lbetz force-pushed the icingadb-config-file branch from 6d1b698 to c76218c Compare September 20, 2024 13:10
@lbetz lbetz requested a review from rwaffen September 20, 2024 13:12
manifests/config.pp Outdated Show resolved Hide resolved
manifests/config.pp Outdated Show resolved Hide resolved
@lbetz lbetz added enhancement New feature or request and removed skip-changelog labels Sep 21, 2024
@lbetz lbetz force-pushed the icingadb-config-file branch from c76218c to 66712a0 Compare September 23, 2024 12:36
@lbetz lbetz requested a review from ekohl September 23, 2024 12:38
$conf_dir = $icingadb::globals::conf_dir
$user = $icingadb::globals::user
$group = $icingadb::globals::group
$redis_tls_files = $icingadb::redis_tls_files
$db_tls_files = $icingadb::db_tls_files
$config_content = if versioncmp($stdlib_version, '9.0.0') < 0 {
to_yaml($icingadb::config)
Copy link
Member

Choose a reason for hiding this comment

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

are there still users for this old version of stdlib? metadata.json lists 9.0.0 als oldest supported version.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I have a customer this week who is not on the bleeding edge.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's the reason for the other three Icinga modules to also support older version.

Copy link
Member

Choose a reason for hiding this comment

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

If that version is supported, metadata.json should reflect that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does?!

"name": "puppetlabs/stdlib",

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, I went @bastelfreak's comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ekohl You're welcome.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

I'm still annoyed that stdlib didn't have an 8.x version with the namespaced functions and we have to resort to this

@lbetz lbetz merged commit c66a64a into voxpupuli:main Sep 24, 2024
5 checks passed
@lbetz lbetz deleted the icingadb-config-file branch September 24, 2024 05:52
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.

4 participants