Did you tell cfengine to use that env variable?

body agent control
{
 freebsd::
   environment => { "PKG_PATH=/tmp/packages/All" };
}

or you should possibly use 'package_file_repositories' in the body 
package_method.

Cheers,
--Nakarin

On Apr 21, 2010, at 11:28 AM, Сева Глущенко wrote:

> Hello folks,
> 
> I'm tryin' to build a Cfengine method which installs locally available
> packages. Unfortunately, it seems like pkg_add ignores PKG_PATH
> environment variable despite it is listed in its manual page and
> "strings /usr/sbin/pkg_add" command output. So, is there anybody who
> succeed with this task? Can you share your success story please?
> 
> -- 
> SY, Seva Gluschenko.
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to