Forum: CFEngine Help
Subject: Re: Install "ntp" == "Try to install ntp.*!"
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,23598,23599#msg-23599
It would seem that the problem is being caused by package_architectures not
being specified:
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?
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)";
I would suggest specifying package_architectures in your packages: promise, or
alternatively redefining body package_method yum to set package_name_convention
to "$(name)".
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine