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
Installing Barracuda and Octopus | |
$ wget -q -U iCab http://files.aegir.cc/BOA.sh.txt | |
$ bash BOA.sh.txt | |
$ boa in-head public server.mydomain.org my@email o1 | |
Now simply watch the progress and choose some platforms to include. Done! | |
And how to upgrade Barracuda and all Octopus instances? |
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
server { | |
index index.php; | |
set $basepath "/var/www"; | |
set $domain $host; | |
# check one name domain for simple application | |
if ($domain ~ "^(.[^.]*)\.dev$") { | |
set $domain $1; | |
set $rootpath "${domain}"; |
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
unless node['platform'] == "debian" | |
log("recipe[debian::default] included in non-Debian platform. Skipping.") { level :warn } | |
return | |
end |
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
case node['platform'] | |
when 'debian' | |
apt_repository "dotdeb" do | |
uri "http://packages.dotdeb.org" | |
distribution "squeeze" | |
components ["all"] | |
key "http://www.dotdeb.org/dotdeb.gpg" | |
action :add | |
notifies :run, "execute[apt-get update]", :immediately | |
end |
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
# | |
# Cookbook Name:: redis | |
# Recipe:: default | |
# | |
case node["lsb"]["id"] | |
when "Debian" | |
apt_repository "dotdeb" do | |
uri "http://packages.dotdeb.org" | |
distribution node["lsb"]["codename"] |
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
# Sets up the repositories for stable 10gen packages found here: | |
# http://www.mongodb.org/downloads#packages | |
case node['platform_family'] | |
when "debian" | |
# Adds the repo: http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages | |
execute "apt-get update" do | |
action :nothing | |
end |
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
knife cookbook create <cookbook-name> | |
knife cookbook upload <cookbook-name> | |
knife cookbook delete <cookbook-name> | |
knife role from file <role-name.json|role-name.rb> |
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
ps -ef | gerp nginx |
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
grep mysql /var/log/syslog |
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
sudo service nginx start|stop|restart | |
sudo /etc/init.d nginx start|stop|restart |
OlderNewer