Badgerati / Fogg

PowerShell tool to aide and simplify the creation, deployment and provisioning of infrastructure in Azure
MIT License
7 stars 2 forks source link

New Chocolatey provisioner that takes a list of software names to install #15

Closed Badgerati closed 7 years ago

Badgerati commented 7 years ago

Create a new type of provisioner for installing software via Chocolatey. In principle this will just be a Custom Script, but instead of initialising it with a script path you pass it a comma-separated list of software names:

"provisioners": {
    "general-software": "choco: 7zip.install, visualstudiocode(1.12.2), nodejs.install"
}

When the general-software provisioner is used on a VM, it will now install 7-Zip, VS Code v1.12.2 and NodeJs on that VM via Chocolatey.

Badgerati commented 7 years ago

This allows the installation of software from Chocolatey as described above, but it also has some extra features:

To override choco software at the VM template level:

{
    "provisioners": [
        "general-software: git.install, notepadplusplus"
    ]
}

To pass arguments to custom script:

{
    "provisioners": [
        "dir: create|C:\\Logs\\MyLogs"
    ]
}

Which will pass "create" and "C:\Logs\MyLogs"