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

Puppet does not change file to directory when selinux is enabled

    XMLWordPrintable

Details

    • Bug
    • Status: Accepted
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • None
    • Fresh installation (no upgrade) of PE 2017.1.0 running on CentOS 7

    • Hide

      Puppet changes file to a directory

      Show
      Puppet changes file to a directory
    • Night's Watch
    • Needs Assessment

    Description

      When having a file on the system (touch /tmp/foo)
      and mananging this file from puppet as a directory, puppet will not convert the file to a directory.
      e.g.

      class demo {
        File {
          owner => 'root',
          group => 'root',
          mode  => '0644',
        }
        file { '/tmp/foo':
          ensure => directory,
        }
        file { '/tmp/foo/bar':
          ensure => file,
        }
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            malfke Martin Alfke
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Zendesk Support