I hereby claim:
- I am adamcrews on github.
- I am doo (https://keybase.io/doo) on keybase.
- I have a public key ASArJsXtndbm5JTOtYBC5_DCnXRKOfphcoydCqliWie4YQo
To claim this, I am signing this object:
C:\Program Files (x86)\Puppet Labs\Puppet Enterprise\bin>puppet resource file c:\httpd-2.2.25-win32-x86-openssl-0.9.8y.msi | |
file { 'c:\httpd-2.2.25-win32-x86-openssl-0.9.8y.msi': | |
ensure => 'file', | |
content => '{md5}b83edbc9811e27c7b493e35514a820aa', | |
ctime => '2013-10-14 16:30:31 +0000', | |
group => 'S-1-5-21-1589796259-2920747512-705253099-513', | |
mode => '2000700', | |
mtime => '2013-10-14 16:30:44 +0000', | |
owner => 'S-1-5-32-544', | |
type => 'file', |
exec { 'Download Apache': | |
command => "powershell.exe -Command (new-object System.Net.WebClient).DownloadFile('http://archive.apache.org/dist/httpd/binaries/win32/httpd-2.2.25-win32-x86-openssl-0.9.8y.msi', 'C:/httpd-2.2.25-win32-x86-openssl-0.9.8y.msi')", | |
path => 'C:\Windows\System32\WindowsPowerShell\v1.0', | |
creates => 'C:\httpd-2.2.25-win32-x86-openssl-0.9.8y.msi', | |
logoutput => true, | |
} | |
file { 'C:\httpd-2.2.25-win32-x86-openssl-0.9.8y.msi': | |
owner => "EVIL\\Administrators", | |
group => "EVIL\\Administrators", |
$files = [ '/tmp/1', '/tmp/2', '/tmp/3'] | |
file { $files: | |
ensure => file, | |
} | |
file { '/tmp/all': | |
ensure => file, | |
require => File[$files], | |
} |
#!/bin/bash | |
# | |
CERTNAME='foo.adam.vm' | |
CONFDIR='/tmp/ssl_keys' | |
SSLDIR=`puppet config print ssldir` | |
PUPPETMASTER=`puppet config print server` | |
FQDN=`facter fqdn` |
exec { 'kill_stuck_mcollective': | |
command => 'stop-process -force (get-wmiobject Win32_Service -filter \'name="pe-mcollective"\').ProcessID', | |
unless => 'if ((get-service "pe-mcollective" | select status).Status -eq "StopPending") { exit 1 }', | |
provider => powershell, | |
} |
node 'node1.my.vm' { | |
class { '::profile::apt': | |
unstable => true, | |
} | |
} | |
node 'vagrant.vm' { | |
class { '::profile::apt': | |
unstable => false, | |
} |
Facter.add(:my_zone) do | |
# confine :kernel => :Linux | |
setcode do | |
net = Facter.value('ipaddress').split('.').shift(2).join('.') | |
# scheme is: 10.13x.x.x == west_datacenter and so on | |
case net | |
when /^10\.13[0-9]$/ | |
zone = 'west_datacenter' | |
when /^10\.14[0-9]$/ | |
zone = 'euro_datacenter' |
class profile::ssh { | |
# this installs ssh server, makes it start, ect. | |
# my current favorite is https://forge.puppetlabs.com/saz/ssh | |
include ssh | |
} | |
define myssh::authkeys_file ( | |
$user = root, | |
$group = root, | |
$keygroup = 'default', |
I hereby claim:
To claim this, I am signing this object:
NameVirtualHost <%= @vhost_name %>:<%= @port %> | |
<VirtualHost <%= @vhost_name %>:<%= @port %>> | |
ServerName <%= @servername %> | |
DocumentRoot <%= @docroot %> | |
<Directory <%= @docroot %>> | |
Options <%= @options %> | |
AllowOverride None | |
Order allow,deny | |
allow from all | |
</Directory> |