Skip to content

Instantly share code, notes, and snippets.

View glarizza's full-sized avatar

Gary Larizza glarizza

  • Open Infrastructure Services
  • Portland, Oregon
View GitHub Profile
@glarizza
glarizza / Vagrant.out
Created May 24, 2011 01:00
Vagrant Output for matching nodes
garys-mbp:mcollective-demo gary$ vagrant up b
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/kramdown-0.13.3.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/RedCloth-4.2.7.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rubygems-update-1.8.3.gemspec:11.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/slideshow-0.9.5.gemspec:10.
NOTE: Gem::Sp
@glarizza
glarizza / debian_mc_vagrant_fail.txt
Created May 24, 2011 17:12
Debian failures in doing vagrant up with the MC Module
garys-mbp:mcollective-demo gary$ vagrant up
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/kramdown-0.13.3.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/RedCloth-4.2.7.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/rubygems-update-1.8.3.gemspec:11.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /Library/Ruby/Gems/1.8/specifications/slideshow-0.9.5.gemspec:10.
NOTE: Gem::Spec
@glarizza
glarizza / Vagrant_error.txt
Created May 24, 2011 18:12
Vagrant Failure
##Error
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
sudo sed -e '/^#VAGRANT-BEGIN/,/^#VAGRANT-END/ d' /etc/sysconfig/network-scripts/ifcfg-eth1 > /tmp/vagrant-ifcfg-eth1
The output of the command prior to failing is outputted below:
sed: can't read /etc/sysconfig/network-scripts/ifcfg-eth1: No such file or directory
@glarizza
glarizza / gist:1001326
Created May 31, 2011 21:32
Repos for Vagrant
class vagrant::aptitude {
exec { 'aptitude_update':
command => 'aptitude update',
refreshonly => true,
path => '/bin:/usr/bin:/sbin:/usr/sbin',
}
file { 'kumina_repo':
ensure => file,
@glarizza
glarizza / gist:1036702
Created June 20, 2011 21:59
passenger vhost config
# this is totally hardcoded for both the ruby and puppet version
LoadModule passenger_module <%= gem_path %>passenger-<%= passenger_version %>/ext/apache2/mod_passenger.so
PassengerRoot <%= gem_path %>passenger-<%= passenger_version %>
PassengerRuby /usr/bin/ruby
# you probably want to tune these settings
PassengerHighPerformance on
PassengerMaxPoolSize 12
PassengerPoolIdleTime 1500
# PassengerMaxRequests 1000
host-246-232:puppet-2.7.1 gary$ find lib/puppet -type f -perm 775
lib/puppet/daemon.rb
lib/puppet/external/base64.rb
lib/puppet/external/nagios/base.rb
lib/puppet/external/nagios.rb
lib/puppet/network/authstore.rb
lib/puppet/network/handler/filebucket.rb
lib/puppet/network/handler/fileserver.rb
lib/puppet/network/handler/report.rb
lib/puppet/network/handler/runner.rb
include /usr/local/share/luggage/luggage.make
TITLE=Puppet_Installer
REVERSE_DOMAIN=com.puppetlabs
PAYLOAD=pack-etc-puppet \
pack-usr-bin-puppet \
pack-usr-sbin-puppet \
pack-usr-sharedoc-puppet \
pack-usr-rubylib-puppet \
pack-puppet-preflight
lsbom -p fmUG /tmp/the_luggage/Puppet_Installer-`date +%Y%m%d`/payload/Puppet_Installer-`date +%Y%m%d`.pkg/Contents/Archive.bom
. 40755 root admin
./etc 40755 root wheel
./private 40755 root admin
./private/etc 40755 root admin
./private/etc/puppet 40755 root wheel
./private/etc/puppet/auth.conf 100664 root wheel
./usr 40755 root wheel
./usr/bin 40755 root wheel
./usr/bin/filebucket 100755 root wheel
## Running from puppet root
┌(3312) [gary@garys-mbp] [puppet: 2.7.7] [ centos-5.7-pe-2.0.0-vmware.vmx ] [master] [1]
└(~/Desktop/puppet)▷ sudo conf/osx/createpackage.sh
Password:
Installing Puppet to /tmp/puppetpkg.TDQd4Uat
conf/auth.conf -> /tmp/puppetpkg.TDQd4Uat/etc/puppet/auth.conf
chmod 0644 /tmp/puppetpkg.TDQd4Uat/etc/puppet/auth.conf
install -c -m 0755 /tmp/_tmp /tmp/puppetpkg.TDQd4Uat/usr/sbin/puppetca
install -c -m 0755 /tmp/_tmp /tmp/puppetpkg.TDQd4Uat/usr/sbin/puppetd
@glarizza
glarizza / gist:1445481
Created December 8, 2011 00:24
OS X Lion Password Hash Instructions

Password Hash Accessing:

  • Grab plist file from /var/db/dslocal/nodes/Default/users/username.plist

  • Convert to xml

      plutil -convert xml1 username.plist
    
  • Grab the ShadowHashData key and base64 decode it (install base64 with port install base64)

      echo "Data from ShadowHashData Key" | base64 -d > ShadowHashData
    
  • Convert the resultant binary plist file into xml