We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Asset resources are created with a suffix in default, this cause purge to delete all assets:
in default
When adding assets, for example:
$bonsai_assets = [ 'sensu-plugins/sensu-plugins-process-checks', 'sensu-plugins/sensu-plugins-puppet', 'sensu-plugins/sensu-plugins-ssl', 'sensu-plugins/sensu-plugins-systemd', 'sensu-plugins/sensu-plugins-uptime-checks', 'sensu/http-checks', ] sensu_bonsai_asset { $bonsai_assets: ensure => present, version => latest, }
Puppet creates the assets:
[...] Notice: /Stage[main]/Profile::Sensu::Backend/Sensu_bonsai_asset[sensu-plugins/sensu-plugins-puppet]/ensure: created (corrective) [...]
and check the ressource:
puppet resource Sensu_bonsai_asset [...] sensu_bonsai_asset { 'sensu-plugins/sensu-plugins-puppet in default': ensure => 'present', provider => 'sensuctl', version => '3.0.0', } [...]
But if we went to ensure all the assets are managed and add:
sensu_resources { 'sensu_bonsai_asset': purge => true, }
We then see that all assets are removed:
[...] Notice: /Stage[main]/Profile::Sensu::Backend/Sensu_bonsai_asset[sensu/sensu-plugins-puppet in default]/ensure: removed [...]
Ubuntu 20.04 Default Ruby from the repo: 2.7.4p191 puppet agent: 7.15.0 sensu puppet module: 5.8.0 (latest) sensu-backend: 6.4.3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Asset resources are created with a suffix
in default
, this cause purge to delete all assets:When adding assets, for example:
Puppet creates the assets:
and check the ressource:
But if we went to ensure all the assets are managed and add:
We then see that all assets are removed:
Ubuntu 20.04
Default Ruby from the repo: 2.7.4p191
puppet agent: 7.15.0
sensu puppet module: 5.8.0 (latest)
sensu-backend: 6.4.3
The text was updated successfully, but these errors were encountered: