This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Timestamp Thread Type Activity PID TTL | |
2020-01-21 10:50:22.128621-0800 0x1afd5 Default 0x0 1899 0 AutoMounter: (libswiftFoundation.dylib) Share: 'granite' changed state to: 'unmounted' | |
2020-01-21 10:50:22.128650-0800 0x1afd5 Default 0x0 1899 0 AutoMounter: Share: 'zen' cancelling mount request | |
2020-01-21 10:50:22.128677-0800 0x1afd5 Default 0x0 1899 0 AutoMounter: (libswiftFoundation.dylib) Share: 'zen' changed state to: 'unmounted' | |
2020-01-21 13:13:00.257516-0800 0x1afd5 Default 0x38196 1899 0 AutoMounter: (libswiftFoundation.dylib) Share: 'zen' set to paused: true | |
2020-01-21 13:13:01.371120-0800 0x1afd5 Default 0x38199 1899 0 AutoMounter: (libswiftFoundation.dylib) Share: 'zen' set to paused: false | |
2020-01-21 13:13:19.641063-0800 0x1afd5 Default 0x45272 1899 0 AutoMounter: (libswiftFoundation.dylib) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "vault_jwt_auth_backend" "oidc" { | |
description = "vault + OKTA + oidc" | |
path = "oidc" | |
type = "oidc" | |
oidc_discovery_url = "${var.OKTA_URL}" | |
oidc_client_id = "${var.OKTA_CLIENT_ID}" | |
oidc_client_secret = "${var.OKTA_CLIENT_SECRET}" | |
bound_issuer = "${var.OKTA_URL}" | |
default_role = "oidc" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
choco install -y openssh -params '"/SSHServerFeature"' -force | |
New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force | |
New-Item -ItemType "directory" -Path "c:\Users\Administrator\.ssh" -ErrorAction 0 | |
Set-Content -Path c:\Users\Administrator\.ssh\authorized_keys -Value 'ssh-ed25519 AAAAC3NzaC1lUSEYOUROWNKEN+WQwgLuE0g4aK' | |
& "C:\Program Files\OpenSSH-Win64\FixHostFilePermissions.ps1" | |
& "C:\Program Files\OpenSSH-Win64\FixUserFilePermissions.ps1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
shopt -s nullglob | |
shopt -s nocaseglob | |
# kill subprocesses if you kill this script | |
handle_sigint() { | |
for proc in $(jobs -p); do | |
kill $proc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "powershell", | |
"script": "scripts/wsl.ps1", | |
"remote_path": "c:/Windows/temp/wsl.ps1" | |
}, | |
{ | |
"type": "windows-restart" | |
}, | |
{ | |
"type": "powershell", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start-transcript -path c:\windows\temp\wsl.log -append | |
$ProgressPreference = 'SilentlyContinue' | |
if ((Get-WindowsOptionalFeature -FeatureName VirtualMachinePlatform -online -ErrorAction SilentlyContinue).State -eq 'Enabled') { | |
write-output "Setting WSL 2 as default version" | |
wsl --set-default-version 2 | |
Write-Output "Downloading ubuntu1804" | |
Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile c:\windows\temp\ubuntu1804.zip -UseBasicParsing | out-null | |
Write-Output "Expanding ubuntu1804" | |
Expand-Archive c:\windows\temp\ubuntu1804.zip 'c:\Program Files\Ubuntu1804' -Force | |
write-output "Installing the ubuntu1804 distro" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
jq -Rn "{"vault_addr": \"$VAULT_ADDR\","vault_namespace": \"$VAULT_NAMESPACE\"}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "vault" {} | |
# Run helper script to slurp up environment variables | |
data "external" "vault_info" { | |
program = ["bash","grab_vars.sh" ] | |
} | |
# output the vault_addr for debugging | |
output "Vault Address" { | |
value = "${data.external.vault_info.result.vault_addr}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018/11/01 10:36:58 [INFO] Packer version: 1.3.2 | |
2018/11/01 10:36:58 Packer Target OS/Arch: linux amd64 | |
2018/11/01 10:36:58 Built with Go Version: go1.11.1 | |
2018/11/01 10:36:58 Detected home directory from env var: /home/bgarner | |
2018/11/01 10:36:58 Using internal plugin for alicloud-ecs | |
2018/11/01 10:36:58 Using internal plugin for amazon-instance | |
2018/11/01 10:36:58 Using internal plugin for cloudstack | |
2018/11/01 10:36:58 Using internal plugin for file | |
2018/11/01 10:36:58 Using internal plugin for lxc | |
2018/11/01 10:36:58 Using internal plugin for null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018/11/01 10:17:52 [INFO] Packer version: 1.3.2 | |
2018/11/01 10:17:52 Packer Target OS/Arch: linux amd64 | |
2018/11/01 10:17:52 Built with Go Version: go1.11.1 | |
2018/11/01 10:17:52 Detected home directory from env var: /home/bgarner | |
2018/11/01 10:17:52 Using internal plugin for cloudstack | |
2018/11/01 10:17:52 Using internal plugin for hyperv-vmcx | |
2018/11/01 10:17:52 Using internal plugin for lxd | |
2018/11/01 10:17:52 Using internal plugin for vmware-vmx | |
2018/11/01 10:17:52 Using internal plugin for alicloud-ecs | |
2018/11/01 10:17:52 Using internal plugin for amazon-ebssurrogate |