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
#!/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 |
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
#!/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 |
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
#!/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 |
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
#!/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 |
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
#!/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 | |
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 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']: |