| Puppet Version: 6.14.0 (6.13 works) Puppet Server Version: N/A OS Name/Version: EL7 Recursive directory copies from modules no longer appear to function in 6.14.0. Repeater:
mkdir -p testmod/{files,manifests} |
mkdir testmod/files/test |
echo 'one' > testmod/files/test/one |
echo 'two' > testmod/files/test/two
|
Create `testmod/manifests/init.pp` with the following content:
class testmod { |
file { '/tmp/test': |
ensure => 'directory', |
force => true, |
recurse => true, |
source => "puppet:///modules/${module_name}/test" |
} |
}
|
Run: puppet apply -e 'include testmod Desired Behavior: /tmp/test gets created with all of the files Actual Behavior:
Error: Could not set 'file' on ensure: Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test |
Error: Could not set 'file' on ensure: Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test |
Wrapped exception: |
Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test |
Error: /Stage[main]/Testmod/File[/tmp/test/one]/ensure: change from 'absent' to 'file' failed: Could not set 'file' on ensure: Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test |
Error: Could not set 'file' on ensure: Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test |
Error: Could not set 'file' on ensure: Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test |
Wrapped exception: |
Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test |
Error: /Stage[main]/Testmod/File[/tmp/test/two]/ensure: change from 'absent' to 'file' failed: Could not set 'file' on ensure: Is a directory @ io_fread - /etc/puppetlabs/code/environments/production/modules/testmod/files/test
|
|