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
file { "puppet-ca-subjectaltname-patch": | |
path => "${::rubysitedir}/puppet/vendor/load_ca_hack.rb", | |
mode => '0644', | |
source => "puppet:///files/puppet/load_ca_hack.rb", | |
notify => Service[puppetmaster], | |
} |
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
#!/usr/bin/env perl | |
# Recurse tree for files, scrubbing lines based on pattern list | |
# Copyright: 2017 Jeffrey Clark <h0tw1r3@gmail.com> | |
# License: GNU GPL v3+ | |
use strict; | |
use warnings; | |
no if $] >= 5.017011, warnings => 'experimental::smartmatch'; |
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
class profile::fstab { | |
define fstab::mount($options) { | |
$mount = $title | |
exec { "fstab_remount_${mount}": | |
command => "/bin/env mount -o remount ${title}", | |
refreshonly => 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
[Unit] | |
Description=/etc/rc.local Compatibility | |
DefaultDependencies=false | |
ConditionFileIsExecutable=/etc/rc.local | |
After=multi-user.target | |
[Service] | |
Type=oneshot | |
ExecStart=/etc/rc.local | |
TimeoutSec=0 |
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/env bash | |
# | |
# Parallel recursive RAW to JPEG + meta converter | |
# | |
# Output into relative JPEG directory | |
# | |
# Requires: dcraw, cjpeg, exiv2 | |
# any argument means verbose... | |
if [ ${#} -ne 0 ]; then |
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 | |
# NetAddr version 0.2 - Filter IPv4 addresses by network | |
# Copyright 2016 Jeffrey Clark <github.com/h0tw1r3> | |
# Copyright 2009 Ole Christian Tvedt <olechrt@stud.ntnu.no> | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later 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
require 'facter' | |
def hash_tree | |
Hash.new do |hash, key| | |
hash[key] = hash_tree | |
end | |
end | |
Facter.add(:packages) do | |
confine :osfamily => 'Redhat' |
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
map $remote_user $proxy_client_domain { | |
default $remote_user; | |
} | |
upstream newsline.linearcollider.org { | |
server 127.0.1.1:80; | |
} | |
upstream linearcollider.org { | |
server 127.0.2.1:80; |
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/sh | |
localectl set-locale LANG=en_US.utf8 | |
timedatectl set-timezone America/Chicago | |
rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm | |
yum -y install puppetserver vim |
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/env bash | |
# | |
# Parallel recursive RAW to JPEG + meta converter | |
# | |
# Output into relative JPEG directory | |
# | |
# Requires: dcraw, cjpeg, exiv2 | |
# any argument means verbose... | |
if [ ${#} -ne 0 ]; then |