Skip to content

Instantly share code, notes, and snippets.

@bentterp
bentterp / keys.pub.bentterp
Last active May 11, 2020 03:51
keys.pub.bentterp
BEGIN MESSAGE.
iu5d4du5STcICti UkumbNpW33ooJ0F FKYYBB1NXu4rxvC NJKDPZvynoLBleZ
JDAJZkNuxCW6QuD lVZBMw3xtw3TCKq 6Xr2MZHgg6Q4sis l1GJQjJdgbRbqCX
nMa4Vv8E9OWvqVX NfTaQootMygtoLw SBQMMYCOxRktBQD ZjrAIR2Rqf5dh2d
PUjg9YHytm6s5Tg zyya1n4wEwebp44 DrAXd0Qz5Z.
END MESSAGE.
fbte61@SEA37LT16653:/c/Temp/openstack$ clear ; OS_DEBUG=1 TF_LOG=DEBUG terraform apply -auto-approve
2019/08/27 12:38:15 [INFO] Terraform version: 0.12.7
2019/08/27 12:38:15 [INFO] Go runtime version: go1.12.9
2019/08/27 12:38:15 [INFO] CLI args: []string{"/home/fbte61/.local/bin/terraform", "apply", "-auto-approve"}
2019/08/27 12:38:15 [DEBUG] Attempting to open CLI config file: /home/fbte61/.terraformrc
2019/08/27 12:38:15 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/08/27 12:38:15 [INFO] CLI command args: []string{"apply", "-auto-approve"}
2019/08/27 12:38:15 [DEBUG] New state was assigned lineage "cb6834ff-7b93-0548-6313-921ee305b52e"
2019/08/27 12:38:15 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2019/08/27 12:38:15 [DEBUG] checking for provider in "."
@bentterp
bentterp / crash.log
Created July 21, 2019 07:43
for_each
2019/07/21 09:34:01 [INFO] Terraform version: 0.12.4 dev
2019/07/21 09:34:01 [INFO] Go runtime version: go1.11.5
2019/07/21 09:34:01 [INFO] CLI args: []string{"/home/fbte61/.local/go/bin/terraform", "plan"}
2019/07/21 09:34:01 [DEBUG] Attempting to open CLI config file: /home/fbte61/.terraformrc
2019/07/21 09:34:01 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/07/21 09:34:01 [INFO] CLI command args: []string{"plan"}
2019/07/21 09:34:01 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/07/21 09:34:01 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2019/07/21 09:34:01 [DEBUG] New state was assigned lineage "e9f888c9-7688-f0f7-0f1f-c043380d3c84"
2019/07/21 09:34:01 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
@bentterp
bentterp / error.msg
Last active July 16, 2019 08:27
provisioning with ADE
VM has reported a failure when processing extension 'AzureDiskEncryptionForLinux'. Error message:
"Failed to enable the extension with error: No module named six, stack trace: Traceback (most recent call last):
File "/var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.39/main/handle.py", line 1948, in daemon
daemon_encrypt()
File "/var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.39/main/handle.py", line 1691, in daemon_encrypt
from oscrypto.ubuntu_1604 import Ubuntu1604EncryptionStateMachine
File "/var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.39/main/oscrypto/__init__.py", line 17, in <module>
from OSEncryptionStateMachine import *
File "/var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.39/main/oscrypto/OSEncryptionStateMachine.py", line 48, in <module>
from transitions import *
#!/bin/bash
wget -NP /tmp/ https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo apt install /tmp/packages-microsoft-prod.deb
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ bionic main" | sudo tee /etc/apt/sources.list.d/azure-cli.list
sudo apt-get -y update && sudo apt-get -y upgrade
sudo apt-get -y install azure-cli unzip
cat >> ~/.bashrc <<EOF
test -d ~/.ssh || mkdir ~/.ssh
if test -r ~/.ssh/ssh_agent.env ; then
SSH_AGENT_PID="1"
@bentterp
bentterp / terraform_installer.sh
Last active June 3, 2019 10:18
terraform_installer.sh
#!/bin/bash
#TFVER='0.12.0-rc1'
TFVER="$(curl -s https://releases.hashicorp.com/terraform/ | grep 'href="/terraform/' | head -n 1 | cut -d '/' -f 3)"
if ! test -d ${HOME}/.local/bin ; then
mkdir -p ${HOME}/.local/bin
fi
if ! echo $PATH | fgrep -q .local/bin ; then
echo 'test -d ${HOME}/.local/bin && export PATH=${HOME}/.local/bin:${PATH}' >> .bashrc
@bentterp
bentterp / build_azurerm_provider_for_0.12.bash
Created April 25, 2019 05:39
My shortcut to get an up2date version of the AzureRM provider for Terraform 0.12 until the regular release flow is in place
#!/bin/bash
cd $GOPATH/src/github.com/terraform-providers
test -d terraform-provider-azurerm && rm -rf terraform-provider-azurerm
git clone https://github.com/terraform-providers/terraform-provider-azurerm.git
cd terraform-provider-azurerm
rm -rf vendor
govendor init
govendor fetch github.com/hashicorp/terraform/...
govendor fetch +m
go build
@bentterp
bentterp / gist:1a2925508f5ed156a34f45d97731198f
Created February 8, 2019 12:44
terraform_remote_state shows the entire map, not just outputs
#######@######### MINGW64 /h/Documents/azure_devops/#######cloudcoe/azure_demos/module_demo_1/app1 (master)
$ TF_LOG=trace terraform apply
2019/02/08 13:29:27 [INFO] Terraform version: 0.12.0 1f4d2f4c5008cbf4e2da61b65f1cb98183bc4884
2019/02/08 13:29:27 [INFO] Go runtime version: go1.11.5
2019/02/08 13:29:27 [INFO] CLI args: []string{"C:\\Users\\#######\\terraform.exe", "apply"}
2019/02/08 13:29:27 [DEBUG] Attempting to open CLI config file: C:\Users\#######\AppData\Roaming\terraform.rc
2019/02/08 13:29:27 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/02/08 13:29:27 [INFO] CLI command args: []string{"apply"}
2019/02/08 13:29:27 [TRACE] Meta.Backend: built configuration for "azurerm" backend with hash value 3448258756

Keybase proof

I hereby claim:

  • I am bentterp on github.
  • I am bent (https://keybase.io/bent) on keybase.
  • I have a public key ASBeoaisv30Eq8W85J3A8cWgt4SRjszTc5bcHTimAW46mQo

To claim this, I am signing this object: