root@ip-172-31-8-159:~ # puppet apply test.pp
|
Notice: Compiled catalog for puppetfactory.puppetlabs.vm in environment production in 0.03 seconds
|
Notice: /Stage[main]/Main/File[/tmp/test]/ensure: created
|
Error: Could not set 'file' on ensure: user bar.txt20160201-23101-1o0dulq doesn't exist
|
Error: Could not set 'file' on ensure: user bar.txt20160201-23101-1o0dulq doesn't exist
|
Wrapped exception:
|
user bar.txt20160201-23101-1o0dulq doesn't exist
|
Error: /Stage[main]/Main/File[/tmp/test/~bar.txt]/ensure: change from absent to file failed: Could not set 'file' on ensure: user bar.txt20160201-23101-1o0dulq doesn't exist
|
Notice: Applied catalog in 0.28 seconds
|
root@ip-172-31-8-159:~ # cat test.pp
|
file { '/tmp/test':
|
ensure => directory,
|
recurse => true,
|
source => '/root/foo',
|
}
|
|
root@ip-172-31-8-159:~ # ls foo/
|
~bar.txt
|