Skip to content

Instantly share code, notes, and snippets.

@kleinmann
kleinmann / Dockerfile
Created November 18, 2021 22:42
caddy-docker-proxy
ARG CADDY_VERSION=2
FROM caddy:${CADDY_VERSION}-builder-alpine AS builder
RUN xcaddy build \
--with github.com/lucaslorentz/caddy-docker-proxy/plugin \
--with github.com/greenpau/caddy-auth-portal \
--with github.com/greenpau/caddy-authorize
FROM caddy:${CADDY_VERSION}-alpine
@kleinmann
kleinmann / gist:4494087
Created January 9, 2013 15:38
puppet error regarding HTTPS on Mac OS X
└─⚡︎ 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
@kleinmann
kleinmann / node.pp
Created January 21, 2013 14:52
puppet not finding a class
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 December 11, 2015 06:38
puppet not finding a class
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 / .cVimrc
Last active September 15, 2015 06:49
" Settings
set noautofocus
set cncpcompletion
set smoothscroll
set autohidecursor
set typelinkhints
set smartcase
set incsearch
let vimcommand = "~/bin/vim -f"
let scrollduration = 10
@kleinmann
kleinmann / puppet-3.0.2-win7-success
Created January 9, 2015 09:10
Getting puppet 3.0.2 to run on Windows 7 (success for the blog post)
PS C:> puppet help
Usage: puppet [options] [options]
[...]
@kleinmann
kleinmann / puppet-3.0.2-win7-error
Last active August 29, 2015 14:13
Getting puppet 3.0.2 to run on Windows 7 (error for the blog post)
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 August 29, 2015 14:13
Getting puppet 3.0.2 to run on Windows 7 (Gemfile for the blog post)
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

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: