DSC, Chocolatey and OneGet

Tagged: ,

This topic contains 4 replies, has 4 voices, and was last updated by  David Stiff 2 years, 7 months ago.

  • Author
    Posts
  • #22521

    David Stiff
    Participant

    Hi,

    I need to create a DSC Configuration that installs many applications. A lot of what I need is available as a Chocolatey package.

    Can I run Chocolately from the DSC Config and how would I do that? Or should I use OneGet? (I wasn't sure how mature OneGet was yet)

    Thanks!
    Dave

  • #22522

    Don Jones
    Keymaster

    It depends on if you're talking v4 or v5. OneGet isn't in v4, obviously, and v5 is extremely beta still. OneGet, by definition, is not mature yet.

    Microsoft doesn't have a Chocolatey resource, so you'd either have to get one from the community (they exist) or build your own. Alternately, if your logic is simple enough, you could build a Script resource that runs a Chocolatey command.

  • #22523

    Rich Hopkins
    Participant
  • #22528

    Dave Wyatt
    Moderator

    Looks like multiple people have written this: https://github.com/PowerShellOrg/cChoco

  • #22611

    David Stiff
    Participant

    Thanks! I will give that a try.

You must be logged in to reply to this topic.