Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 0 ~/work/puppet (pr/3535) $ cat multi_dir_recurse_mtime.pp
- File {
- backup => false
- }
- file { '/tmp/sourcedir':
- ensure => directory,
- }
- file { '/tmp/sourcedir/file1':
- ensure => file,
- content => ''
- }
- file { '/tmp/sourcedir/dir1':
- ensure => directory,
- }
- file { '/tmp/sourcedir/dir1/file2':
- ensure => file,
- content => 'abc'
- }
- file { '/tmp/dest':
- ensure => directory,
- recurse => true,
- checksum => mtime,
- source => '/tmp/sourcedir'
- }
- 0 ~/work/puppet (pr/3535) $ rm -rf /tmp/dest/
- 0 ~/work/puppet (pr/3535) $ be puppet apply multi_dir_recurse_mtime.pp
- Notice: Compiled catalog for agent3 in environment production in 0.42 seconds
- Notice: /Stage[main]/Main/File[/tmp/sourcedir/dir1/file2]/content: content changed '{md5}202cb962ac59075b964b07152d234b70' to '{md5}900150983cd24fb0d6963f7d28e17f72'
- Notice: /Stage[main]/Main/File[/tmp/dest]/ensure: created
- Notice: /Stage[main]/Main/File[/tmp/dest/dir1]/ensure: created
- Notice: /Stage[main]/Main/File[/tmp/dest/dir1/file2]/ensure: defined content as '{mtime}2015-02-03 22:14:34 -0800'
- Notice: /Stage[main]/Main/File[/tmp/dest/file]/ensure: defined content as '{mtime}2015-02-03 22:01:57 -0800'
- Notice: /Stage[main]/Main/File[/tmp/dest/file1]/ensure: defined content as '{mtime}2015-02-03 22:04:30 -0800'
- Notice: Applied catalog in 0.07 seconds
- 0 ~/work/puppet (pr/3535) $ be puppet apply multi_dir_recurse_mtime.pp
- Notice: Compiled catalog for agent3 in environment production in 0.41 seconds
- Notice: Applied catalog in 0.06 seconds
- 0 ~/work/puppet (pr/3535) $ echo -n 'abc' > /tmp/sourcedir/dir1/file2
- 0 ~/work/puppet (pr/3535) $ openssl md5 < /tmp/sourcedir/dir1/file2
- 900150983cd24fb0d6963f7d28e17f72
- 0 ~/work/puppet (pr/3535) $ be puppet apply multi_dir_recurse_mtime.pp
- Notice: Compiled catalog for agent3 in environment production in 0.41 seconds
- Notice: /Stage[main]/Main/File[/tmp/dest/dir1/file2]/content: content changed '{mtime}2015-02-03 22:14:34 -0800' to '{mtime}2015-02-03 22:14:45 -0800'
- Notice: Applied catalog in 0.06 seconds
- 0 ~/work/puppet (pr/3535) $ be puppet apply multi_dir_recurse_mtime.pp
- Notice: Compiled catalog for agent3 in environment production in 0.41 seconds
- Notice: Applied catalog in 0.06 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement