Bug #7908
" Parameter path failed: File paths must be fully qualified," for file{ "/":
| Status: | Investigating | Start date: | 06/13/2011 | |
|---|---|---|---|---|
| Priority: | Low | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | file | |||
| Target version: | 2.7.x | |||
| Affected Puppet version: | Branch: | |||
| Keywords: | ||||
| Votes: | 1 |
Description
Here is the code I’m using :
# FIXME !!! Terrible bug from the agent rpm that owns / and /opt for some reason and mess up the permission (g+w)
# We shouldn't have to do that
file{ "/":
owner => root,
group => root,
mode => 0755,
recurse => false,
}
On puppet 2.6 :
Parameter path failed: File paths must be fully qualified,
On Puppet 0.25.5 :
notice: //mysqld::agent::package/File[/]/mode: mode changed '775' to '755'
More context : It really scares me to have to do that to work around a faulty rpm… We will switch to an exec based statement, But I think it still needs to be marked as a regression as 2.6 can’t manage ‘/’.
History
Updated by Nan Liu 11 months ago
- Status changed from Unreviewed to Investigating
Try:
file { '/':
path => '/',
ensure => directory,
owner => '0',
mode => '0',
mode => '0755',
backup => false,
}
Updated by Julien R. 11 months ago
Nan Liu wrote:
Try:
file { '/': path => '/', ensure => directory, owner => '0', mode => '0', mode => '0755', backup => false, }
That did the trick :
notice: /Stage[main]/Mysqld::Agent::Package/File[/]/mode: mode changed '775' to '755'
Thanks a bunch ! I’ll use that for now, as my 0.25.5 clients are happy as well
Updated by Michael Knox 4 months ago
This affects 2.7.x as well … On a 2.7.9 client (Solaris)
err: Failed to apply catalog: Parameter path failed: File paths must be fully qualified, not ‘’ The section of the manifest is:
file{'/':
path => '/',
ensure => directory,
mode => '0755',
owner => '0',
group => '0',
backup => false,
}
Updated by Michael Stahnke 4 months ago
- Target version changed from 2.6.x to 2.7.x
2.6.x is closed. Moving to 2.7.x