Mercurial > repos > other > Puppet
view modules/archive/examples/duplicate.pp @ 482:d83de9b3a62b default tip
Update hiera.yaml within Puppet config
Forgot that we manage it from here. Now has content to match
new packages
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 30 Aug 2024 16:10:36 +0100 |
parents | 3fce34f642f1 |
children |
line wrap: on
line source
$source_file = '/tmp/source' file { $source_file: ensure => file, content => 'this is a test', } file { ['/tmp/result1', '/tmp/result2']: ensure => directory, } archive { '/tmp/result1/result': ensure => present, name => '/tmp/result1/result', source => "file://${source_file}", extract => false, require => File[$source_file], } archive { '/tmp/result2/result': ensure => present, name => '/tmp/result2/result', source => "file://${source_file}", extract => false, require => File[$source_file], }