Skip to content

Instantly share code, notes, and snippets.

View pblesi's full-sized avatar

Patrick Blesi pblesi

View GitHub Profile
@pblesi
pblesi / renew_ssl_certs.rb
Last active November 6, 2019 04:39
An example runbook that handles SSL cert rotation
#!/usr/bin/env ruby
require "runbook"
host = ENV["HOST"] # e.x. ldap01.stg
raise "Error no host specified using HOST env var" unless host
service = ENV["SERVICE"] # e.x. slapd
raise "Error no service specified using SERVICE env var" unless service
local_user = ENV["USER"]