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
$ mkdir temp | |
$ cd temp | |
$ curl -O http://downloads.puppetlabs.com/mcollective/mcollective-1.3.3.tgz | |
$ tar -xvzf mcollective-1.3.3.tgz | |
$ cd mcollective-1.3.3 | |
$ cp etc/client.cfg.dist ~/.mcollective | |
# edit ~/.mcollective set libdir to /Users/rip/temp/mcollective-1.3.3/plugins and a few other bits like set plugin.yaml to /Users/rip/temp/mcollective-1.3.3/etc/facts.yaml.dist for a client its irrelevant just needs to be there | |
$ PATH=$PATH:/Users/rip/temp/mcollective-1.3.3/bin | |
$ export RUBYLIB=/Users/rip/temp/mcollective-1.3.3/lib | |
$ mco ping |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
my $file = $ARGV[0] or die('Must pass an apache access logfile'); | |
open IN, "<$file" or die("Can't open $file"); |
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
Vagrant.configure("2") do |config| | |
config.vm.box = 'centos-65-x64-virtualbox-puppet' | |
config.vm.box_url = 'http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-puppet.box' | |
config.vm.synced_folder "./hiera", "/hiera" | |
config.vm.define :stditop do |config| | |
config.vm.hostname = "fqdn.com" | |
config.vm.network :private_network, ip: "192.168.11.171" |
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/bash | |
# (optional) You might need to set your PATH variable at the top here | |
# depending on how you run this script | |
#PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
# Hosted Zone ID e.g. BJBK35SKMM9OE | |
ZONEID="enter zone id here" | |
# The CNAME you want to update e.g. hello.example.com |