nimbus.psm1
# Pre flight check [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 # Constants if ( $PSPrivateMetadata.JobId ) { $inRunbook = $true } else { $inRunbook = $false } $mapper = @{ portal_nimbload_com = @{ domain = "portal.nimbload.com" nimbusAppId = "fcd10a57-f204-4af7-bb47-b6495670462d" mediaBotId = "56293561-693e-4ab3-9295-5b8b4102ad1c" } portal_luware_cloud = @{ domain = "portal.luware.cloud" nimbusAppId = "af85ba37-5817-43d6-82e7-09004f08664e" mediaBotId = "1faac6c7-fb8f-4352-8586-a5518cfa8bc9" } portal_stage_nimbdev_com = @{ domain = "portal.stage.nimbdev.com" nimbusAppId = "589f73f5-5ef7-4d2e-820a-a6b14cc98bca" mediaBotId = "56293561-693e-4ab3-9295-5b8b4102ad1c" } portal_uat_nimbdev_com = @{ domain = "portal.uat.nimbdev.com" nimbusAppId = "975f5ad4-684c-4879-b7ef-6b25eb1b5bd6" mediaBotId = "56293561-693e-4ab3-9295-5b8b4102ad1c" } } # Set-StrictMode -Version Latest $ProgressPreference = "SilentlyContinue" $ErrorActionPreference = "Stop" $PSDefaultParameterValues["*:ErrorAction"] = "Stop" $PSDefaultParameterValues["Invoke-WebRequest:UseBasicParsing"] = $true Get-ChildItem -Path $PSScriptRoot\*.ps1 -Recurse -Exclude *tests*,*artifacts* | ForEach-Object { . $_.FullName } Export-ModuleMember ` -Variable mapper, inRunbook ` -Function "Update-NimbusDependencies", "New-NimbusEnvironment" |