Re: Chocolately and package_module
"'Nick Anderson' via help-cfengine" <[email protected]>
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <CAE46pPvRLRJ-md3v=51kgC5o04z0BTo24am+RLHmc7yXGi86Cw@mail.gmail.com> |
You would need to write a chocolaty package module that communicates with the agent using the package module API. https://docs.cfengine.com/docs/3.18/reference-language-concepts-modules-package-module-api.html You can find other package modules here: https://github.com/cfengine/masterfiles/tree/master/modules%2Fpackages%2Fvendored On Fri, Dec 2, 2022, 1:37 PM Bob <[email protected]> wrote: > I am doing some reading and it appears package_module is the new way to > install packages. I am creating some new policy file and I think I am using > the deprecated syntax to install some packages using Chocolately. Example: > > classes: > windows:: > "have_choco_exe" expression => > fileexists("C:\ProgramData\chocolatey\bin\choco.exe"); > > packages: > have_choco_exe:: > "python3" > package_policy => "add", > package_method => choco, > package_select => "==", > package_version => "3.11.0"; > > I cannot find how to use package_module to install using Chocolatey. I > did some reading in masterfiles/lib/packages.cf and I don't see any > mention of Chocolatey there. > > Can anyone share any information about using Chocolatey and package_module? > > -- > You received this message because you are subscribed to the Google Groups > "help-cfengine" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/help-cfengine/e3f009d7-deea-4328-951e-649e4cd49807n%40googlegroups.com > <https://groups.google.com/d/msgid/help-cfengine/e3f009d7-deea-4328-951e-649e4cd49807n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "help-cfengine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/CAE46pPvRLRJ-md3v%3D51kgC5o04z0BTo24am%2BRLHmc7yXGi86Cw%40mail.gmail.com.