Issue #11159 has been reported by Stuart Remphrey.
----------------------------------------
Bug #11159: File resource does not work with '/' to reference root
https://projects.puppetlabs.com/issues/11159
Author: Stuart Remphrey
Status: Unreviewed
Priority: Low
Assignee:
Category: file
Target version:
Affected Puppet version: 2.6.6
Keywords:
Branch:
The File resource does not work with '/' to reference root, such as to
ensure/audit the owner, group and mode, but '/.' does work. Perhaps it is being
over-enthusiastic in removing trailing slashes?
This doesn't work:
file { '/':
ensure => directory,
owner => 0,
group => 0,
mode => 0755,
#before => *[*], # everything :-)
}
This does work -- and is a reasonable workaround (though mildly annoying and
not exactly blindingly obvious at first):
file { '/.':
...
}
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.