Install the OpenSSL on Debian based systems
sudo apt-get install openssl
I’m an intermediate/advanced chef user. My main usage has been as a client of the services that chef provides, and not operating the server. My comfort zone is that I am very happy to write and hack on fairly complicated chef cookbooks, LWRPs, and chef-solo work, but I don’t work much with the chef server - I’ve opted to use the hosted service in the past, and very much enjoyed the service.
I’m interested in saltstack. When I first started working with chef in 2011, saltstack was very new, so I learned chef, as the more mature option (though it was still fairly new). Now salt is in a fairly mature phase where it seems to be able to handle the same classes of installation and configuration management that I’ve seen chef work with in the past. This impression is backed up by users of Salt who are clearly using it in their day-to-day operations. So I’m trying it out.
#!/usr/bin/env sh | |
set -e | |
# set -x | |
set -o pipefail | |
die() { echo "$@" 1>&2 ; exit 1; } | |
# ======================================================================== | |
# Initialization |
import boto | |
import boto.s3 | |
import os.path | |
import sys | |
# Fill these in - you get them when you sign up for S3 | |
AWS_ACCESS_KEY_ID = '' | |
AWS_ACCESS_KEY_SECRET = '' | |
# Fill in info on data to upload |
rsync (Everyone seems to like -z, but it is much slower for me)
#!/usr/bin/env ruby | |
# | |
# Script to decrypt (and reencrypt) Linksys EA3500 v1.0 configuration file backups, e.g., | |
# Linksys_EA3500V1_v1.0.30.126544.cfg . The result of decryption is a plain text nvram dump that | |
# can be edited, re-encrypted, and uploaded back into the router. | |
# | |
# Depends on Ruby 1.9 and an openssl command line binary. | |
require 'optparse' | |
require 'tempfile' |