Skip to content

Instantly share code, notes, and snippets.

View klaus385's full-sized avatar

klaus385 klaus385

View GitHub Profile
@klaus385
klaus385 / rancher-upgrade-cert-manager-version.sh
Created September 9, 2022 21:46 — forked from AlexisDucastel/rancher-upgrade-cert-manager-version.sh
Rancher fix for cert-manager failure on rancher upgrade (no matches for kind "Issuer" in version cert-manager.io/v1beta1)
#!/bin/bash
function failure { echo $@ >&2; exit 1; }
RANCHER_NAMESPACE=${RANCHER_NAMESPACE:-cattle-system}
RANCHER_RELEASE_NAME=${RANCHER_RELEASE_NAME:-rancher}
# Pre-Flight checks
echo "ok"|sed -r "s/^(ok)/yes/"|grep yes >/dev/null \
&& echo "Preflight test : sed ok" \
|| failure "Your sed does not support extended regexp, more info at https://github.com/rancher/rancher/issues/35319#issuecomment-1173825923"
@klaus385
klaus385 / ansible-summary.md
Created October 31, 2017 19:43 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@klaus385
klaus385 / iis.yml
Created July 13, 2017 22:10 — forked from dgmorales/iis.yml
Ansible Windows playbook example - creates an IIS website and deploys files for it
---
- hosts: windows
vars:
ansible_site_path: "c:\\inetpub\\wwwroot\\ansibletest"
staging_path: "c:\\deploy"
ansible_test_staging_path: "{{ staging_path }}\\ansible-test-site-{{ ansible_date_time.year }}{{ ansible_date_time.month }}{{ ansible_date_time.day }}"
tasks:
- name: install-iis
win_feature:
name: "Web-Server"
@klaus385
klaus385 / wunderlist2.sh
Created June 18, 2016 18:50 — forked from chrismdp/wunderlist2.sh
Shell script to grab latest tasks from Wunderlist 2. The path for the DB file is the App Store version. Note that as well as passing the list you want (or "" for all tasks) you can pass a relative time as a second argument: eg "+7d" which will limit the view to only tasks due within that time. ("+7d" limits tasks shown to those due within the ne…
#!/bin/sh
set -e
LIST=$1;
DUE=$2;
WUNDERLISTDB="$HOME/Library/Containers/com.wunderkinder.wunderlistdesktop/Data/Library/Application Support/Wunderlist/WKModel.sqlite"
if [ "$LIST" == 'Inbox' ]; then
LID="AND ZTASKLIST is null";