Hey,
I got stuck in puppet archive task, I’m really new to puppet world so I have created a news.pp and site.pp as I could understand through different websites.
class unzip_archive ($file_name = '/tmp/something') {
archive { $file_name:
ensure => present,
extract => true,
extract_path => '/opt/news/',
source => '/usr/src/news/news.zip',
checksum => 'checksum hash',
checksum_type => 'sha1',
creates => '/tmp/something',
cleanup => true,}
}
node 'stapp01.stratos.xfusioncorp.com' { include unzip_archive }
node 'stapp02.stratos.xfusioncorp.com' { include unzip_archive }
node 'stapp03.stratos.xfusioncorp.com' { include unzip_archive }
node 'jump_host.stratos.xfusioncorp.com' { notify { 'this node did not match any of the listed definitions': } }
I run this with puppet apply . but I don’t see the file extracted on the target nodes.
what could be wrong?