Code | Title | Duration | Link |
---|---|---|---|
Keynote | Andy Jassy Keynote Announcement Recap | 0:01 | https://www.youtube.com/watch?v=TZCxKAM2GtQ |
Keynote | AWS re:Invent 2016 Keynote: Andy Jassy | 2:22 | https://www.youtube.com/watch?v=8RrbUyw9uSg |
Keynote | AWS re:Invent 2016 Keynote: Werner Vogels | 2:16 | https://www.youtube.com/watch?v=ZDScBNahsL4 |
Keynote | [Tuesday Night Live with Jame |
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
import urlparse | |
from redis import Redis | |
from waldo.common import config | |
conf = config.current() | |
dbstring = conf['connection_string'] | |
dbstring = urlparse.urlparse(dbstring) | |
dbstring = "redis://" + dbstring.netloc + ":6329" |
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
# | |
# Function that stops the daemon/service | |
# | |
do_stop() | |
{ | |
if [ ! -e $PIDFILE ]; then | |
return 2 | |
fi | |
pid=`cat $PIDFILE` | |
children=$(ps axo pid,ppid | awk "{ if ( \$2 == $pid ) { print \$1 }}") |
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
SUITE_NAME=default | |
# create a bats subdirectory under your desired suite | |
mkdir -p test/integration/$SUITE_NAME/bats | |
# create an initial "canary" bats test file | |
# more examples at: | |
# * https://github.com/fnichol/chef-rvm/tree/master/test/integration/rubies/bats | |
# * https://github.com/fnichol/chef-ruby_build/tree/master/test/integration/alltherubies/bats | |
# * https://github.com/sstephenson/bats |
Fabric is a deployment management framework written in Python which makes remotely managing multiple servers incredibly easy. If you've ever had to issue a change to a group servers, this should look pretty familiar:
for s in $(cat servers.txt); do ssh $s service httpd graceful; done
Fabric improves on this process by providing a suite of functions to run commands on the servers, as well as a number of other features which just aren't possible in a simple for loop. While a working knowledge of Python is helpful when using Fabric, it certainly isn't necessary. This tutorial will cover the steps necessary to get started with the framework and introduce how it can be used to improve on administering groups of servers.
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
p = gem_package("nomnomnom-client") { action :nothing } | |
p.run_action(:install) | |
Gem.clear_paths | |
require 'nom_nom_nom' | |
nomnomnom_servers = [] | |
search(:node, "role:nomnomnom-server") do |server| | |
nomnomnom_servers << server[:ipaddress] | |
end |