Skip to content

Instantly share code, notes, and snippets.

View gist:fb5261b0c601f6935239
Verifying that +kleinmann is my blockchain ID. https://onename.com/kleinmann
@kleinmann
kleinmann / puppet-3.0.2-win7-success
Created Jan 9, 2015
Getting puppet 3.0.2 to run on Windows 7 (success for the blog post)
View puppet-3.0.2-win7-success
PS C:> puppet help
Usage: puppet [options] [options]
[...]
@kleinmann
kleinmann / puppet-3.0.2-win7-error
Last active Aug 29, 2015
Getting puppet 3.0.2 to run on Windows 7 (error for the blog post)
View puppet-3.0.2-win7-error
PS C:> C:\Ruby193\bin\ruby C:\Ruby193\bin\puppet help
Failed to load feature test for root: uninitialized constant Windows::Synchronize
Error: Could not intialize global default settings: string contains null byte
@kleinmann
kleinmann / puppet-3.0.2-win7-Gemfile.rb
Last active Aug 29, 2015
Getting puppet 3.0.2 to run on Windows 7 (Gemfile for the blog post)
View puppet-3.0.2-win7-Gemfile.rb
source "http://rubygems.org"
gem "puppet", "~> 3.0.2"
platform :mingw do
gem "sys-admin"
gem "win32-process", "= 0.6.5"
gem "win32-dir", "= 0.3.7"
gem "win32-service"
gem "win32-security"
gem "win32-taskscheduler"
end
View .cVimrc
" Settings
set noautofocus
set cncpcompletion
set smoothscroll
set autohidecursor
set typelinkhints
set smartcase
set incsearch
let vimcommand = "~/bin/vim -f"
let scrollduration = 10
View keybase.md

Keybase proof

I hereby claim:

  • I am kleinmann on github.
  • I am kleinmann (https://keybase.io/kleinmann) on keybase.
  • I have a public key whose fingerprint is 6CF1 58BB 7AED F738 1A91 B6F9 8B28 6D93 F539 1896

To claim this, I am signing this object:

@kleinmann
kleinmann / node.pp
Created Jan 21, 2013
puppet not finding a class
View node.pp
node /^test\..+\.test\.net$/ inherits default {
class { 'ldap':
server => true,
client => true,
ssl => true,
}
ldap::define::domain { 'test.net':
basedn => 'dc=test,dc=net',
rootdn => 'cn=root',
rootpw => '123',
@kleinmann
kleinmann / declaration.pp
Last active Dec 11, 2015
puppet not finding a class
View declaration.pp
node /^web\d+.+\.test\.net$/ inherits default {
class { 'ldap':
client => true,
ssl => true,
}
ldap::client::config { 'test.net':
ensure => 'present',
servers => ['ldap.test.com'],
ssl => true,
base_dn => 'dc=test,dc=net',
@kleinmann
kleinmann / gist:4494087
Created Jan 9, 2013
puppet error regarding HTTPS on Mac OS X
View gist:4494087
└─⚡︎ puppet module search stdlib ☹
Notice: Searching https://forge.puppetlabs.com ...
Error: Could not connect via HTTPS to https://forge.puppetlabs.com
Unable to verify the SSL certificate
The certificate may not be signed by a valid CA
The CA bundle included with OpenSSL may not be valid or up to date
Error: Try 'puppet help module search' for usage
View cloudapp
#!/usr/bin/env ruby
#
# cloudapp
# Zach Holman / @holman
#
# Uploads a file from the command line to CloudApp, drops it into your
# clipboard (on a Mac, at least).
#
# -- Uwe Kleinmann / @iUwe
# Added clipboard functionality via xsel for linux.