Skip to content

Conversation

@bastelfreak
Copy link
Member

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

@bastelfreak bastelfreak added the enhancement New feature or request label Jun 2, 2023
@bastelfreak bastelfreak self-assigned this Jun 2, 2023
@bastelfreak bastelfreak force-pushed the toml branch 9 times, most recently from 04e66f1 to e997cec Compare June 2, 2023 20:40
file { "${telegraf::config_folder}/${name}.conf":
ensure => $_ensure,
content => inline_template("<%= require 'toml-rb'; TomlRB.dump({'aggregators'=>{'${plugin_type}'=>@options}}) %>"),
content => to_toml({ 'aggregators'=> { $plugin_type=> $options } }),

Choose a reason for hiding this comment

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

steve@arch ~> puppet apply -e '$a = to_toml({'a' => 'b'})'
Warning: This function is deprecated, please use stdlib::to_toml instead. at ["unknown", 1]:["unknown", 0]
   (location: /home/steve/.puppetlabs/etc/code/modules/stdlib/lib/puppet/functions/deprecation.rb:35:in `deprecation')
Notice: Compiled catalog for arch.lan in environment production in 0.02 seconds
Notice: Applied catalog in 0.02 seconds

However you may have done on purpose to avoid the stdlib bump to v9 at this time.

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed, because puppet/archive doesn't allow stdlib 9. We've a bit of a dependency problem on most modules that we need to sort out.

Copy link
Member Author

Choose a reason for hiding this comment

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

I released archive and we can now depend on stdlib 9 (I hope)

traylenator
traylenator previously approved these changes Jun 3, 2023
Copy link

@traylenator traylenator left a comment

Choose a reason for hiding this comment

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

LGTM with to_toml or stdlib::to_toml, as you wish.

@traylenator
Copy link

Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown function: 'validate_string'. (file: /etc/puppetlabs/code/environments/production/modules/apt/manifests/source.pp, line: 15, column: 3) (file: 

apt deps.

@bastelfreak
Copy link
Member Author

This requires puppetlabs/puppetlabs-apt#1113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants