Call tar from command to make notify simpler

This commit is contained in:
Patrik Lundin 2024-10-31 15:33:48 +01:00
parent 0ad91d34d1
commit 48d9866a7c
Signed by: patlu
GPG key ID: A0A812BA2249F294

View file

@ -141,10 +141,11 @@ class cdn::cache(
exec { "curl -LO ${sunet_cdnp_url}":
creates => "${sunet_cdnp_dir}/${sunet_cdnp_file}",
cwd => $sunet_cdnp_dir,
notify => Exec["tar -xzf ${sunet_cdnp_file} sunet-cdnp"],
notify => Exec['extract sunet-cdnp'],
}
exec { "tar -xzf ${sunet_cdnp_file} sunet-cdnp":
exec { 'extract sunet-cdnp':
command => "tar -xzf ${sunet_cdnp_file} sunet-cdnp"
cwd => $sunet_cdnp_dir,
refreshonly => true,
}