Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10404

Puppet apply can no longer copy directories recursively from a 'puppet:///' file source

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • PUP 6.14.0
    • None
    • Catalog Application
    • None
    • Needs Assessment
    • Needs Assessment

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              peiriannydd Trevor Vaughan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support