This file contains hidden or 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
--- | |
# | |
# http://brandonhutchinson.com/wiki/%22No_rhnuuid_config_option_found_in_/etc/sysconfig/rhn/up2date-uuid.%22 | |
# UUID=$(uuidgen) ; /bin/echo -e "uuid[comment]=Universally Unique ID for this server\nrhnuuid=$UUID" > /etc/sysconfig/rhn/up2date-uuid | |
# | |
classes: | |
- apache | |
- apache::mod::ssl |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "CentOS-6.4-i386-minimal" | |
config.vm.define :mobiptm do |mobiptm_config| | |
mobiptm_config.vm.hostname = "mobiptm.vm.we.com" | |
mobiptm_config.vm.network :private_network, ip: "192.168.1.2" | |
This file contains hidden or 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.vm.provider :virtualbox do |vb| | |
# vb.gui = true | |
vb.customize ["modifyvm", :id, "--memory", "1024"] | |
#vb.customize ["modifyvm", :id, "--name", "mobiptm"] | |
end |
This file contains hidden or 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/sh | |
# File: /git/puppet.git/hooks/post-receive | |
#set -x | |
REPO="user@gitserver:/srv/git/hieradata.git" | |
DEPLOY="/somedir/puppet/hieradata" | |
SSH_ARGS="-i $HOME/.ssh/id_dsa_userkey" | |
PUPPETMASTER="user@masterserver" | |
SYNC_COMMAND="/script/git/scripts/puppet-sync" |
This file contains hidden or 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/sh | |
syntax_errors=0 | |
error_msg=$(mktemp /tmp/error_msg.XXXXXX) | |
if git rev-parse --quiet --verify HEAD > /dev/null | |
then | |
against=HEAD | |
else | |
# Initial commit: diff against an empty tree object |
This file contains hidden or 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
# Rakefile | |
require 'rubygems' | |
desc "Run puppet-lint." | |
task :lint do |t, args| | |
begin | |
require 'puppet-lint' | |
rescue LoadError | |
fail "Cannot load puppet-lint, please install gem : # gem install puppet-lint" | |
end |
This file contains hidden or 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
an_array: | |
- elem1 | |
- elem2 | |
a_hash: | |
key1: val1 | |
key2: | |
- key2arrayelem1 | |
- key2arrayelem2 |
This file contains hidden or 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
class facter::package ( $version = 'installed' ) { | |
package { 'facter' | |
ensure => $version; | |
} | |
} | |
This will lookup the version in Hiera | |
facter::package::version: 1.6 |
This file contains hidden or 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
[root@vooitop ~]# puppet apply test.pp | |
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults | |
Notice: bar 1 - baz | |
Notice: /Stage[main]/Foo/Notify[bar 1 - baz ]/message: defined 'message' as 'bar 1 - baz ' | |
Notice: Finished catalog run in 0.05 seconds |
This file contains hidden or 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
./json | |
./json/lib | |
./json/lib/json | |
./json/lib/json/common.rb | |
./json/lib/json/pure | |
./json/lib/json/pure/generator.rb | |
./json/lib/json/pure/parser.rb | |
./json/lib/json/pure.rb | |
./json/lib/json/version.rb | |
./json/lib/json.rb |