view modules/archive/examples/duplicate.pp @ 466:202aeef575a1

Correct HTTP log paths in LogWatch It wasn't generating logs because we're not using the normal pattern - our site name comes _after_ the "access" part, not before
author IBBoard <dev@ibboard.co.uk>
date Sun, 25 Feb 2024 10:10:32 +0000
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],
}