Skip to content

Instantly share code, notes, and snippets.

View autotune's full-sized avatar

Brian Adams autotune

View GitHub Profile
@autotune
autotune / aws_cli_install.tf
Created September 1, 2023 16:47 — forked from denniswebb/aws_cli_install.tf
Terraform module to install aws cli for Terraform Enterprise (Atlas)
data "template_file" "main" {
template = <<EOF
set -e
WORKDIR=/tmp/${uuid()}
mkdir -p "$WORKDIR"
cd "$WORKDIR"
curl -f "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
./awscli-bundle/install -i "$WORKDIR"/aws
@autotune
autotune / commands.sh
Created June 3, 2023 01:48
hipster shop
# we take the frontend hipster shop at https://github.com/GoogleCloudPlatform/microservices-demo/blob/main/helm-chart/templates/frontend.yaml
# and demonstrate how to deploy it through helm in Argo Rollouts
helm install sockshop ./ -nsockshop --set images.tag=v0.6.0
helm upgrade sockshop ./ -nsockshop --set images.tag=v0.7.0
kubectl argo rollouts get rollout frontend -nsockshop --watch
# confirm current version of site running in external elb
@autotune
autotune / commands.txt
Last active June 3, 2023 01:44
Hipster Shop Argo Rollouts
# we take the frontend hipster shop at https://github.com/GoogleCloudPlatform/microservices-demo/blob/main/helm-chart/templates/frontend.yaml
# and demonstrate how to deploy it through helm in Argo Rollouts
helm install sockshop ./ -nsockshop --set images.tag=v0.6.0
helm upgrade sockshop ./ -nsockshop --set images.tag=v0.7.0
kubectl argo rollouts get rollout frontend -nsockshop --watch
# confirm current version of site running in external elb
package main
import (
"fmt"
"os"
"time"
"github.com/fakovacic/amadeus"
)
func main() {
#---------------------------------------------------------------------
# Example configuration for a possible web application. See the
# full configuration options online.
#
# http://haproxy.1wt.eu/download/1.4/doc/configuration.txt
#
#---------------------------------------------------------------------
#---------------------------------------------------------------------
# Global settings
@autotune
autotune / gist:b03aadf32f9e79c00309
Created May 28, 2014 23:35
Gemfile - test-kitchen
source 'https://rubygems.org'
gem 'berkshelf'
group :plugins do
gem "vagrant-berkshelf", github: "berkshelf/vagrant-berkshelf"
gem "vagrant-omnibus", github: "schisamo/vagrant-omnibus"
end
gem 'test-kitchen'
gem 'kitchen-vagrant'
autotune/centos65
---
driver:
name: rackspace
rackspace_username: ""
rackspace_api_key: ""
require_chef_omnibus: "latest"
rackspace_region: "ORD"
provisioner:
name: "chef_solo"
---
driver:
name: vagrant
provisioner:
name: chef_solo
platforms:
- name: centos65
subnet 172.16.252.0 netmask 255.255.255.0 {
range 172.16.252.128 172.16.252.254;
option broadcast-address 172.16.252.255;
option domain-name-servers 172.16.252.2;
option domain-name localdomain;
default-lease-time 1800; # default is 30 minutes
max-lease-time 7200; # default is 2 hours
option netbios-name-servers 172.16.252.2;
option routers 172.16.252.2;
}