Skip to content

Instantly share code, notes, and snippets.

View viglesiasce's full-sized avatar

Vic Iglesias viglesiasce

View GitHub Profile
#!/bin/bash
###################################################################################################################################
# This script installs Motherbrain and Chef-zero on the sane machine and creates ~/.mb/config.json and ~/chef-repo/.chef/knife.rb
# configuration files
#
#
###################################################################################################################################
if rpm -q chefdk; then
echo "Chef DK already installed"
service 'apache2' do
action :restart
not_if 'echo `uptime | awk '{print $9}'`'>30'| bc'
end
#### Install Info
default["eucalyptus"]["install-type"] = "packages"
### Package repo info
default["eucalyptus"]["eucalyptus-repo"] = "http://downloads.eucalyptus.com/software/eucalyptus/4.0/centos/6/x86_64/"
default["eucalyptus"]["euca2ools-repo"] = "http://downloads.eucalyptus.com/software/euca2ools/3.1/centos/6/x86_64/"
default["eucalyptus"]["enterprise-repo"] = ""
default["eucalyptus"]["eucalyptus-gpg-key"] = "http://www.eucalyptus.com/sites/all/files/c1240596-eucalyptus-release-key.pub"
default["eucalyptus"]["euca2ools-gpg-key"] = "http://www.eucalyptus.com/sites/all/files/c1240596-eucalyptus-release-key.pub"
default["eucalyptus"]["epel-rpm"] = "http://downloads.eucalyptus.com/software/eucalyptus/3.4/centos/6/x86_64/epel-release-6.noarch.rpm"
# Software License Agreement (BSD License)
#
# Copyright (c) 2009-2011, Eucalyptus Systems, Inc.
# All rights reserved.
#
# Redistribution and use of this software in source and binary forms, with or
# without modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above
@viglesiasce
viglesiasce / scale-init.sh
Last active August 29, 2015 14:03
Scale System Init Script
#!/bin/bash
#
# configure vlan for Private VM network
#
IP=`ifconfig em1 | grep "inet " | awk '{ print $2 }' | awk '{sub("addr:","")}1'`
Octet3=`echo $IP | cut -d"." -f3`
Octet4=`echo $IP | cut -d"." -f4`
NewOctet3=$((Octet3 + 100))
IPADDR="172.16".$Octet3"."$Octet4
# Software License Agreement (BSD License)
#
# Copyright (c) 2009-2011, Eucalyptus Systems, Inc.
# All rights reserved.
#
# Redistribution and use of this software in source and binary forms, with or
# without modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above
# Software License Agreement (BSD License)
#
# Copyright (c) 2009-2014, Eucalyptus Systems, Inc.
# All rights reserved.
#
# Redistribution and use of this software in source and binary forms, with or
# without modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above
Listen 0.0.0.0:8888
<VirtualHost *:8888>
ProxyRequests off
ServerName d-12.qa1.eucalyptus-systems.com
<Proxy balancer://mycluster>
BalancerMember http://10.111.5.137:8888
BalancerMember http://10.111.5.138:8888
Order Deny,Allow
Deny from none
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
{
"eucalyptus": {
"yum-options": "--nogpg",
"eucalyptus-repo": "http://downloads.eucalyptus.com/software/eucalyptus/nightly/4.0/centos/6/x86_64/",
"euca2ools-repo": "http://downloads.eucalyptus.com/software/euca2ools/nightly/3.1/centos/6/x86_64/",
"install-load-balancer": false,
"install-imaging-worker": false,
"topology": {
"clc-1": "10.0.1.188",
"walrus": "10.0.1.188",