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
# | |
# httpd.rb - facter to show apache version | |
# | |
output=`/usr/sbin/httpd -v | sed 's/[://]/ /g' |awk '/version/ {print $4}'` | |
if output | |
Facter.add("apache") do | |
setcode do | |
output | |
end |
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
cat [LDIF_DIR]* | grep puppetVar | egrep -o ' .*=' |sort -u | sed 's/[= ]//g' |
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
C-x r t - insert char on entire selection | |
M-$ - flyspell the word the cursor is on (or near) | |
M-v - page up | |
X-m - smerge-mode (syntax highlight git merge conflicts) | |
(set-face-attribute 'default nil :height 100) - increase font size | |
prepend string - entire region | |
`M-x string-insert-rectangle RET` |
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
config_version = /usr/bin/git --git-dir /etc/puppet_[name]/.git describe --long |
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
$ cd ~/projects/puppet/modules/mymodule/manifests | |
$ sudo puppet apply --modulepath=~/projects/puppet/modules/ -e "include client" |
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
<!DOCTYPE> | |
<html> | |
<head><title>GA Dash Demo</title></head> | |
<body onload="chart1.render();" > | |
<!-- Add Google Analytics authorization button --> | |
<button id="authorize-button" style="visibility: hidden"> | |
Authorize Analytics</button> | |
<!-- Div element where the Line Chart will be placed --> |
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
rspec --color --format documentation spec/classes/rule_spec.rb |
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
# puppet-cloudbackup Example usage | |
class rackspace_backup { | |
class {'cloudbackup': | |
username => 'myusername', | |
api_key => 'xxxxxxxxxxxxxxxxxxxx', | |
} | |
} |
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
[puppetlabs] | |
name=Puppet Labs Packages | |
baseurl=http://yum.puppetlabs.com/el/$releasever/products/$basearch/ | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs |
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
# Get expiration date date of SSL Cert from website | |
echo '' | openssl s_client -connect www.avatarnewyork.com:443 2>>/dev/null | openssl x509 -dates | grep "notAfter" | cut -d= -f 2 |
OlderNewer