Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
chef %0
@robinbowes
robinbowes / gist:5ee24155a108c414e267
Created October 6, 2014 15:24
logrotate exits non-zero
[root@ip-10-33-141-171 logrotate.d]# logrotate -df /etc/logrotate.conf
reading config file /etc/logrotate.conf
including /etc/logrotate.d
reading config file dracut
reading config info for /var/log/dracut.log
reading config file puppet
reading config info for /var/log/puppet/*log
reading config file syslog
reading config info for /var/log/cron
/var/log/maillog
UpdateCTestConfiguration from :/Users/robin/Workspace/cfacter/release/DartConfiguration.tcl
UpdateCTestConfiguration from :/Users/robin/Workspace/cfacter/release/DartConfiguration.tcl
Test project /Users/robin/Workspace/cfacter/release
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: library tests
root@node04 puppetboard]# curl -v 'https://puppetdb.ubnt.int.yo61.net:8081/v3/facts/node01.ubnt.int.yo61.net' --cacert /var/lib/puppet/ssl/certs/ca.pem --cert /var/lib/puppet/ssl/public_keys/node04.ubnt.int.yo61.net.pem --key /var/lib/puppet/ssl/private_keys/node04.ubnt.int.yo61.net.pem
* About to connect() to puppetdb.ubnt.int.yo61.net port 8081 (#0)
* Trying 192.168.51.11... connected
* Connected to puppetdb.ubnt.int.yo61.net (192.168.51.11) port 8081 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /var/lib/puppet/ssl/certs/ca.pem
CApath: none
* Unable to load client cert -8018.
* NSS error -8018
* Closing connection #0
@robinbowes
robinbowes / gist:7cfdf2acf788525c0da7
Created September 8, 2014 12:31
puppetboard config
class profile_puppetboard{
$puppetdb_host = hiera('puppetdb.certname')
$puppetdb_port = hiera('puppetdb.ssl_list_port', 8081)
$puppetdb_key = "/var/lib/puppet/ssl/private_keys/${::certname}/pem"
$puppetdb_ssl = 'True'
$puppetdb_cert = "/var/lib/puppet/ssl/public_keys/${::certname}/pem"
$vhost_name = hiera('puppetboard.certname')
$port = hiera('puppetboard.http_port', 80)
@robinbowes
robinbowes / manifest
Created September 3, 2014 20:29
Why do I get the warning?
class { '::postgresql::globals':
manage_package_repo => true,
version => '9.3',
encoding => 'UTF8',
}->
class{'::postgresql::server': }
---
- name: install python postgresql library
yum: pkg=python-psycopg2 state=installed
- name: add puppetdb postgresql user
postgresql_user: name={{ puppetdb.postgres.user }} password={{ puppetdb.postgres.password }} role_attr_flags=NOCREATEDB,NOSUPERUSER,NOCREATEROLE
- name: add puppetdb postgresql database
postgresql_db: name={{ puppetdb.postgres.database }} encoding='UTF-8' owner={{ puppetdb.postgres.user }}
# general settings
daemonize = 1
direct_addressing = 1
# ActiveMQ connector settings
connector = activemq
plugin.activemq.pool.size = 1
plugin.activemq.pool.1.host = 192.168.50.31
plugin.activemq.pool.1.port = 61613
plugin.activemq.pool.1.user = server
@robinbowes
robinbowes / activemq.xml
Last active August 29, 2015 14:05
probs with activemq
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
[root@vagrant-centos65 ~]# curl -v -L https://raw.github.com/robinbowes/puppet-server-bootstrap/master/psb -o psb
* About to connect() to raw.github.com port 443 (#0)
* Trying 185.31.18.133... connected
* Connected to raw.github.com (185.31.18.133) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using TLS_RSA_WITH_RC4_128_SHA
* Server certificate:
* subject: CN=www.github.com,O="Fastly, Inc.",L=San Francisco,ST=California,C=US