Skip to content

Instantly share code, notes, and snippets.

@hingstarne
hingstarne / install_puppet_agent.sh
Last active December 10, 2015 08:08
Script to install puppet agent on a debian like system via the official repos from puppetlabs
#!/bin/bash
#
# Script to install puppet agent on a debian like system
# Copyright (C) 2012 Arne-Kristian Hingst - All Rights Reserved
# Permission to copy and modify is granted under the eupl license
# http://ec.europa.eu/idabc/servlets/Docbb6d.pdf?id=31979
# Last revised 12/30/2012
#
#Define your puppetmaster here
@hingstarne
hingstarne / install_solr4.sh
Last active December 12, 2015 03:28
Create a single server solr4 Installation on a debian like system After Installation it will respond under http://myserver:8080/solr4
#!/bin/bash
#
# Script to install a single server solr4 on a debian like system
# Copyright (C) 2013 Arne-Kristian Hingst - All Rights Reserved
# Permission to copy and modify is granted under the eupl license
# http://ec.europa.eu/idabc/servlets/Docbb6d.pdf?id=31979
# Last revised 02/05/2013
#
# Get distributor id
@hingstarne
hingstarne / xenserver_create_wheezy_template_64bit.sh
Created April 5, 2013 15:53
Script to install a debian wheezy template on xcp 1.1 and above, or Citrix (TM) Xenserver 5.6 and above.
#!/bin/bash
# Script to install a debian wheezy template on xcp 1.1 and above, or
# Citrix (TM) Xenserver 5.6 and above.
# Copyright (C) 2012 Arne-Kristian Hingst - All Rights Reserved
# Permission to copy and modify is granted under the eupl license
# http://ec.europa.eu/idabc/servlets/Docbb6d.pdf?id=31979
# Last revised 04/04/2013
#
# Add your favourite mirror here
@hingstarne
hingstarne / xenserver_create_tahr.sh
Created April 21, 2014 18:55
Script to install an ubuntu trusty tahr template on xenserver
#!/bin/bash
# Script to install a ubuntu trusty tahr 14.04 LTS template on xcp or
# Citrix (TM) Xenserver 5.6 and above.
# Copyright (C) 2014 Arne-Kristian Hingst - All Rights Reserved
# Permission to copy and modify is granted under the eupl license
# http://ec.europa.eu/idabc/servlets/Docbb6d.pdf?id=31979
# Last revised 04/20/2014
#
# Add your favourite mirror here
@hingstarne
hingstarne / xenserver_create_jessie_template_64bit.sh
Created May 15, 2018 10:46 — forked from jniltinho/xenserver_create_jessie_template_64bit.sh
Script to install a Debian Jessie 8.0 template on Xenserver 6.5
#!/bin/bash
## Script to install a Debian Jessie 8.0 template on Xenserver 6.5
## https://gist.github.com/hingstarne/5320400
# Add your favourite mirror here
MIRROR=http://ftp.us.debian.org/debian/
# No need to edit something below
#/usr/bin/env python3
import boto3
from termcolor import colored
subnetsIDs={}
ec2 = boto3.resource('ec2')
client = boto3.client('ec2')
response=client.describe_subnets()
for i in response['Subnets']: