This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Create an openssl.cnf: | |
[ca] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by iptables-save v1.4.7 on Sun Feb 24 00:48:11 2013 | |
*mangle | |
:PREROUTING ACCEPT [756:54757] | |
:INPUT ACCEPT [756:54757] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [578:527896] | |
:POSTROUTING ACCEPT [578:527896] | |
-A INPUT -s 1.1.1.2/32 -j CHECKSUM --checksum-fill | |
-A OUTPUT -s 1.1.1.2/32 -j CLASSIFY --set-class 0004:0056 | |
COMMIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\#\!ipxe | |
set base-url http://stable.release.core-os.net/amd64-usr/current | |
kernel ${base-url}/coreos\_production\_pxe.vmlinuz initrd=coreos\_production\_pxe\_image.cpio.gz coreos.first\_boot=1 coreos.config.url=https://example.com/pxe-config.ign | |
initrd ${base-url}/coreos\_production\_pxe\_image.cpio.gz | |
boot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns com.puppetlabs.puppetdb.test.http.facts | |
(:require [com.puppetlabs.puppetdb.scf.storage :as scf-store] | |
[com.puppetlabs.http :as pl-http] | |
[cheshire.core :as json] | |
[com.puppetlabs.puppetdb.test.http.facts :as facts]) | |
(:use clojure.test | |
ring.mock.request | |
[com.puppetlabs.puppetdb.fixtures] | |
[com.puppetlabs.puppetdb.examples] | |
[clj-time.core :only [now]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns giordano.pdb | |
(:require [clj-http.client :as client])) | |
(defn cm [host port] | |
{:host host | |
:port port | |
:cm (clj-http.conn-mgr/make-reusable-conn-manager {:timeout 2 :threads 4})}) | |
(defn query [cm url] | |
(let [host (:host cm) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@puppetdb1:~/Development/puppet# git bisect good | |
6ff0a10366e6ffed14ad310f16bbe9369c659e6a is the first bad commit | |
commit 6ff0a10366e6ffed14ad310f16bbe9369c659e6a | |
Author: Andrew Parker <andy@puppetlabs.com> | |
Date: Mon Nov 4 17:32:57 2013 -0800 | |
(#23081) Ensure that errors from insync? create proper events | |
:040000 040000 0a96710ec5fb5240b78abc9328fb72f068fea089 3c4d4157afa8ee718d8bfacb5cd6bd28bc8f4a89 M lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@puppetdb1:~# puppet agent -t | |
Info: Retrieving plugin | |
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/root_home.rb | |
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/puppet_vardir.rb | |
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/pe_version.rb | |
Info: Loading facts in /etc/puppet/modules/stdlib/lib/facter/facter_dot_d.rb | |
Info: Loading facts in /etc/puppet/modules/concat/lib/facter/concat_basedir.rb | |
Info: Loading facts in /etc/puppet/modules/firewall/lib/facter/ip6tables_version.rb | |
Info: Loading facts in /etc/puppet/modules/firewall/lib/facter/iptables_version.rb | |
Info: Loading facts in /etc/puppet/modules/firewall/lib/facter/iptables_persistent_version.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"containment-path": [ | |
"Stage[main]", | |
"Puppet::Agent", | |
"Package[hiera]" | |
], | |
"file": "/etc/puppet/environments/production/modules/puppet/manifests/agent.pp", | |
"line": 25, | |
"message": "change from held to 1.1.2-1puppetlabs1 failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install hiera=1.1.2-1puppetlabs1' returned 100: Reading package lists...\nBuilding dependency tree...\nReading state information...\nhiera is already the newest version.\n0 upgraded, 0 newly | |
installed, 0 to remove and 0 not upgraded.\n1 not fully installed or removed.\nAfter this operation, 0 B of additional disk space will be used.\nSetting up mcollective (2.4.0-1puppetlabs1) ...\nStarting daemon: mcollective\n\u001b[33mwarn\u001b[0m 2014/01/26 19:12:17: config.rb:117:in `loadconfig' Use of deprecated 'topicprefix' option. This option is ignored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-01-27 16:04:49,043 ERROR [puppetdb.command] [f4cd9be6-ed17-474d-b442-b7be2b7bed8e] [store report] Retrying after attempt 7, due to: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "constraint_resource_events_unique" | |
Detail: Key (report, resource_type, resource_title, property)=(adbd8f614ce619e3958db129e4b4ae463a9e01ef, File, /dev/shm/pg, owner) already exists. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"certname": "lon3-analyticscassandra-b7.lon3.spotify.net", | |
"configuration-version": "bf58d5c83dc0e8735527984366cc9a4aed3c4a09", | |
"end-time": "2014-01-21T18:01:08.629608000+00:00", | |
"puppet-version": "3.4.2", | |
"report-format": 4, | |
"resource-events": [ | |
{ | |
"containment-path": [ | |
"Stage[main]", |
NewerOlder