File paths must be fully qualified

1,739 views
Skip to first unread message

Haris Farooque

unread,
Mar 3, 2010, 7:17:18 AM3/3/10
to puppet...@googlegroups.com
I was using Puppet 0.24.8 and now upgrade the puppet server and client both to 0.25.4 (on 1 machine i.e. server and client), but i am facing some problems. While testing, some of the configs which were/are running fine on older version generates error here;

for instance,

i have defined the FileSource path in '/etc/puppet/fileserver.conf'
ᅵᅵ [myFileSrc]
ᅵᅵᅵ path /etc/puppet/modules/repo/files/
ᅵᅵᅵ allow *.mydomain.com

but when i run puppet cleint it gives me following err;

err: Could not run Puppet configuration client: Parameter path failed: File paths must be fully qualified, not 'puppet:/myFileSrc/<filename>' at /etc/puppet/manifests/<myfile>:158

whats wrong here?
----------
Haris Farooque

Thomas Bellman

unread,
Mar 3, 2010, 8:23:35 AM3/3/10
to puppet...@googlegroups.com
Haris Farooque wrote:

> *err: Could not run Puppet configuration client: Parameter path failed:
> File paths must be fully qualified, not 'puppet:/myFileSrc**/<filename>'
> at /etc/puppet/manifests/<myfile>:158

The correct format is "puppet:///myFileSrc/<filename>". Or more general,
"puppet://<server>/<filemodule>/<filename>", but if you don't specify
any server, Puppet will use the same server it got the manifests from.

It looks like 0.24.8 treated "puppet:///foo" and "puppet:/foo" identically,
but the spec didn't really allow URLs on the latter form.


/Bellman

Peter Meier

unread,
Mar 3, 2010, 8:32:42 AM3/3/10
to puppet...@googlegroups.com
> *err: Could not run Puppet configuration client: Parameter path
> failed: File paths must be fully qualified, not
> 'puppet:/myFileSrc**/<filename>' at /etc/puppet/manifests/<myfile>:158
>
> *whats wrong here? *

can you show us your manifest in question?

cheers epte

Haris Farooque

unread,
Mar 5, 2010, 4:13:24 AM3/5/10
to puppet...@googlegroups.com
yes, I tried in the same way, here is my manifest;

filesever.conf:
------------------

[SLESSUDO]
        path /etc/puppet/modules/sudo/files/
        allow *.mydomain.com


-----------------------------
        $sourcepath = $operatingsystem ? {
                AIX => "/etc/puppet/sudo/files/sudoers",
                default => "puppet:///SLESSUDO/sudoers",
        }
        file {"$sourcepath":
                owner => $owner,
                group => $group,
                mode => $mode,
                source  => $sourcepath,
                #require => Package["sudo"],
        }
this is the err:

err: Could not run Puppet configuration client: Parameter path failed: File paths must be fully qualified, not 'puppet:/SLES_SUDO/sudoers' at /etc/puppet/manifests/<myfile>:

Am 03.03.2010 13:17, schrieb Haris Farooque:
I was using Puppet 0.24.8 and now upgrade the puppet server and client both to 0.25.4 (on 1 machine i.e. server and client), but i am facing some problems. While testing, some of the configs which were/are running fine on older version generates error here;

for instance,

i have defined the FileSource path in '/etc/puppet/fileserver.conf'
   [myFileSrc]
    path /etc/puppet/modules/repo/files/

    allow *.mydomain.com

but when i run puppet cleint it gives me following err;

err: Could not run Puppet configuration client: Parameter path failed: File paths must be fully qualified, not 'puppet:/myFileSrc/<filename>' at /etc/puppet/manifests/<myfile>:158

whats wrong here?
----------
Haris Farooque --
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.


-- 
M. Haris Farooque

Ohad Levy

unread,
Mar 5, 2010, 4:29:25 AM3/5/10
to puppet...@googlegroups.com
On Fri, Mar 5, 2010 at 5:13 PM, Haris Farooque <mfh...@fleetboard.com> wrote:
yes, I tried in the same way, here is my manifest;

err: Could not run Puppet configuration client: Parameter path failed: File paths must be fully qualified, not 'puppet:/SLES_SUDO/sudoers' at /etc/puppet/manifests/<myfile>:

it should be puppet://SLES_SUDO/... 

Ohad Levy

unread,
Mar 5, 2010, 4:31:25 AM3/5/10
to puppet...@googlegroups.com
sorry, I assu,e SLES_SUDO is not your servername, so in this case it should be:

puppet:///SLES_SUDO/..

Peter Meier

unread,
Mar 5, 2010, 4:32:18 AM3/5/10
to puppet...@googlegroups.com
> $sourcepath = $operatingsystem ? {
> AIX => "/etc/puppet/sudo/files/sudoers",
> default => "puppet:///SLESSUDO/sudoers",
> }
> file {"$sourcepath":


you set sourcepath as the targeted path of the file, this won't work
and I assume it is also not what you like to do.

cheers pete


Reply all
Reply to author
Forward
0 new messages