[Puppet Users] PuppetDB / inventory service configuration problem

2013-04-20 Thread David Gordon
Hi,

I've just been configuring my new Puppet 3.1.1 / Dashboard setup with 
Passenger to use PuppetDB for the inventory service.  I configured it via 
the puppetdb forge module, and it all seems to be configured correctly as 
far as the docs describe.

When I look at a node in the dashboard, under the inventory section, I just 
see:

Could not retrieve facts from inventory service: 404 "Could not find facts 
myhost.domain.com "


I've quoted the log excerpts from puppetdb.log and masterhttp.log below. 
 It sounds ssl-related, or that it's using http instead of https - but 
don't really know how to work out what's wrong. Anyone got any pointers for 
trying to debug this?

Thanks,
Dave

---

/var/log/puppetdb/puppetdb log:

2013-04-20 18:11:32,909 WARN  [qtp1655388819-40] [io.nio] 
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

2013-04-20 18:11:55,089 WARN  [qtp1655388819-39] [http.server] Use of 
unversioned APIs is deprecated; please use 
/v1/metrics/mbean/java.lang:type=Memory

2013-04-20 18:35:43,518 INFO  [command-proc-45] [puppetdb.command] 
[db173bb5-a2ea-486e-8dd2-46abf737f975] [replace facts] 
puppetmaster.domain.com

2013-04-20 18:35:48,999 INFO  [command-proc-45] [puppetdb.command] 
[b8cc3c17-7812-45f1-b833-452ff7bf9cf5] [replace catalog] 
puppetmaster.domain.com

2013-04-20 18:35:53,944 WARN  [qtp1655388819-39] [http.server] Use of 
unversioned APIs is deprecated; please use 
/v1/metrics/mbean/java.lang:type=Memory

 

/var/log/puppet/masterhttp.log

[2013-04-20 18:54:52] puppetmaster.domain.com - - [20/Apr/2013:18:54:51 
MEST] "GET /production/facts/myhost.domain.com? HTTP/1.1" 404 51

[2013-04-20 18:54:52] - -> /production/facts/myhost.domain.com?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Feeding errors back from custom ENC scripts

2013-11-06 Thread David Gordon
Hi All,

I'm looking at integrating our Puppet 2.7.21 setup with an internal change 
management system.  Essentially I need the master to check there is an open 
change window for a given node, and fail the run if not.

I don't want to have to have a custom configuration on all the nodes (and 
this probably wouldn't be secure anyway), so plugging this check in during 
the ENC stage seemed to make sense to me.

I'd like to be able to fail the run with a message back to the agent e.g. 
'no valid change window open'.  The problem is, as far as I can see, it is 
not possible to propagate any custom errors back to the master.  It looks 
like the only error is e.g. 'could not find node xxx' or similar.  Even 
replacing the terminus with a custom one doesn't appear to help as this 
cover-all error looks to be generated in the catalogue compiler.

Does this sound right? Anyone got an ideas if it would be possible to fail 
runs with a custom error from within the puppet master?  Failing from 
within the manifests themselves wouldn't be an option as they are under the 
control of the users, and so the check could be circumvented.

Dave

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/73d9ced2-fb17-41c7-98ac-0719cad3401d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.