- set up network with nmcli/nmtui/whatever
- sudo yum update
- sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
View devcontainer.json
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | |
// https://github.com/microsoft/vscode-dev-containers/tree/v0.163.1/containers/debian | |
{ | |
"name": "pyspark", | |
"image": "jupyter/pyspark-notebook", | |
// Set *default* container specific settings.json values on container create. | |
"settings": { | |
"terminal.integrated.shell.linux": "/bin/bash" | |
}, |
View .env.example
LOCATION=uksouth | |
RESOURCE_GROUP_NAME=webapp-config-demo | |
SERVICE_PLAN_NAME=app-service-plan-free-wp | |
SERVICE_PLAN_SKU=FREE | |
WEB_APP_NAME=mywpsite-ahfdskf | |
MARIADB_SKU=B_Gen5_1 | |
MARIADB_SERVER_NAME=dbserver-ahfdskf | |
MARIADB_ADMIN_USER=BOSS_HOGG | |
MARIADB_ADMIN_PASSWORD=R05coePColtrane | |
WORDPRESS_DB_NAME=wpdb |
View gist:72a485049ab2b0dba3ea34655607b5c3
sed -i 's/!\[\(.*\)\] \?(https:\/\/.*\/\(.*\))/{{< figure src="\2" caption="\1" >}}/g' index.md |
View steps.md
View azuredeploy.json
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json", | |
"contentVersion": "0.0.0.1", | |
"parameters": { | |
"vnetName": { | |
"type": "string" | |
}, | |
"vnetAddressPrefix": { | |
"type": "string" | |
}, |
View sql-2019-win-2019.json
{ | |
"variables": { | |
"build_location": "uksouth", | |
"build_vm_size": "Standard_DS2_v2", | |
"sp_client_id": "{{env `PACKER_CLIENT_ID`}}", | |
"sp_client_secret": "{{env `PACKER_CLIENT_SECRET`}}", | |
"sp_tenant_id": "{{env `PACKER_TENANT_ID`}}", | |
"sp_subscription_id": "{{env `PACKER_SUBSCRIPTION_ID`}}", | |
"output_resource_group" : "packer-vm-images", | |
"output_image_name_prefix" : "sql-2019-win-2019" |
View DispDev2019Notes.md
By Other People
Using Pester for Infrastructure Tests
Blog Entry by Rob Sewell with link to conference talk
Azure RM Templates
Cheat sheet for retrieving output values from ARM Resources by Justin Yoo
Azure DevOps Extensions
View WinRM-HTTPS.ps1
Write-Output "Disabling WinRM over HTTP..." | |
Disable-NetFirewallRule -Name "WINRM-HTTP-In-TCP" | |
Disable-NetFirewallRule -Name "WINRM-HTTP-In-TCP-PUBLIC" | |
Get-ChildItem WSMan:\Localhost\listener | Remove-Item -Recurse | |
Write-Output "Configuring WinRM for HTTPS..." | |
Set-Item -Path WSMan:\LocalHost\MaxTimeoutms -Value '1800000' | |
Set-Item -Path WSMan:\LocalHost\Shell\MaxMemoryPerShellMB -Value '1024' | |
Set-Item -Path WSMan:\LocalHost\Service\AllowUnencrypted -Value 'false' | |
Set-Item -Path WSMan:\LocalHost\Service\Auth\Basic -Value 'true' |
View InstallHaProxy.sh
#!/bin/bash | |
### VARIABLES ### | |
PRE_PACK="openssl-devel pcre-devel make gcc" | |
VER="1.8.14" | |
# Setup Colours | |
black='\E[30;40m' | |
red='\E[31;40m' | |
green='\E[32;40m' |
View packer-iam-policy.json
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"ec2:AttachVolume", | |
"ec2:AuthorizeSecurityGroupIngress", | |
"ec2:DeregisterImage", |
NewerOlder