Skip to content

Instantly share code, notes, and snippets.

View SimonHoenscheid's full-sized avatar
🏠
Working from home

Simon Hönscheid SimonHoenscheid

🏠
Working from home
View GitHub Profile
profile::postgresql_databases::databases:
jira:
user: "atlassian"
password: "foo"
encoding: "UNICODE"
locale: "C"
grant: "ALL"
$databases.each |$database, $database_details| {
postgresql::server::db { $database:
@SimonHoenscheid
SimonHoenscheid / _etc_sysconfig_openldap
Last active December 17, 2020 23:41
Suse openldap sysconfig
## Path: Network/LDAP
## Description: Basic Configuration of the OpenLDAP Directory Server
## Type: yesno
## Default: yes
## ServiceRestart: ldap
#
# If set to "no" the LDAP server will not accept any "normal" LDAP connections
# but just connections over "ldaps" or "ldapi". Setting this to "no" does only
# make sense when either OPENLDAP_START_LDAPS or OPENLDAP_START_LDAPI is set
hiera:
site_module::hit::telegraf::inputs:
'influxdb-dc':
plugin_type: 'influxdb'
input_options:
- 'urls':
- 'http://remote-dc:8086'
https://twin.github.io/httprb-is-great/
#!/usr/bin/perl
#===============================================================================
#
# FILE: checklogin.pl
#
# USAGE:
#
# DESCRIPTION:
#
#!/bin/bash
PEM_FILE=$1
PASSWORD=$2
KEYSTORE=$3
# number of certs in the PEM file
CERTS=$(grep 'END CERTIFICATE' $PEM_FILE| wc -l)
# For every cert in the PEM file, extract it and import into the JKS keystore
# awk command: step 1, if line is in the desired cert, print the line
# step 2, increment counter when last line of cert is found
@SimonHoenscheid
SimonHoenscheid / hiera.yaml
Created August 1, 2016 13:44 — forked from lazyfrosch/hiera.yaml
Docker via Puppet
---
docker::run_instance::instance:
gitlab-redis:
image: redis
volumes:
- '/data/services/gitlab/redis/data:/data'
gitlab:
image: sameersbn/gitlab:8.10.1
volumes:
- '/data/services/gitlab/data:/home/git/data'
# hiera
uptream:
'abc_core':
'ips':
- '1.2.3.4'
- '1.2.3.5'
'port': 8080
'abc_cp_core':
'ips':
- '1.2.3.4'
nginx::vhost::vhosts:
'foo.example.com':
ensure: 'present'
'example.net':
ensure: 'present'
$vhosts = hiera('nginx::vhost::vhosts')
$vhosts_list = keys($vhosts)
EDITOR=vim
if [ -d /opt/puppetlabs/bin ]; then
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/puppetlabs/bin
fi
alias ll='ls -lah --color=auto'
alias grep='grep --color=auto'
alias rm='rm -r'
if [ -d /etc/bash_completion ]; then
. /etc/bash_completion
fi