Giter VIP home page Giter VIP logo

choco_dev's Introduction

Windows Dev Box On-Demand

Clone this repo

git clone https://github.com/liatrio/choco_dev.git

EDIT THE STATE FILE KEY IN MAIN.TF

until we have terragrunt template/randomize this so we don't clash.

Create an azure app/key provider file.

Get values by creating a service principal via cli or by using the console to create an approle in the portal.

Then granting permissions

See This Guide:

https://www.terraform.io/docs/providers/azurerm/guides/service_principal_client_secret.html

Example provider file.

cat provider.tf

provider "azurerm" {
    subscription_id = "5e1a2851-dontuse-my-secret-ids"
    client_id       = "cd80ecf8-dontuse-my-secret-ids"
    client_secret   = "getyourownclientsecret"
    tenant_id       = "1b4a4fed-thisis-mytenant-id"
    skip_provider_registration = true
}

Then stand it up.

terraform init
terraform apply --auto-approve

# Required to run it again to get the IP output to work for now.
terraform apply --auto-approve

Login w/ windows RDP client (Available in Mac App store)

Enter the creds and go code! Launch vs code + Powershell

# Make a new package
cd c:\
# Create a new package template 
choco new test2 -a --version 0.0.1 maintainername="'myusername'"
choco pack
choco push
choco install test2

Helpful Links

Choco docs

https://chocolatey.org/docs

example pkgs

https://github.com/liatrio/choco_poc

Helpers

https://chocolatey.org/docs/helpers-get-chocolatey-web-file

Recording Answer files

https://github.com/liatrio/choco_poc/blob/master/example_pkgs/AssetExplorer/tools/chocolateyinstall.ps1#L4-L13

PS C:\Users\azureuser\Downloads> .\ManageEngine_AssetExplorer_64bit.exe /r /f1"c:\setup.iss"

Troubleshooting errors

https://www.symantec.com/connect/articles/windows-system-error-codes-exit-codes-description

Install shield input flags

http://www.silentinstall.org/InstallShield

summary

https://www.itninja.com/blog/view/installshield-setup-silent-installation-switches

full list

https://www.itninja.com/static/090770319967727eb89b428d77dcac07.pdf

Destroy it when done

terraform destroy

choco_dev's People

Contributors

michaelarichard avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.