Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Rob Reynolds ferventcoder

🎯
Focusing
View GitHub Profile
@ferventcoder
ferventcoder / SublimePackages
Last active Aug 29, 2015
Sublime Packages Installed
View SublimePackages
These are the sublime packages I have installed
@ferventcoder
ferventcoder / PluggingChocolateyIntoYourPuppetInfrastructure.md
Last active Aug 29, 2015
Plugging Chocolatey Into Your Puppet Infrastructure (Abstract for PuppetConf 2014)
View PluggingChocolateyIntoYourPuppetInfrastructure.md

Are you managing Windows? Long time Windows System Admin? Do you enjoy long walks on the beach thinking about how it would be awesome to have linux style package management on Windows?

Well you, sir or madam, are in luck! Chocolatey will help you get jiggy with it and get your puppet package management in much the same way that you already enjoy with other platforms. During this talk we will go over how you can be successful hooking Chocolatey into Puppet, creating your own packages, and setting up an internal package repository. Even if you've seen Chocolatey before, we have something new and puppety we'll be showing at this talk!

@ferventcoder
ferventcoder / acl_vs_mode.pp
Created Mar 31, 2014
Mode versus ACL - the two are mostly incompatible with each other.
View acl_vs_mode.pp
file { 'c:/tempperms/mode':
ensure => directory,
mode => 0770,
owner => 'rob',
group => 'Administrators',
}
# this is fun
# acl {'c:/tempperms/mode':
# ensure => present,
View acl_deny.pp
file { ['c:/bob'
,'c:/bob/somedir'
,'c:/bob/somedir/grandchild']:
ensure => directory,
}
file { ['c:/bob/file.txt'
,'c:/bob/somedir/filetoo.txt'
,'c:/bob/somedir/grandchild/anotherfile.txt']:
ensure => file,
View gist:11231331
Vagrant installer https://forge.puppetlabs.com/skoblenick/vagrant
View file_redirection.pp
exec { 'powershell_system32':
command => 'c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -NoProfile -ExecutionPolicy Bypass -Command "get-process powershell* | %{ Write-Host $($_.Path)}"',
logoutput => true,
} ->
exec { 'powershell_sysnative':
command => 'c:\windows\sysnative\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -NoProfile -ExecutionPolicy Bypass -Command "get-process powershell* | %{ Write-Host $($_.Path)}"',
logoutput => true,
}
View Asbstract - DevOps: Your Infrastructure Just got Chocolatey.md

Chocolatey is a global PowerShell execution engine that serves as a machine package manager for Windows. What does that mean? I'm not sure but it does some really cool stuff.

Script out your software and configuration requirements for your entire infrastructure and then version it. If you've been on the Windows side too long, you've been missing out on all the automation fun.

Kids love it. Microsoft Approved! Chocolatey definitely does some cool things like save you time and make you look uber smart for using it. Come see what this thing is and what it can do for you.

"Sometimes it's the tools that make the man." -Rob Reynolds, like 2 seconds ago

@ferventcoder
ferventcoder / Acl_Defaults_for_normal.pp
Last active Aug 29, 2015
ACL Remove with optional elements
View Acl_Defaults_for_normal.pp
# This is what the defaults look like for normal permissions.
acl { 'c:/temp':
permissions => [
{ identity => 'Administrator', rights => ['full'] },
# same as the below
{ identity => 'Administrator', rights=> ['full'], type => 'allow',child_types => 'all', affects => 'all'}
]
}
View pup-2389.txt
(PUP-2389) Add ruby 2.0.0-x64
- Removed Tcl/Tk (10MB and not included as part of the standard install)
- Removed generated docs for gems (9 MB)
- Removed the following gems:
* win32-api (KEEP FOR NOW)
* windows-pr (KEEP FOR NOW)
* win32console (KEEP FOR NOW)
* windows-api (COMES with windows-pr)
- THINKING ABOUT - Removed gem cache (9 MB)
View notes.md
  • It works
  • It does not like a console screen buffer height over 300.