Skip to content

Instantly share code, notes, and snippets.

View blkperl's full-sized avatar

William Van Hevelingen blkperl

View GitHub Profile
My notes on how capture a windows 7 image.
This requires Microsoft's Automated Deployment Kit
run setup.exe to start a fresh install of Windows 7
hit (control shift f3) at the new user screen (this will log you in as administer)
ignore the prompt
install drivers/software/updates (anything you want to be on the new image)
updates will require a reboot
after reboot run cmd.exe as admin
@blkperl
blkperl / gist:2202559
Created March 26, 2012 02:46
apt::source puppetlabs
apt::source { "puppetlabs":
include_src => true,
key => "4BD6EC30",
key_server => "pgp.mit.edu",
location => "http://apt.puppetlabs.com",
release => "${lsbdistcodename}",
repos => "main",
}
#!/bin/sh
cd $HOME/supernexus
branch="PECVD_Master"
lock="/tmp/githooklock"
if mkdir $lock; then
echo "Locking nexus superproject succeeded" >&2
else
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed
@blkperl
blkperl / gist:5059555
Created February 28, 2013 19:52
Invalid address from IPAddr.new puppet errors
# puppet agent --test --environment=blkperl_firewall2 --noop
[..]
Error: Could not prefetch firewall provider 'iptables': Invalid address from IPAddr.new: !
Error: /Firewall[241 ipv4 deny vnc ports for all]: Could not evaluate: Invalid address from IPAddr.new: !
Error: /Firewall[240 ipv4 allow vnc ports for localhost]: Could not evaluate: Invalid address from IPAddr.new: !
Error: /Firewall[240 ipv4 allow all ports for 208]: Could not evaluate: Invalid address from IPAddr.new: !
Error: /Firewall[240 ipv4 allow all ports for 10 net]: Could not evaluate: Invalid address from IPAddr.new: !
Error: /Firewall[240 ipv4 allow vnc ports for webmgr]: Could not evaluate: Invalid address from IPAddr.new: !
[..]
@blkperl
blkperl / gist:5067785
Created March 1, 2013 21:08
portal settings
postgres=# select name,setting || unit as setting from pg_settings where source != 'default';
name | setting
----------------------------+---------
application_name |
client_encoding |
config_file |
data_directory |
DateStyle |
default_text_search_config |
external_pid_file |
@blkperl
blkperl / gist:5101611
Last active December 14, 2015 14:38
Parallel pg_dump Patch Testing
@blkperl
blkperl / all.pp
Last active December 20, 2015 20:08
openstack::all
class cecs::role::openstack::all {
# assumes that eth0 is the public interface
$public_interface = 'eth0'
# assumes that eth1 is the interface that will be used for the vm network
# this configuration assumes this interface is active but does not have an
# ip address allocated to it.
$private_interface = 'br100'
$floating_network_range = '192.168.101.64/28'
class cecs::role::openstack::swift_proxy {
class { '::openstack::swift::proxy':
swift_user_password => hiera('swift_user_password'),
keystone_host => 'dagger.cat.pdx.edu',
memcached => true,
swift_memcache_servers => ['127.0.0.1:11211'],
memcached_listen_ip => '127.0.0.1'
}
class cecs::role::openstack::compute {
# assumes that eth0 is the public interface
$public_interface = 'eth0'
# assumes that eth1 is the interface that will be used for the vm network
# this configuration assumes this interface is active but does not have an
# ip address allocated to it.
$private_interface = 'br100'
$floating_network_range = '192.168.101.64/28'