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
# | |
# Only run ssh stuff if this is a login shell.. | |
if [ ! -z "$PS1" -a ! -z "$SSH_TTY" ] | |
then | |
# This is where the ssh-agent environment settings | |
# are pulled in from | |
~/bin/ssh-agent-env | |
echo > /dev/null | |
if [ "$TERM" != "screen" ] |
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
define execcreates( $creates, $cwd ) | |
{ | |
$command = $name | |
exec { "$command": | |
creates => $creates, | |
cwd => $cwd, | |
} | |
file { "$creates": |
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
#!/bin/bash | |
# | |
# This script requires xpath to parse part of the dnscurl.pl output | |
# on CentOS/RedHat/Amazon Linux: | |
# | |
# sudo yum install perl-XML-XPath | |
# | |
# also, dnscurl.pl (from http://aws.amazon.com/code/Amazon-Route-53/9706686376855511) | |
# expects your secrets to be in ~/.aws-secrets | |
# using a file format like this (from http://dmz.us/wp/wp-content/uploads/r53/aws-secrets.txt) |
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
define user::localuser ( $email, $uid, $password, $key_type, $key = 'missing') { | |
$username = $title | |
# Create the user. This is where most of the magic happens. | |
user { $username: | |
comment => $email, | |
home => "/home/${username}", | |
shell => '/bin/bash', | |
password=> $password, |
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
16:07:02: handleConnectivityForAccount: <ESIRCAccount:3178ea0 3>:simonmcc_freenode reachable: 1 | |
16:07:02: <ESIRCAccount:3178ea0 3>:simonmcc_freenode: Original image of size 128.000000 128.000000 | |
16:07:02: -[CBPurpleAccount setAccountUserImage:withData:]:2717: <ESIRCAccount:3178ea0 3>:simonmcc_freenode: Setting icon data of length 0 | |
16:07:02: <ESIRCAccount:3178ea0 3>:simonmcc_freenode: Updating status for key: User Icon | |
16:07:02: Adium: Connect: simonmcc_freenode initiating connection using status state <AIStatus: 4eebfb0 [Available]> ((null)). | |
16:07:02: Setting status on fb75d90 (simonmcc_freenode@irc.ircrelay.com): ID available, isActive 1, attributes { | |
} | |
16:07:02: (Libpurple: account) Connecting to account simonmcc_freenode@irc.ircrelay.com. | |
16:07:02: (Libpurple: connection) Connecting. gc = 0x11ac09660 |
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
16:14:47: -[AIAccount(Abstract) retrievePasswordThenConnect]:448: Retrieving <ESIRCAccount:3178ea0 3>:simonmcc_freenode's password (promptOption 2) | |
16:14:47: handleConnectivityForAccount: <ESIRCAccount:3178ea0 3>:simonmcc_freenode reachable: 1 | |
16:14:47: Created PurpleAccount 0xfb1bb20 with UID simonmcc_freenode and protocolPlugin prpl-irc | |
16:14:47: Created PurpleAccount 0xfb1bb20 with UID simonmcc_freenode, protocolPlugin prpl-irc | |
16:14:47: <ESIRCAccount:3178ea0 3>:simonmcc_freenode: Original image of size 128.000000 128.000000 | |
16:14:47: -[CBPurpleAccount setAccountUserImage:withData:]:2717: <ESIRCAccount:3178ea0 3>:simonmcc_freenode: Setting icon data of length 0 | |
16:14:47: <ESIRCAccount:3178ea0 3>:simonmcc_freenode: Updating status for key: User Icon | |
16:14:47: Adium: Connect: simonmcc_freenode initiating connection using status state <AIStatus: 4eebfb0 [Available]> ((null)). | |
16:14:47: Setting status on fb1bb20 (simonmcc_freenode@irc.ircrelay.com): ID available, isActive 1, attributes { |
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
Setting up python-moniker (0.0.235.b5ecff2-7) ... | |
Setting up moniker-common (0.0.235.b5ecff2-7) ... | |
Adding system user `moniker' (UID 108) ... | |
Adding new user `moniker' (UID 108) with group `moniker' ... | |
Not creating home directory `/var/lib/moniker'. | |
Setting up moniker-central (0.0.235.b5ecff2-7) ... | |
moniker-central start/running, process 22273 | |
Creating config file /etc/moniker/moniker-central.conf with new version |
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
# | |
# Manage the skel directory. | |
# | |
file { '/etc/skel/': | |
source => 'puppet:///modules/users/etc/skel', | |
ensure => directory, | |
recurse => true, | |
purge => true, | |
force => true, |
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
diff --git a/designate/schema.py b/designate/schema.py | |
index f813a30..c1c1907 100644 | |
--- a/designate/schema.py | |
+++ b/designate/schema.py | |
@@ -109,6 +109,14 @@ class SchemaValidator(jsonschema.Draft3Validator): | |
if instance == '0.0.0.0': # RFC5735 | |
msg = "%s is not an IPv4 address" % (instance) | |
yield jsonschema.ValidationError(msg) | |
+ # is it a dotted quad & all 4 fields <= 255 | |
+ m = re.match('(\d+)\.(\d+)\.(\d+)\.(\d+)$', instance) |
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
#!/bin/bash | |
# | |
# Upload that bloody cookbook, even if knife thinks it's not a cookbook | |
# | |
abspath () { | |
case "$1" in | |
/*)printf "%s\n" "$1";; | |
*)printf "%s\n" "$PWD/$1";; | |
esac | |
} |