Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Chocolatey/Nuget/Hiera

$
0
0
Hi, We are planning on using ProGet, using different feeds containing certain packages for different departmental groups. We will be using Chocolatey with Puppet. We are using Hiera, so we will be setting the package url there. We are trying to figure out the best way to configure Hiera to reflect multiple Chocolatey sources. For example: A Windows server needs to have all of the applications we have decided it should get as its base software. All packages for the base software are under the feed http://servername:81/nuget/BASE' (app1, app2, app3). In this case, Hiera would reflect the http://servername:81/nuget/BASE as the Chocolatey package url source. We then want to apply software from Puppet based upon the server's role (to simplify, I will say MSOffice) All packages for the Office role are under the feed http://servername:81/nuget/MSOffice' (app1, app2, app3). Obviously this is a different source than the one above. Hiera knows that packages can be found under feeds at this url: 'http://servername:81/nuget/' , but how would we use Hiera to have multiple sources for Chocolatey packages? Chocolatey does allow multiple sources for searching. For instance, here is an example from the Chocolatey documentation, where multiple sources can be utilized: package { 'notepadplusplus': ensure => '6.7.5', provider => 'chocolatey', source => 'C:\local\folder\packages;https://chocolatey.org/api/v2/', } Can someone show me ways to use Hiera to give Chocolatey multiple sources to find a package? I realize we can put everything under one feed, but that is not our preferred solution. Thanks in advance for any assistance!

Viewing all articles
Browse latest Browse all 6104

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>