Re: Chocolately and package_module
"'Nick Anderson' via help-cfengine" <[email protected]>
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <CAE46pPvu3D3cqBad86pdSxvAseP9qu+GXacVvRs0208Aea_qjg@mail.gmail.com> |
Oh and once the module is written there's a bit of wiring to do in body common control (set default package modules for platform, and also as a.default inventory source) if you want chocolatey as default package manager that is. On Fri, Dec 2, 2022, 1:48 PM Nick Anderson <[email protected]> wrote: > 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/CAE46pPvu3D3cqBad86pdSxvAseP9qu%2BGXacVvRs0208Aea_qjg%40mail.gmail.com.