DSC, Chocolatey and OneGet

Tagged: ,

This topic contains 4 replies, has 4 voices, and was last updated by Profile photo of David Stiff David Stiff 1 year, 9 months ago.

  • Author
    Posts
  • #22521
    Profile photo of David Stiff
    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
    Profile photo of Don Jones
    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
    Profile photo of Rich Hopkins
    Rich Hopkins
    Participant
  • #22528
    Profile photo of Dave Wyatt
    Dave Wyatt
    Moderator

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

  • #22611
    Profile photo of David Stiff
    David Stiff
    Participant

    Thanks! I will give that a try.

You must be logged in to reply to this topic.