Skip to content

Instantly share code, notes, and snippets.

View crayfishx's full-sized avatar

Craig Dunn crayfishx

View GitHub Profile
$ cat hieradata/common.yaml
---
dbmaster:
- mysql::server
mysql::server::package_name: 'mysql-server'
mysql::server::package_ensure: '5.7.13-1debian7'

Keybase proof

I hereby claim:

  • I am crayfishx on github.
  • I am crayfishx (https://keybase.io/crayfishx) on keybase.
  • I have a public key whose fingerprint is D089 0360 D0B9 AAAD 9EDE 342F 9CCB 513E 77F4 A441

To claim this, I am signing this object:

##### On the PuppetCA - clean the new masters cert....
[root@puppetca /]# puppet cert clean b3b0d92345fb
Notice: Revoked certificate with serial 13
Notice: Removing file Puppet::SSL::Certificate b3b0d92345fb at '/etc/puppetlabs/puppet/ssl/ca/signed/b3b0d92345fb.pem'
Notice: Removing file Puppet::SSL::Certificate b3b0d92345fb at '/etc/puppetlabs/puppet/ssl/certs/b3b0d92345fb.pem'
##### On the new master, verify puppet.conf has ca_server and ca
environmentpath = /etc/puppetlabs/code/environments
ca_server = puppetca
ServerRoot "/etc/httpd"
Listen 80
Include conf.modules.d/*.conf
User apache
Group apache
ServerAdmin root@localhost
<Directory />
# Apache HTTP configuration file
# THIS FILE IS MANAGED BY PUPPET.
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.