Chocolatey For Automate 3.7 Source and Repository Management

This forum documents the Chocolatey for Automate 3.6 and 3.7 plugin.

3.7 adds support for WinGet and improves on CFA 3.6
Post Reply
User avatar
Cubert
Posts: 2694
Joined: Tue Dec 29, 2015 7:57 pm
9
Contact:

Chocolatey For Automate 3.7 Source and Repository Management

Post by Cubert »

New in Chocolatey 3.7 - Source Management


Source management allows you to expand the functionality of Chocolatey to include proxy gateways like ProGet or any third-party repositories, along with UNC local caches using SMB.

ProGet is a self-hosted, cross-platform package and container repository that keeps all your packages in one place, allowing you to scan for vulnerabilities and control who can access different feeds. It also provides a proxy and caching agent for the public Chocolatey repositories.

Chocolatey for Automate Source Manager is broken down into two separate functions. The global management tool allows you to create a list of available sources you want to allow across your environment. You can add multiple sources, and if needed, you can have multiple instances of the same repository with different users, passwords, and priorities. This list is then used in the client manager to allow you to select and enable a source in the list for the client, location, or agent(s) under the managed client.

Global Source Manager The Global Source Manager holds the list of available sources in either URL or UNC format. It stores the information needed to access the saved repositories. Sources added to this list are not applied to any client, location, or agent(s) when added to this list. Source assignment is managed at the client level.

When adding UNC locations to the list, you need to escape the backslashes. Escaping ensures that special characters within a string are treated as literal characters. Example of a properly escaped UNC: \\\\MyServerName\\MyShareName


GlobalSourceManager.jpg
GlobalSourceManager.jpg (184.44 KiB) Viewed 3506 times



Client Source Manager

The Client Source Manager allows you to assign one or more sources to the client as a whole, any location, or one or more agents using the different assignment controls provided. An agent may have more than one source applied to it or none at all. When sources are assigned to an agent, the agent is wiped of all other sources and will only have the assigned sources applied. Agents with no assignments will use the default community repository for Chocolatey

ClientSources.jpg
ClientSources.jpg (100.6 KiB) Viewed 3506 times

Each source entry has a colored dot infront of it. This dot repersents whether the sources has been successfully appied to agent. Red dot, the agents source is not yet verified. Green dot, source is verfied on agent.


Agent Source Management

To enable or disable source management on an agent, you can use the Enable Extra Sources EDF control. This control turns alternative sources on or off. When off, the agent will attempt to revert back to the default public repository. When assigning a source to an agent, this will automatically be enabled. When removing all assignments for an agent, this EDF will be disabled.

ClientEDFTab.jpg
ClientEDFTab.jpg (209.3 KiB) Viewed 3506 times


Operate your own ProGet Proxy Repository
Here is a PDF about ProGet and how to host it on Digital Ocean for 7 bucks a month. You can host it anywhere or in your own environment for free.
Create_Chocolatey_CacheProxy_for_$7_amonth.pdf
(1.07 MiB) Downloaded 88 times

Post Reply

Return to “Chocolatey For Automate 3.6 & 3.7 Document Project”