Puppet manage archives

I’m unable to get the zip to extract. I have this in /etc/puppetlabs/code/environments/production/manifests/blog.pp:

class archive {
  archive { '/usr/src/blog/blog.zip':
    ensure       => present,
    extract      => true,
    path       => '/usr/src/blog/blog.zip',
    extract_path => "/opt/blog2",
  }
}

node stapp03.stratos.xfusioncorp.com {
  include archive
}

On stapp03 I run puppet:

[root@stapp03 ~]# puppet agent -tv
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for stapp03.stratos.xfusioncorp.com
Info: Applying configuration version '1606766873'
Notice: Applied catalog in 0.15 seconds

But still there is no blog2 folder:

[root@stapp03 ~]# ls /opt
blog  puppetlabs
[root@stapp03 ~]#

class archive {
archive { ‘/opt/blog2/blog.zip’:
ensure => present,
extract => true,
path => ‘/usr/src/blog/blog.zip’,
extract_path => “/opt/blog2”,
}
}

node stapp03.stratos.xfusioncorp.com {
include archive
}

Try this and check it succeeds

Thanks but this did not work. The /opt/blog2/blog.zip does not exist before or after the task so it would be surprising if that were the solution. Not to mention that puppet doesn’t give any error, that’s even stranger, is there a way to increase verbosity? I tried a few things, like putting a syntax error in the .pp file and puppet did complain so it does look like the .pp is being used, but I’d like puppet to show what it is doing and executing from the .pp file.

That seems plausible, unfortunately it has expired, I will try this next time the challenge comes up, thanks!