Skip to content

Instantly share code, notes, and snippets.

View llowder's full-sized avatar

Lee Lowder llowder

View GitHub Profile
[
[
{
"action": "status",
"agent": "filemgr",
"data": {
"atime": "<value>",
"atime_seconds": "<value>",
"ctime": "<value>",
"ctime_seconds": "<value>",
$ mco puppet status -T puppet_infra -v
Discovering hosts using the mc method for 2 second(s) .... 4
* [ ============================================================> ] 4 / 4
<FQDN1>: You are not authorized to call this agent or action.
<FQDN2>: You are not authorized to call this agent or action.
<FQDN3>: Currently stopped; last completed run 15 days 8 hours 47 minutes 21 seconds ago
<FQDN4>: You are not authorized to call this agent or action.
$ mco choria show_config
Active Choria configuration:
The active configuration used in Choria comes from using Puppet AIO defaults, querying SRV
records and reading configuration files. The below information shows the completely resolved
configuration that will be used when running MCollective commands
MCollective related:
MCollective Version: 2.8.9
from http error logs:
/metrics/v1/mbeans/puppetlabs.puppetdb.population%3Atype%3Ddefault%2Cname%3Dnum-nodes
from puppetboard metrics:
(name) puppetlabs.puppetdb.query.population:type=default,name=num-nodes
(url) puppetlabs.puppetdb.query.population:type%3Ddefault%2Cname%3Dnum-nodes
[Mon Jan 16 21:35:57.373269 2017] [authz_core:debug] [pid 1XX6:tid 1XXXXXXXXXXX4] mod_authz_core.c(802): [client 172.XXX.XXX.XXX:54184] AH01626: authorization result of Require all granted: granted, referer: http://<puppetdb>/puppetboard/
[Mon Jan 16 21:35:57.373306 2017] [authz_core:debug] [pid 1XX6:tid 1XXXXXXXXXXX4] mod_authz_core.c(802): [client 172.XXX.XXX.XXX:54184] AH01626: authorization result of <RequireAny>: granted, referer: http://<puppetdb>/puppetboard/
[Mon Jan 16 21:35:57.390492 2017] [:error] [pid 1XX4:tid 1XXXXXXXXXXX2] DEBUG:pypuppetdb.api:_query called with endpoint: environments, path: None, query: None, limit: None, offset: None, summarize_by None, count_by None, count_filter: None
[Mon Jan 16 21:35:57.390631 2017] [:error] [pid 1XX4:tid 1XXXXXXXXXXX2] DEBUG:pypuppetdb.api:_url called with endpoint: environments and path: None
[Mon Jan 16 21:35:57.396373 2017] [:error] [pid 1XX4:tid 1XXXXXXXXXXX2] INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhost
[M
---
profiles::apache::vhost:
aliases:
-
path: /path
alias: /fully/qualified/path
-
path: /path/foo
alias: /fully/quailified/path/foo
@llowder
llowder / test.pp
Created December 29, 2016 20:57
wishful thinking
class foo (
Array[String] $a = [ 'a', 'b', 'c'],
Enum[$::foo::a] $b = 'c',
)
}
notify { $b: }
}
2016-12-20 10:05:51,134 WARN [p.p.h.query] The event-counts endpoint is experimental and may be altered or removed in the future.
2016-12-20 10:06:23,073 WARN [p.p.h.query] The event-counts endpoint is experimental and may be altered or removed in the future.
2016-12-20 10:06:55,006 WARN [p.p.h.query] The event-counts endpoint is experimental and may be altered or removed in the future.
2016-12-20 10:07:09,157 WARN [p.p.jdbc] Caught exception. Last attempt, throwing exception.
2016-12-20 10:07:10,146 WARN [o.a.a.t.LocalTransaction] POST COMMIT FAILED:
java.lang.NullPointerException: null
at org.apache.activemq.store.kahadb.AbstractKahaDBStore.store(AbstractKahaDBStore.java:482) ~[puppetdb.jar:na]
at org.apache.activemq.store.kahadb.AbstractKahaDBStore.store(AbstractKahaDBStore.java:394) ~[puppetdb.jar:na]
at org.apache.activemq.store.kahadb.scheduler.JobSchedulerImpl.doSchedule(JobSchedulerImpl.java:264) ~[puppetdb.jar:na]
at org.apache.activemq.store.kahadb.scheduler.JobS
@llowder
llowder / foo.yaml
Created September 27, 2016 14:20
Example yaml for a hiera lookup
hosts::host_entries:
"%{facts.networking.fqdn}":
ensure: absent
ip: 127.0.0.1
host_aliases:
- "%{facts.networking.hostname}"
- localhost
- localhost.localdomain
- localhost4
- localhost4.localdomain4
<body itemscope itemtype="http://schema.org/ItemPage">
<div class="Content Widest" id="LayoutColumn1">