Call tar from command to make notify simpler
This commit is contained in:
parent
0ad91d34d1
commit
48d9866a7c
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue