Skip to content

Instantly share code, notes, and snippets.

View mat1010's full-sized avatar

Matthias Kneer mat1010

  • Frankfurt a. M.
View GitHub Profile
@mat1010
mat1010 / renew-puppet-ca.md
Last active May 13, 2018 14:20 — forked from kbarber/gist:6456420
Renewing a Puppet CA cert

Renew Puppet CA cert.

Not the perfect idea, but should alleviate the need to resign every cert.

What you need from existing puppet ssl directory:

ca/ca_crt.pem
ca/ca_key.pem
@mat1010
mat1010 / pipeline.groovy
Created November 13, 2018 22:44 — forked from cyrille-leclerc/pipeline.groovy
Escape character & quotes in Jenkins Pipeline
docker.image('cloudbees/java-build-tools:0.0.6').inside {
sshagent(['github-ssh-credentials']) {
sh """
git version
git config --local user.email \\"cleclerc@cloudbees.com\\"
git config --local user.name \\"Cyrille Le Clerc\\"
git clone git@github.com:cyrille-leclerc/a-test-repo.git
date &> now.txt