This file contains 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
######### CREATE A SERVICE ################# | |
configure | |
service | |
add “SMTPS_587_TCP” | |
ip-type 6 | |
port-begin 587 | |
port-end 587 | |
end | |
finished |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am mmm on github. | |
* I am m_3 (https://keybase.io/m_3) on keybase. | |
* I have a public key whose fingerprint is 0D9E DC5F 633B 05D4 7633 42C3 76D4 635F B2A3 4D75 | |
To claim this, I am signing this object: |
This file contains 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 | |
RELEASE_CODE=`lsb_release -a | awk '/Codename/ { print $2 }'` | |
add-apt-repository "deb http://archive.canonical.com/ ${RELEASE_CODE} partner" | |
apt-get update | |
apt-get -y install -qq --no-install-recommends debconf-utils | |
echo "sun-java6-plugin shared/accepted-sun-dlj-v1-1 boolean true" | debconf-set-selections | |
DEBIAN_FRONTEND=noninteractive apt-get -y install -qq sun-java6-jdk |
This file contains 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
# install juju | |
$ sudo apt-get install juju charm-tools | |
configure your EC2 account... | |
$ juju | |
$ vi .juju/environments.yaml | |
add EC2 access/secret keys |
This file contains 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
# Generated by juju | |
<% active_backends.each do |server_name, server_info| %> | |
backend <%= server_name %> { | |
.host = "<%= server_info[:address] %>"; | |
.port = "<%= server_info[:port] %>"; | |
} | |
<% end %> | |
director baz round-robin { |
This file contains 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
# cheetah from the command line... | |
Template file: | |
hawk:~ $ cat junk.file | |
This is a file | |
With a $stupid_variable to expand | |
and maybe a common one like $HOME |
This file contains 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 | |
echo "deploying stack" | |
deploy_ha_mysql() { | |
juju deploy mysql masterdb | |
juju deploy mysql slavedb -n2 | |
juju add-relation masterdb:master slavedb:slave | |
} |
This file contains 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
# | |
# move the following into lib/state_machine.rb or something? | |
# Also, the state transitions are not really atomic... | |
# works fine for now, but should fix eventually | |
# | |
%w( | |
new | |
validating | |
valid | |
invalid |
This file contains 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 | |
juju_root=$HOME | |
juju_env=${1:-"-ecanonical"} | |
### | |
echo "deploying stack" | |
juju bootstrap $juju_env |
This file contains 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 | |
# hadoop | |
juju deploy hadoop hadoop-master | |
juju deploy hadoop hadoop-slave -n12 | |
juju add-relation hadoop-master:namenode hadoop-slave:datanode | |
juju add-relation hadoop-master:jobtracker hadoop-slave:tasktracker | |
# instrument hadoop-slave | |
juju deploy ganglia-node |
OlderNewer