Skip to content

Commit

Permalink
Add creates param to all archive resources
Browse files Browse the repository at this point in the history
This should resolve the idempotency issue in voxpupuli#205
  • Loading branch information
m0dular committed May 31, 2023
1 parent 8acf8aa commit 5c28ac0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
extract => true,
extract_command => 'tar xfz %s --strip-components=2',
extract_path => $telegraf::archive_install_dir,
creates => "${telegraf::archive_install_dir}/usr/bin/telegraf",
source => $telegraf::archive_location,
cleanup => true,
require => File[$telegraf::archive_install_dir],
Expand Down Expand Up @@ -180,6 +181,7 @@
extract_command => 'tar xfz %s --strip-components=2',
extract_path => $telegraf::archive_install_dir,
source => $telegraf::archive_location,
creates => "${telegraf::archive_install_dir}/usr/bin/telegraf",
cleanup => true,
require => File[$telegraf::archive_install_dir],
}
Expand Down

0 comments on commit 5c28ac0

Please sign in to comment.