Task Puppet Manage Archives - Failed

I see, I did that but it did not extract the file and task failed.

The code seems right to me. Did you run the sudo puppet agent -t command on an application node? On jump hosts this command does nothing, as the modifications for jump_host are the modifications of node default

try to change

archive { ‘/usr/src/blog/blog.zip’: this to different location like /tmp/blog.zip . It will work.

node ‘stapp01.stratos.xfusioncorp.com’,‘stapp02.stratos.xfusioncorp.com’,‘stapp03.stratos.xfusioncorp.com’ {
archive { ‘/tmp/ecommerce.zip’: <-- this is should be some temp location
ensure => present,
extract => true,
extract_path => ‘/opt/ecommerce’,
source => ‘file:///usr/src/ecommerce/ecommerce.zip’,
cleanup => true,
}
}
node default{
}

thank you so much I though it had to be an arbitary location.

1 Like

Thank you for posting this here @selvag!

1 Like