18F / azure-sandbox

Temporary home for deploying services into Azure: reliably, repeatably, compliantly
Other
17 stars 8 forks source link

As a sandbox user, I should be able to install Java/Jenkins on a Win2012R2 box #4

Open pburkholder opened 7 years ago

pburkholder commented 7 years ago

Old title: Experiment with Java/Jenkins install and Azure automation

pburkholder commented 7 years ago

1 - pinged Matt McElreath about Chef v. DSC https://twitter.com/pburkholder/status/774275050463780864

pburkholder commented 7 years ago

Checking Runbook and DSC Galleries - https://azure.microsoft.com/en-us/documentation/articles/automation-runbook-gallery/

pburkholder commented 7 years ago

Some interesting PowerShell workflows:

pburkholder commented 7 years ago

https://www.powershellgallery.com/packages?q=Tags%3A%22DSC%22 - community / Microsoft provided resources on provided

Some examples:

pburkholder commented 7 years ago

http://stackoverflow.com/questions/31562451/installing-jre-using-powershell-dsc-hangs

xRemoteFile javaInstaller {
        DestinationPath = (Join-Path $localDscFileDir "Java\jreInstaller.exe")
        Uri = "http://javadl.oracle.com/webapps/download/AutoDL?BundleId=211999"
    }
    Package java8
    {
        Ensure = 'Present'
        Name = 'Java 8'
        Path = (Join-Path $localDscFileDir "Java\jreInstaller.exe")
        Arguments = '/s REBOOT=0 SPONSORS=0 REMOVEOUTOFDATEJRES=1 INSTALL_SILENT=1 AUTO_UPDATE=0 EULA=0 /l*v "C:\DscFiles\Java\jreInstaller.exe.log"' #From https://powershell.org/forums/topic/issue-installing-java-32-bit-using-package-resource/#post-39206
        ProductId = '26A24AE4-039D-4CA4-87B4-2F64180101F0'
        DependsOn = @("[xRemoteFile]javaInstaller")         
    }