Forum: CFEngine Help
Subject: Re: Install "ntp" == "Try to install ntp.*!"
Author: jblaine
Link to topic: https://cfengine.com/forum/read.php?3,23598,23603#msg-23603
zzamboni Wrote:
-------------------------------------------------------
> It would seem that the problem is being caused by
> package_architectures not being specified:
Indeed. I shouldn't need to tell CFEngine what architecture host it is running
on though.
> cf3> -> Package promises to refer to itself as
> "ntp.*" to the manager
> cf3> !! Package name contians '*' -- perhaps a
> missing attribute (name/version/arch) should be
> specified
>
> Then, when "yum -y install ntp.*" is executed, the
> * is evaluated as a shell metacharacter and
> expands to the names of all the files starting
> with "ntp." in the directory in which the command
> was executed, which apparently contains ntp.conf,
> ntp.conf.cf-before-edit, ntp.conf.cfsaved, etc.
>
> Where you by any change running cf-agent from
> /etc/ntp/ or something like that?
Nope. I was sitting in /var/cfengine/masterfiles
> My guess is that package_architectures defaults to
> { "*" }, and you end up with "ntp.*" because body
> package_method yum (I assume you are using it from
> cfengine_stdlib) defines package_name_convention
> like this:
>
> package_name_convention => "$(name).$(arch)";
Which makes me wonder : where is it getting name and arch?
Compare/contrast:
body package_method solaris (pkgname, spoolfile, adminfile) { ... }
body package_method yum { ... }
Oh hey... look at that... I see someone (Trond Hasle Amundsen) made a yum_rpm
which does the right thing:
package_name_convention => "$(name)";
Which confirms for me again that the CPOBPOBPLBOPLOPL is a total mess of a
foundation to start with. I've pretty much had it. We're not looking to make
our own CM tool out of a LEGO kit pieced together from garage/yard sales nor
fabricate our own LEGO blocks.
I'm not shooting the messenger -- I appreciate your response very much.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine