Skip to content

Instantly share code, notes, and snippets.

View project0's full-sized avatar
:octocat:

Richard Hillmann project0

:octocat:
View GitHub Profile
@project0
project0 / catalog.pp
Last active February 15, 2018 21:33
draft puppet bareos define catalog.pp
define bareos::director::catalog (
$ensure = present,
$db_address = undef,
$db_driver = undef,
$db_name = undef,
$db_password = undef,
$db_port = undef,
$db_socket = undef,
$db_user = undef,
$description = undef,
@project0
project0 / update_puppet_ca.sh
Last active July 15, 2022 01:42
How to replace/update the puppet ca on expire
#!/bin/bash
#### START CUSTOM CONFIG
##
# root path of all certs stuff. May be differ from default
ssl_path=/etc/puppet/ssl
# how many days should the certs are valid
ssl_days=3650
# /etc/systemd/system/[email protected]
# systemctl daemon-reload
# systemctl start loop@sdxx
# systemctl enable loop@sdxx
[Unit]
Description=Mount journal partition as loop2
Before=ceph-osd.target
[Service]
Type=oneshot
ExecStart=/sbin/losetup /dev/loop2 /dev/%i
@project0
project0 / reaction.html
Last active February 2, 2020 18:33
Get random picture from tumblr blog like devopsreactions.tumblr.com
<html>
<head>
<title>DevOps Reaction</title>
<style type="text/css">
body { background-color:#000; color:#fff }
h1 { font-size:35pt }
</style>
<script src="http://code.jquery.com/jquery-2.2.0.min.js"></script>
<script>