Skip to content

Instantly share code, notes, and snippets.

View burtlo's full-sized avatar

Lynn Frank burtlo

View GitHub Profile
@burtlo
burtlo / custom.erb
Last active August 29, 2015 14:24
Apache Cookbook Updated
<% if @port != 80 -%>
Listen <%= @port %>
<% end -%>
<VirtualHost *:<%= @port %>>
ServerAdmin webmaster@localhost
DocumentRoot <%= @document_root %>
<Directory />
Options FollowSymLinks
@burtlo
burtlo / default.rb
Last active August 29, 2015 14:24
Refactored IIS
powershell_script "Install IIS" do
code "add-windowsfeature Web-Server"
action :run
end
service "w3svc" do
action [ :enable, :start ]
end
powershell_script "disable default site" do
@burtlo
burtlo / custom.erb
Last active August 29, 2015 14:24 — forked from elon01/custom.erb
<% if @port != 80 -%>
Listen <%= @port %>
<% end -%>
<VirtualHost *:<%= @port %>>
ServerAdmin webmaster@localhost
DocumentRoot <%= @document_root %>
<Directory />
Options FollowSymLinks
@burtlo
burtlo / attributes--default.rb
Last active August 29, 2015 14:24
SuSE Apache Cookbook Redux
# attributes file
default["apache"]["sites"]["clowns"] = { "port" => 80, "nose" => "red" }
default["apache"]["sites"]["bears"] = { "port" => 81, "nose" => "black" }
@burtlo
burtlo / gist:6968b54752a1401207b8
Last active August 29, 2015 14:24
Boston Intermediate Addresses
Jon - ec2-52-3-74-78.compute-1.amazonaws.com
John - ec2-52-3-75-5.compute-1.amazonaws.com
Matt - ec2-52-3-74-94.compute-1.amazonaws.com
Ernest - ec2-52-3-74-83.compute-1.amazonaws.com
Michael - ec2-52-3-74-207.compute-1.amazonaws.com
Amit - ec2-52-3-75-3.compute-1.amazonaws.com
Leo - ec2-52-3-75-47.compute-1.amazonaws.com
Slava - ec2-52-3-75-126.compute-1.amazonaws.com
William - ec2-52-3-74-206.compute-1.amazonaws.com
Frank - ec2-52-3-24-155.compute-1.amazonaws.com
default['email_handler']['from_address'] = "chef@localhost"
default['email_handler']['to_address'] = "chef@localhost"
#
# Cookbook Name:: apache
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
package "httpd" do
@burtlo
burtlo / 00_attendees.md
Last active August 26, 2015 16:28
Chef Fundamentals
Name Workstation
Rebekah ec2-52-3-218-73.compute-1.amazonaws.com
Frank ec2-52-0-134-92.compute-1.amazonaws.com
@burtlo
burtlo / winrm.ps1
Created September 15, 2015 14:07
Possible aid in working around a winrm not allowing a connection.
# Get the ID and security principal of the current user account
$myWindowsID=[System.Security.Principal.WindowsIdentity]::GetCurrent()
$myWindowsPrincipal=new-object System.Security.Principal.WindowsPrincipal($myWindowsID)
# Get the security principal for the Administrator role
$adminRole=[System.Security.Principal.WindowsBuiltInRole]::Administrator
# Check to see if we are currently running "as Administrator"
if ($myWindowsPrincipal.IsInRole($adminRole))
{