[Puppet Users] Reg : Error in puppet agent in Windows

2012-12-19 Thread krishna bhaskara rao
Hi,

I installed Open source puppet 3.0 .1in Windows machine and puppet master 
3.0.1 in red hat linux machine. I did all the necessary configurations.
C:\Documents and Settings\All Users\Application 
Data\PuppetLabs\puppet\etc\puppet.conf-  server = test.posmaster.internal
Added entry in hosts file.

While execute ping command ping (ping test.posmaster.internal) giving 
response.
But while executing puppet agent --server test.posmaster.internal --debug 
I am getting below error

*Info: Retrieving plugin*
*Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Could*
* not find default node or by name with 
'testposagentoneinternal.ec2.internal, te*
*stposagentoneinternal.ec2, testposagentoneinternal' on node 
testposagentoneinter*
*nal.ec2.internal*
*Warning: Not using cache on failed catalog*
*Error: Could not retrieve catalog; skipping run*
*
*
Please help me to solve this.

With Regards,
Krishna Bhaskar.
*
*
*
*

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/31uDPx-NhuIJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] puppetdb startup fail - after move of datadir

2012-12-19 Thread Klavs Klavsen
My puppetdb fails with this message:
 java -jar /usr/share/puppetdb/puppetdb.jar services -c 
/etc/puppetdb/conf.d/config.ini
java.io.EOFException: null
 at java.io.DataInputStream.readInt (DataInputStream.java:392)
org.apache.kahadb.util.SequenceSet$Marshaller.readPayload 
(SequenceSet.java:41)
org.apache.kahadb.page.PageFile.loadFreeList (PageFile.java:559)
org.apache.kahadb.page.PageFile.load (PageFile.java:328)
org.apache.activemq.store.kahadb.MessageDatabase.loadPageFile 
(MessageDatabase.java:235)
org.apache.activemq.store.kahadb.MessageDatabase.open 
(MessageDatabase.java:325)
org.apache.activemq.store.kahadb.MessageDatabase.load 
(MessageDatabase.java:374)
org.apache.activemq.store.kahadb.MessageDatabase.doStart 
(MessageDatabase.java:223)
org.apache.activemq.store.kahadb.KahaDBStore.doStart 
(KahaDBStore.java:180)
org.apache.activemq.util.ServiceSupport.start (ServiceSupport.java:53)
org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.start 
(KahaDBPersistenceAdapter.java:186)
org.apache.activemq.broker.BrokerService.start (BrokerService.java:493)
com.puppetlabs.mq$start_broker_BANG_.invoke (mq.clj:42)
com.puppetlabs.puppetdb.cli.services$_main.doInvoke (services.clj:281)
clojure.lang.RestFn.invoke (RestFn.java:421)
clojure.lang.Var.invoke (Var.java:405)
clojure.lang.AFn.applyToHelper (AFn.java:163)
clojure.lang.Var.applyTo (Var.java:518)
clojure.core$apply.invoke (core.clj:600)
com.puppetlabs.puppetdb.core$_main.doInvoke (core.clj:80)
clojure.lang.RestFn.applyTo (RestFn.java:137)
com.puppetlabs.puppetdb.core.main (:-1)

I moved /var/lib/puppetdb to a new disk - mounted under /mnt/puppetdata - 
and bind mounted /var/lib/puppetdb to /mnt/puppetdata/puppetdb (which is 
where I copied the data).

I have disabled selinux - and ownership of files, remains puppetdb.

I can't figure out what to look at next - and that error message doesn't 
give any google results that seems usable.. 

Any hints? 

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/U6hro33Pz2MJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] early clean exit from module?

2012-12-19 Thread jcbollinger


On Tuesday, December 18, 2012 4:26:54 PM UTC-6, Ellison Marks wrote:

 Yeah, I thought it was something like that, just hadn't checked myself.

 As to flattening however, I don't think that's necessary on the user's 
 part. Include calls flatten on any array it is passed automatically.



Why, so it does!  Thanks, I learned something new today.


John

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/V8QlSte0XwUJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Reg : Error in puppet agent in Windows

2012-12-19 Thread jcbollinger


On Wednesday, December 19, 2012 5:47:50 AM UTC-6, krishna bhaskara rao 
wrote:

 Hi,

 I installed Open source puppet 3.0 .1in Windows machine and puppet master 
 3.0.1 in red hat linux machine. I did all the necessary configurations.
 C:\Documents and Settings\All Users\Application 
 Data\PuppetLabs\puppet\etc\puppet.conf-  server = test.posmaster.internal
 Added entry in hosts file.

 While execute ping command ping (ping test.posmaster.internal) giving 
 response.
 But while executing puppet agent --server test.posmaster.internal 
 --debug I am getting below error

 *Info: Retrieving plugin*
 *Error: Could not retrieve catalog from remote server: Error 400 on 
 SERVER: Could*
 * not find default node or by name with 
 'testposagentoneinternal.ec2.internal, te*
 *stposagentoneinternal.ec2, testposagentoneinternal' on node 
 testposagentoneinter*
 *nal.ec2.internal*
 *Warning: Not using cache on failed catalog*
 *Error: Could not retrieve catalog; skipping run*
 *
 *
 Please help me to solve this.


Puppet is telling you that it cannot match the client to any node it knows 
about, and you have not declared default node configuration for it to fall 
back on.  Consult the Puppet language docs for full details 
(http://docs.puppetlabs.com/puppet/3/reference/lang_node_definitions.html), 
but the quickest, simplest (but most temporary) solution is to add this to 
your site.pp:

node default {
}

Note that although that should silence the error message, it does not 
declare any classes or resources to apply to your nodes.  Do digest the 
node (and other) documentation to understand how to go on from there.


John

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/ZNlPJZoYSAgJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Puppet 3.0 fails install on Solaris 10 w/ ruby 1.8.7

2012-12-19 Thread jcbollinger


On Wednesday, December 19, 2012 12:06:12 AM UTC-6, Alex Harvey wrote:



 On Tuesday, December 18, 2012 2:02:28 AM UTC+11, jcbollinger wrote:

 [...]
 I avoid 'gem' on principle, relying instead on hosts' native package 
 managers.  It is a bad idea to mix multiple package managers with 
 overlapping areas of responsibility, and on systems that have a system-wide 
 package manager, that precludes using any other.


 Gems are convenient at sites where many different native package managers 
 are in use.  A site that has RedHat, Ubuntu, Solaris 10, Solaris 11, AIX  
 HP-UX will have six different native package managers to work with and 
 rolling puppet, hiera  facter into all of these formats is time consuming 
 compared to using gems.



The time spent up front to do the job right often produces much more time 
saved later on (indeed, that's a large component of right).  In any case, 
PuppetLabs provides pre-built packages for a lot of different package 
management systems, so for the Puppet stack in particular, the up-front 
time you would need to invest is less than you may suppose.


John

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/30RHshBYQckJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Storing files in filebucket in puppet

2012-12-19 Thread Sivaraman Viswanathan

Hi All,

I want to create a central file server which serves as the source of my 
installers. These installers are nothing but a set of tar files.
I am looking for a two manifests
1. First Manifest which can store these files initially into the central 
file server
2. Manifest which can download these files from the central server and 
untar it into a particular directory.

I am able to get the second manifest to run using exec. But confused how I 
can get the first manifest file.

Please help.



-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/zD8XsPjuYHwJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Puppet Master Console not accessibel on EC2 instance.

2012-12-19 Thread Denmat
Hi,

That address won't resolve very nicely. What is the publicly resolvable address 
for your node? Have you allowed 443 in your security groups to your node?

HTH,
Den

On 19/12/2012, at 9:11, lalit jangra lalit.j.jan...@gmail.com wrote:

 Hi,
 
 I have an RHEL based EC2 instance where i have downloaded puppet 2.7 using 
 http://info.puppetlabs.com/download-pe.html. Now i have followed instructions 
 from http://docs.puppetlabs.com/pe/2.7/install_basic.html to install it using 
 answer.txt file  i could see no error while installing. After installation i 
 can see below message on ssh console.
 
  Thanks for installing Puppet Enterprise!
Puppet Enterprise has been installed to /opt/puppet, and its 
 configuration files are located in /etc/puppetlabs.
 ## Answers from this session saved to 
 './answers.lastrun.ip-10-224-122-211.ec2.internal'
 ## In addition, auto-generated database users and passwords, including the 
 ROOT MySQL password, have been saved to 
 /etc/puppetlabs/installer/database_info.install
!!! WARNING: Do not discard these files! All auto-generated database users 
 and passwords, including the ROOT Mysql password, have been saved in them.
 =
 
 The console can be reached at the following URI:
  *  https://ip-10-224-122-211.ec2.internal:443
If you have a firewall running, please ensure the following TCP ports are 
 open: 8140, 61613, 443
NOTICE: This system has 3.67 GB of memory, which is below the 4 GB we 
 recommend for the puppet master role. Although this node will be a fully 
 functional puppet master, you may experience
poor performance with large numbers of nodes. You can improve the puppet 
 master's performance by increasing its memory.
 
 =
 
 Now when i am trying to access puppet master console using 
 https://ip-10-224-122-211.ec2.internal:443, i can see below error.
 
 Firefox can't establish a connection to the server at 
 ip-10-224-122-211.ec2.internal.
 
 Can anybody help me on same?
 
 Regards.
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/puppet-users/-/s9xxD227e8oJ.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to 
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.

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



[Puppet Users] Re: Catalog compile times 40s - Puppet 2.7.18

2012-12-19 Thread shurik
Hi

We are tried to update puppet master from 2.6.6 to 2.7.18 and saw similar 
picture. Catalog
compile time took ~60-120 seconds. Before this update compilation took 
about ~1-5 second.
After upgrade average CPU usage increased from 10-20% up to 20-40%, during 
some activity 
(compilation?) ruby process puppetmasterd take 100% too.

All, is there are some magic to solve or this is expected behaviour?

Thanks!

---
Alexander

On Saturday, December 15, 2012 10:23:49 PM UTC+4, treydock wrote:



 On Sunday, December 9, 2012 1:41:34 PM UTC-6, treydock wrote:

 I am finding that the puppetlabs-apache module is somehow adding 30-60 
 seconds onto a host's catalog compile time when the puppetmaster has no 
 other hosts contacting or generating catalogs.  The Puppetmaster is setup 
 to use Puppet-2.7.18 - Apache  Passenger.  RIght now only 2 hosts are even 
 configured to use this new PM, the PM itself and a Foreman host.  With 
 neither hosts contacting the PM, and disabling the include apache and 
 require apache::mod::dev in puppetlabs-passenger, I get Config 
 retrieval: 2.45.

 Catalogs had hostnames replaced, puppetmaster.tld is the CNAME for Puppet 
 master and puppetmaster-host.tld is the actual hostname.

 Catalog: http://pastebin.com/V29JmB8J
 # puppet agent --{summarize,test,debug,evaltrace,noop} | perl -pe 
 's/^/localtime().: /e'
 snip
 Sun Dec  9 13:05:35 2012: notice: Finished catalog run in 2.43 seconds
 Sun Dec  9 13:05:35 2012: Changes:
 Sun Dec  9 13:05:35 2012: Events:
 Sun Dec  9 13:05:35 2012: Total: 1
 Sun Dec  9 13:05:35 2012:  Noop: 1
 Sun Dec  9 13:05:35 2012: Resources:
 Sun Dec  9 13:05:35 2012:   Out of sync: 1
 Sun Dec  9 13:05:35 2012: Total: 22
 Sun Dec  9 13:05:35 2012:   Skipped: 6
 Sun Dec  9 13:05:35 2012: Time:
 Sun Dec  9 13:05:35 2012: Resources: 0.00
 Sun Dec  9 13:05:35 2012:Filebucket: 0.00
 Sun Dec  9 13:05:35 2012:   Package: 0.00
 Sun Dec  9 13:05:35 2012:  File: 0.00
 Sun Dec  9 13:05:35 2012:  Firewall: 0.01
 Sun Dec  9 13:05:35 2012:  Exec: 0.14
 Sun Dec  9 13:05:35 2012:  Last run: 1355079935
 Sun Dec  9 13:05:35 2012:Config retrieval: 2.45
 Sun Dec  9 13:05:35 2012: Total: 2.61
 Sun Dec  9 13:05:35 2012: Version:
 Sun Dec  9 13:05:35 2012:Config: 1355077701
 Sun Dec  9 13:05:35 2012:Puppet: 2.7.18

 Uncommenting include apache and require apache::mod::dev in 
 puppetlabs-passenger about 40 seconds are added to the compile time.  I 
 went through disabled all modules and parameters, and found that enabling 
 the passenger module alone with Apache included caused the huge delay.

 Catalog: http://pastebin.com/wwcKgX5b
 # puppet agent --{summarize,test,debug,evaltrace,noop} | perl -pe 
 's/^/localtime().: /e'
 snip
 Sun Dec  9 13:13:08 2012: notice: Finished catalog run in 2.23 seconds
 Sun Dec  9 13:13:08 2012: Changes:
 Sun Dec  9 13:13:08 2012: Events:
 Sun Dec  9 13:13:08 2012: Total: 4
 Sun Dec  9 13:13:08 2012:  Noop: 4
 Sun Dec  9 13:13:08 2012: Resources:
 Sun Dec  9 13:13:08 2012:   Out of sync: 4
 Sun Dec  9 13:13:08 2012:   Skipped: 6
 Sun Dec  9 13:13:08 2012: Total: 80
 Sun Dec  9 13:13:08 2012: Time:
 Sun Dec  9 13:13:08 2012:Filebucket: 0.00
 Sun Dec  9 13:13:08 2012: Resources: 0.00
 Sun Dec  9 13:13:08 2012:   Package: 0.00
 Sun Dec  9 13:13:08 2012:  Firewall: 0.01
 Sun Dec  9 13:13:08 2012:  File: 0.01
 Sun Dec  9 13:13:08 2012: A2mod: 0.03
 Sun Dec  9 13:13:08 2012:   Service: 0.07
 Sun Dec  9 13:13:08 2012:  Exec: 0.14
 Sun Dec  9 13:13:08 2012:  Last run: 1355080388
 Sun Dec  9 13:13:08 2012:Config retrieval: 42.79
 Sun Dec  9 13:13:08 2012: Total: 43.06
 Sun Dec  9 13:13:08 2012: Version:
 Sun Dec  9 13:13:08 2012:Config: 1355080261
 Sun Dec  9 13:13:08 2012:Puppet: 2.7.18


 The install is via RPM.  I'm using the Fedora SRPMs rebuilt for CentOS 6. 
  The Puppet master has two environments, development and production with 
 this as the puppet.conf

 # cat /etc/puppet/puppet.conf
 ---
 [main]
 server= puppetmaster.tld
 logdir= /var/log/puppet
 vardir= /var/lib/puppet
 ssldir= /var/lib/puppet/ssl
 rundir= /var/run/puppet
 factpath  = $vardir/lib/facter
 pluginsync= true
 templatedir   = $confdir/templates


 [agent]
 report  = true
 environment = production
 preferred_serialization_format  = yaml

 [master]
 modulepath= 
 /etc/puppet/environments/$environment/modules:/etc/puppet/modules
 manifest  = /etc/puppet/manifests/site.pp
 environment   = production
 autosign  = false
 

Re: [Puppet Users] problems with puppetdb

2012-12-19 Thread Ryan Bond
It seems that once I cut over to postgres the puppet user was no longer
able to launch puppetdb.

The easy fix was changing the user to root in /etc/default/puppetdb...but
I doubt this is something I'll want to leave in place.


On Tue, Dec 18, 2012 at 5:17 PM, Peter Brown rendhal...@gmail.com wrote:

 On 18 December 2012 15:50, Ryan Bond drb...@gmail.com wrote:

 Was this issue ever resolved? I've been experiencing the same symptoms,
 ever since I switched over to postgresql.

 Interestingly enough, when I run *java -jar
 /usr/share/puppetdb/puppetdb.jar services -c /etc/puppetdb/conf.ini * instead
 of the init script, puppetdb fires up with no problems.

 Any feedback would be appreciated.


 I had the issue on you home testing setup and haven't looked at it for a
 while.

 I use puppetdb with a postgresql backed on CentOS at work and it works
 pretty well.



 Thanks,
 Ryan


 On Friday, July 20, 2012 11:24:33 AM UTC-5, Chris Price wrote:

 OK, yes, the most important bit from that log output is this:

 SelectChannelConnector@**localhost:8080

 If you hit port 8080 with a browser and/or via telnet, it should be
 open.  Ideally there should also be some output about opening port 8081 for
 SSL connections, but it's entirely possible that the packaging issues that
 you brought to our attention are the reason that that did not get
 configured properly.  We can dig into your jetty.ini file to investigate
 that if needed.

 As for the netstat output: what arguments are you calling it with?  On
 my system, I get (filtered down to the relevant bits):

 cprice@localhost ~/work/puppetdb $ netstat -ntpl
 (Not all processes could be identified, non-owned process info
  will not be shown, you would have to be root to see it all.)
 Active Internet connections (only servers)
 Proto Recv-Q Send-Q Local Address   Foreign Address
 State   PID/Program name
 tcp6   0  0 127.0.0.1:8080  :::*
  LISTEN  24802/java
 tcp6   0  0 192.168.101.134:8081:::*
  LISTEN  24802/java

 So, I can see port 8080 and 8081 open.  It's possible that there may be
 a few additional IPv4/tcp ports open that are owned by java
 processes--these could perhaps be attributed to ActiveMQ or our embedded
 database.  Would love to see how this output matches up with yours.

 Thanks
 Chris


 On Thursday, July 19, 2012 8:15:37 PM UTC-7, Pete wrote:

 On 20 July 2012 11:20, Chris Price ch...@puppetlabs.com wrote:
  Hello Pete,
 
  Do you have a reliable way to reproduce the port issue that you
 mentioned?
  We'd like to troubleshoot it further but haven't found any way to
 reproduce
  it on our end yet.
 
  If you're not getting log output in /var/log/puppetdb, can you please
 try
  the following?:
 
  1. Edit the file /etc/puppetdb/conf.d/config.**ini, and comment out
 the
  logging-config line.
  2. Run this command:
 
  java -jar /usr/share/puppetdb/puppetdb.**jar services -c
 /etc/puppetdb/conf.d

 I tried that but only got INFO level logging
 I edited the log4j.properties file and turned on debug level console
 logging and got this output


 root@korolev:~# java -jar /usr/share/puppetdb/puppetdb.**jar services
 -c /etc/puppetdb/conf.ini
 2012-07-20 13:03:40,982 INFO  [puppetlabs.jetty] Removing buggy
 security provider SunPKCS11-NSS version 1.7
 2012-07-20 13:03:46,916 INFO  [cli.services] PuppetDB version 0.9.2
 2012-07-20 13:03:48,490 INFO  [cli.services] Starting broker
 2012-07-20 13:03:51,892 INFO  [cli.services] Starting 2 command
 processor threads
 2012-07-20 13:03:51,896 INFO  [cli.services] Starting query server
 2012-07-20 13:03:51,897 INFO  [cli.services] Starting database
 compactor (60 minute interval)
 2012-07-20 13:03:52,015 INFO  [cli.services] Beginning database
 compaction
 org.eclipse.jetty.ssl.password : 2012-07-20 13:03:52,420 INFO
 [cli.services] Finished database compaction
 ^C2012-07-20 13:08:27,976 INFO  [cli.services] Shutdown request
 received; puppetdb exiting.
 root@korolev:~# java -jar /usr/share/puppetdb/puppetdb.**jar services
 -c
 /etc/puppetdb/conf.ini
 2012-07-20 13:08:44,944 INFO  [puppetlabs.jetty] Removing buggy
 security provider SunPKCS11-NSS version 1.7
 2012-07-20 13:08:50,008 INFO  [main] [cli.services] PuppetDB version
 0.9.2
 2012-07-20 13:08:50,008 DEBUG [main] [bonecp.BoneCPDataSource] JDBC
 URL = 
 jdbc:postgresql://127.0.0.1:**5432/puppetdbhttp://127.0.0.1:5432/puppetdb,
 Username = puppet,
 partitions = 5, max (per partition) = 10, min (per partition) = 1,
 helper threads = 3, idle max age = 60 min, idle test period = 240 min
 2012-07-20 13:08:50,348 INFO  [main] [cli.services] Starting broker
 2012-07-20 13:08:54,677 DEBUG [main] [index.BTreeIndex] loading
 2012-07-20 13:08:54,744 DEBUG [main] [index.BTreeIndex] loading
 2012-07-20 13:08:54,748 DEBUG [main] [index.BTreeIndex] loading
 2012-07-20 13:08:54,748 DEBUG [main] [index.BTreeIndex] loading
 2012-07-20 13:08:54,748 DEBUG [main] [index.BTreeIndex] loading
 2012-07-20 13:08:54,757 DEBUG [main] 

Re: [Puppet Users] problems with puppetdb

2012-12-19 Thread Chris Price
Hi Ryan,

The puppetdb process shouldn't be trying to manipulate the postgres process 
in any way--it should only be communicating with it via a socket, and the 
authentication should be based on the postgres database user account rather 
than the system user account.  Are you seeing any errors in your puppetdb 
logs when you run it as the 'puppet' user?

Thanks!
Chris

On Wednesday, December 19, 2012 7:54:44 AM UTC-8, Ryan Bond wrote:

 It seems that once I cut over to postgres the puppet user was no longer 
 able to launch puppetdb.

 The easy fix was changing the user to root in 
 /etc/default/puppetdb...but I doubt this is something I'll want to leave in 
 place.


 On Tue, Dec 18, 2012 at 5:17 PM, Peter Brown rendh...@gmail.comjavascript:
  wrote:

 On 18 December 2012 15:50, Ryan Bond drb...@gmail.com javascript:wrote:

 Was this issue ever resolved? I've been experiencing the same symptoms, 
 ever since I switched over to postgresql.

 Interestingly enough, when I run *java -jar 
 /usr/share/puppetdb/puppetdb.jar services -c /etc/puppetdb/conf.ini * 
 instead 
 of the init script, puppetdb fires up with no problems.

 Any feedback would be appreciated.


 I had the issue on you home testing setup and haven't looked at it for a 
 while.

 I use puppetdb with a postgresql backed on CentOS at work and it works 
 pretty well.
  

  
 Thanks,
 Ryan


 On Friday, July 20, 2012 11:24:33 AM UTC-5, Chris Price wrote:

 OK, yes, the most important bit from that log output is this:

 SelectChannelConnector@**localhost:8080

 If you hit port 8080 with a browser and/or via telnet, it should be 
 open.  Ideally there should also be some output about opening port 8081 
 for 
 SSL connections, but it's entirely possible that the packaging issues that 
 you brought to our attention are the reason that that did not get 
 configured properly.  We can dig into your jetty.ini file to investigate 
 that if needed.

 As for the netstat output: what arguments are you calling it with?  On 
 my system, I get (filtered down to the relevant bits):

 cprice@localhost ~/work/puppetdb $ netstat -ntpl
 (Not all processes could be identified, non-owned process info
  will not be shown, you would have to be root to see it all.)
 Active Internet connections (only servers)
 Proto Recv-Q Send-Q Local Address   Foreign Address 
 State   PID/Program name 
 tcp6   0  0 127.0.0.1:8080  :::*   
  LISTEN  24802/java  
 tcp6   0  0 192.168.101.134:8081:::*   
  LISTEN  24802/java  

 So, I can see port 8080 and 8081 open.  It's possible that there may be 
 a few additional IPv4/tcp ports open that are owned by java 
 processes--these could perhaps be attributed to ActiveMQ or our embedded 
 database.  Would love to see how this output matches up with yours.

 Thanks
 Chris

  
 On Thursday, July 19, 2012 8:15:37 PM UTC-7, Pete wrote:

 On 20 July 2012 11:20, Chris Price ch...@puppetlabs.com wrote: 
  Hello Pete, 
  
  Do you have a reliable way to reproduce the port issue that you 
 mentioned? 
  We'd like to troubleshoot it further but haven't found any way to 
 reproduce 
  it on our end yet. 
  
  If you're not getting log output in /var/log/puppetdb, can you 
 please try 
  the following?: 
  
  1. Edit the file /etc/puppetdb/conf.d/config.**ini, and comment out 
 the 
  logging-config line. 
  2. Run this command: 
  
  java -jar /usr/share/puppetdb/puppetdb.**jar services -c 
 /etc/puppetdb/conf.d 

 I tried that but only got INFO level logging 
 I edited the log4j.properties file and turned on debug level console 
 logging and got this output 


 root@korolev:~# java -jar /usr/share/puppetdb/puppetdb.**jar 
 services -c /etc/puppetdb/conf.ini 
 2012-07-20 13:03:40,982 INFO  [puppetlabs.jetty] Removing buggy 
 security provider SunPKCS11-NSS version 1.7 
 2012-07-20 13:03:46,916 INFO  [cli.services] PuppetDB version 0.9.2 
 2012-07-20 13:03:48,490 INFO  [cli.services] Starting broker 
 2012-07-20 13:03:51,892 INFO  [cli.services] Starting 2 command 
 processor threads 
 2012-07-20 13:03:51,896 INFO  [cli.services] Starting query server 
 2012-07-20 13:03:51,897 INFO  [cli.services] Starting database 
 compactor (60 minute interval) 
 2012-07-20 13:03:52,015 INFO  [cli.services] Beginning database 
 compaction 
 org.eclipse.jetty.ssl.password : 2012-07-20 13:03:52,420 INFO 
 [cli.services] Finished database compaction 
 ^C2012-07-20 13:08:27,976 INFO  [cli.services] Shutdown request 
 received; puppetdb exiting. 
 root@korolev:~# java -jar /usr/share/puppetdb/puppetdb.**jar services 
 -c 
 /etc/puppetdb/conf.ini 
 2012-07-20 13:08:44,944 INFO  [puppetlabs.jetty] Removing buggy 
 security provider SunPKCS11-NSS version 1.7 
 2012-07-20 13:08:50,008 INFO  [main] [cli.services] PuppetDB version 
 0.9.2 
 2012-07-20 13:08:50,008 DEBUG [main] [bonecp.BoneCPDataSource] JDBC 
 URL = 
 

[Puppet Users] Template in site.pp

2012-12-19 Thread rsom
Can I use a template in site.pp?

I have a templates directory in my /etc/puppet directory which has my 
template, but i get this error message:
Wed Dec 19 09:19:23 -0800 2012 Puppet (err): Could not retrieve catalog 
from remote server: Error 400 on SERVER: Could not find template 
'server.xml.erb' at /etc/puppet/manifests/tcuser.pp:52 on node 
qa-bruckner.corp.certifydatasystems.com

Do I have to configure puppet master somehow to let it know that there is 
content in that directory?

TIA.

R,
rahul

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/XJVApz3-rR0J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Reg : Error in puppet agent in Windows

2012-12-19 Thread krishna bhaskara rao
Hi John,

Thank you for your response.

But why should I create site.pp in agent node(Windows). As my 
understanding, site.pp should be in puppet master server it self and it 
will execute the catalog in agent node.

Can you give me clarification on this If my understanding is wrong?.
Same scenario working in linux(puppet master) to linux(puppet agent). There 
I didnt create any site.pp in agent node.


With Regards, 
Krishna Bhaskar.

On Wednesday, 19 December 2012 19:37:27 UTC+5:30, jcbollinger wrote:



 On Wednesday, December 19, 2012 5:47:50 AM UTC-6, krishna bhaskara rao 
 wrote:

 Hi,

 I installed Open source puppet 3.0 .1in Windows machine and puppet master 
 3.0.1 in red hat linux machine. I did all the necessary configurations.
 C:\Documents and Settings\All Users\Application 
 Data\PuppetLabs\puppet\etc\puppet.conf-  server = test.posmaster.internal
 Added entry in hosts file.

 While execute ping command ping (ping test.posmaster.internal) giving 
 response.
 But while executing puppet agent --server test.posmaster.internal 
 --debug I am getting below error

 *Info: Retrieving plugin*
 *Error: Could not retrieve catalog from remote server: Error 400 on 
 SERVER: Could*
 * not find default node or by name with 
 'testposagentoneinternal.ec2.internal, te*
 *stposagentoneinternal.ec2, testposagentoneinternal' on node 
 testposagentoneinter*
 *nal.ec2.internal*
 *Warning: Not using cache on failed catalog*
 *Error: Could not retrieve catalog; skipping run*
 *
 *
 Please help me to solve this.


 Puppet is telling you that it cannot match the client to any node it knows 
 about, and you have not declared default node configuration for it to fall 
 back on.  Consult the Puppet language docs for full details (
 http://docs.puppetlabs.com/puppet/3/reference/lang_node_definitions.html), 
 but the quickest, simplest (but most temporary) solution is to add this to 
 your site.pp:

 node default {
 }

 Note that although that should silence the error message, it does not 
 declare any classes or resources to apply to your nodes.  Do digest the 
 node (and other) documentation to understand how to go on from there.


 John



-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/VQR482wdzCMJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Template in site.pp

2012-12-19 Thread denmat
Hi,

I'm pretty sure there is a template directory config option in puppet conf
which would default to /var/lib/puppet/templates (you'll need to verify
this because I can't at the moment).

If so you should be able to pass that on the command line like so,
puppet agent --templatedir path options

Of course you can go on to use modules which expects to find templates in
the modules template directory.

This is assuming your declaration looks okay, you haven't included your
manifest details.

THT,
Den
 On 20 Dec 2012 04:21, r...@certifydatasystems.com wrote:

 Can I use a template in site.pp?

 I have a templates directory in my /etc/puppet directory which has my
 template, but i get this error message:
 Wed Dec 19 09:19:23 -0800 2012 Puppet (err): Could not retrieve catalog
 from remote server: Error 400 on SERVER: Could not find template
 'server.xml.erb' at /etc/puppet/manifests/tcuser.pp:52 on node
 qa-bruckner.corp.certifydatasystems.com

 Do I have to configure puppet master somehow to let it know that there is
 content in that directory?

 TIA.

 R,
 rahul

 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/puppet-users/-/XJVApz3-rR0J.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.


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



Re: [Puppet Users] Template in site.pp

2012-12-19 Thread R.I.Pienaar


- Original Message -
 From: r...@certifydatasystems.com
 To: puppet-users@googlegroups.com
 Sent: Wednesday, December 19, 2012 5:21:10 PM
 Subject: [Puppet Users] Template in site.pp
 
 Can I use a template in site.pp?
 
 I have a templates directory in my /etc/puppet directory which has my
 template, but i get this error message:
 Wed Dec 19 09:19:23 -0800 2012 Puppet (err): Could not retrieve
 catalog from remote server: Error 400 on SERVER: Could not find
 template 'server.xml.erb' at /etc/puppet/manifests/tcuser.pp:52 on
 node qa-bruckner.corp.certifydatasystems.com
 
 Do I have to configure puppet master somehow to let it know that
 there is content in that directory?

set templatedir in your configuration file in the [master] section to
a directory full of templates.

But you really should use modules and not just classes or site.pp like this

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



Re: [Puppet Users] Puppet 3.0 fails install on Solaris 10 w/ ruby 1.8.7

2012-12-19 Thread Philip Brown


On Wednesday, December 19, 2012 6:14:48 AM UTC-8, jcbollinger wrote:




 The time spent up front to do the job right often produces much more time 
 saved later on (indeed, that's a large component of right).  In any case, 
 PuppetLabs provides pre-built packages for a lot of different package 
 management systems, so for the Puppet stack in particular, the up-front 
 time you would need to invest is less than you may suppose.



That being said, since puppet IS ruby code, a large component of 'right' 
could reasonably be defined as there should be a functional ruby gem for 
it!
 

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/axEkipTl29AJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Template in site.pp

2012-12-19 Thread Rahul Somasunderam
Thanks!

On Dec 19, 2012, at 9:33 AM, R.I.Pienaar r...@devco.net wrote:

 
 
 - Original Message -
 From: r...@certifydatasystems.com
 To: puppet-users@googlegroups.com
 Sent: Wednesday, December 19, 2012 5:21:10 PM
 Subject: [Puppet Users] Template in site.pp
 
 Can I use a template in site.pp?
 
 I have a templates directory in my /etc/puppet directory which has my
 template, but i get this error message:
 Wed Dec 19 09:19:23 -0800 2012 Puppet (err): Could not retrieve
 catalog from remote server: Error 400 on SERVER: Could not find
 template 'server.xml.erb' at /etc/puppet/manifests/tcuser.pp:52 on
 node qa-bruckner.corp.certifydatasystems.com
 
 Do I have to configure puppet master somehow to let it know that
 there is content in that directory?
 
 set templatedir in your configuration file in the [master] section to
 a directory full of templates.
 
 But you really should use modules and not just classes or site.pp like this
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to 
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.
 



smime.p7s
Description: S/MIME cryptographic signature


[Puppet Users] cannot check in new clients to master certificate revoked

2012-12-19 Thread cblum...@gmail.com
I have migrated to a load balanced setup for puppet masters.  Afterwards, I 
was able to check new clients in but that has suddenly stopped working.

puppet 2.7.14

new setup:
puppetca, acts as a master to puppetmaster servers
n number of puppetmasters, acts as a puppetmaster to clients

During the initial setup I copied the original puppetmaster's ssl directory 
to the new ca


When checking in I receive the following error:

root@nova-api-b01-r2961:~# puppet agent --test --server 
puppetmaster.somedomain.com --ca_server puppetca.somedomain.com 
--pluginsync true --waitforcert 20
info: Creating a new SSL key for api.somedomain.com
warning: peer certificate won't be verified in this SSL session
info: Caching certificate for ca
warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session
info: Creating a new SSL certificate request for api.somedomain.com
info: Certificate Request fingerprint (md5): 
43:BE:38:4E:46:E7:2B:89:EB:A9:65:15:90:2C:63:CE
warning: peer certificate won't be verified in this SSL session
warning: peer certificate won't be verified in this SSL session
info: Caching certificate for api.somedomain.com
info: Retrieving plugin
info: Caching certificate_revocation_list for ca
err: /File[/var/lib/puppet/lib]: Failed to generate additional resources 
using 'eval_generate: SSL_connect returned=1 errno=0 state=SSLv3 read 
server certificate B: certificate verify failed.  This is often because the 
time is out of sync on the server or client
err: /File[/var/lib/puppet/lib]: Could not evaluate: SSL_connect returned=1 
errno=0 state=SSLv3 read server certificate B: certificate verify failed. 
 This is often because the time is out of sync on the server or client 
Could not retrieve file metadata for 
puppet://puppetmaster.somedomain.com/plugins: SSL_connect returned=1 
errno=0 state=SSLv3 read server certificate B: certificate verify failed. 
 This is often because the time is out of sync on the server or client
No LSB modules are available.
err: Could not retrieve catalog from remote server: SSL_connect returned=1 
errno=0 state=SSLv3 read server certificate B: certificate verify failed. 
 This is often because the time is out of sync on the server or client
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: SSL_connect returned=1 errno=0 state=SSLv3 read 
server certificate B: certificate verify failed.  This is often because the 
time is out of sync on the server or client

I have tried multiple times to clean cert on ca and remove ssl dir on the 
new client with same outcome.

Running tshark I get http://pastie.org/5553830 I think the relevant message 
here is:
0.676760 10.23.245.109 - 10.23.244.194 TLSv1 Alert (Level: Fatal, 
Description: Certificate Revoked)

I think that I am being hit by either 
http://projects.puppetlabs.com/issues/8125 or 
http://projects.puppetlabs.com/issues/4948 or a combination of the two.  I 
tried the workaround in http://projects.puppetlabs.com/issues/8125 but 
receive the same error.

I am really trying to avoid resigning everything as I have a great many 
servers.

Any ideas?

Chris


-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/x0EbqqpwVoUJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Hiera, AIX, please help :)

2012-12-19 Thread Worker Bee
Hi Everyone;

First, is my understanding correct that all boxes with agents 3.0 will
need to have hiera installed?  I have gotten conflicting answers and I have
found different answers in the documentation as well.  Can anyone clear
this up for me?

And, if it is needed.. has anyone gotten it working on AIX?

Thanks!
Bee

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



[Puppet Users] Web interface to Facter information, system config reporting?

2012-12-19 Thread Forrie
In our department, we recently bought an install of HP's SIM agent -- it's 
some hacky configuration reporting and management platform that also 
facilitates firmware updates, etc.   I don't care for it.

For one, it requires root logins, but it also has agents that report -- it 
also may have the ability to change the system.

My boss is looking for information that is presented in a GUI and easily 
reportable.   I'm thinking Facter is a good candidate here - we can tell it 
what version of software (SSH, etc), OS, etc.   But, it's all command-line. 
  I'm wondering if there is (or if someone is working on) a web-based GUI 
that can report these statistics (we don't need the overhead of something 
like puppet-dashboard).

And for misc things, we can always write custom facts.   Of course, this 
would only apply to systems that are running puppet.  We have others that 
are not.

I've seen some other hacks out there that do different types of reporting - 
if there's some better approach (open source), that would be great to know 
about.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/7L0fdmA0VNIJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Hiera, AIX, please help :)

2012-12-19 Thread llowder


On Wednesday, December 19, 2012 1:21:04 PM UTC-6, Worker Bee wrote:

 Hi Everyone;

 First, is my understanding correct that all boxes with agents 3.0 will 
 need to have hiera installed?  I have gotten conflicting answers and I have 
 found different answers in the documentation as well.  Can anyone clear 
 this up for me?


If you are using hiera, then it must be installed on the master, regardless 
of the version. However, puppet 3.0.0+ have it listed as a dependency so 
will install it when you install the puppetmaster package.

If you are running in a master/agent setup, you do NOT need hiera on the 
agent nodes. If you are running masterless, then every node will need it 
installed.
 

 And, if it is needed.. has anyone gotten it working on AIX?

 Thanks!
 Bee


-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/RRX-wZXO880J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Web interface to Facter information, system config reporting?

2012-12-19 Thread Aaron Russo
I wrote a Mediawiki bot that connects to our puppet master, grabs all of
the facter data that has been reported by clients, and shoves that into the
host's page on our wiki.

We format the facter data in our wiki by using a custom tag: bb
facter_key/. Once the bot runs, it expands to bb
facter_keyfacter_value/bb.  I have this set to run every 5 minutes to
keep our wiki up to date.

The important code for said bot is here:

http://github.com/arusso23/bobbie (bot framework)
https://github.com/arusso23/libpuppet (puppet rest library)

The documentation is admittedly lacking, but if you're interested in using
it, feel free to email me off-list.

Cheers,

Aaron Russo
IST Infrastructure Services, Unix Group
UC Berkeley
---
Desk:   510-643-5550Mobile: 510-206-1532
IM: aru...@berkeley.edu (XMPP/Jabber)




On Wed, Dec 19, 2012 at 11:27 AM, Forrie for...@gmail.com wrote:

 In our department, we recently bought an install of HP's SIM agent -- it's
 some hacky configuration reporting and management platform that also
 facilitates firmware updates, etc.   I don't care for it.

 For one, it requires root logins, but it also has agents that report -- it
 also may have the ability to change the system.

 My boss is looking for information that is presented in a GUI and easily
 reportable.   I'm thinking Facter is a good candidate here - we can tell it
 what version of software (SSH, etc), OS, etc.   But, it's all command-line.
   I'm wondering if there is (or if someone is working on) a web-based GUI
 that can report these statistics (we don't need the overhead of something
 like puppet-dashboard).

 And for misc things, we can always write custom facts.   Of course, this
 would only apply to systems that are running puppet.  We have others that
 are not.

 I've seen some other hacks out there that do different types of reporting
 - if there's some better approach (open source), that would be great to
 know about.

 Thanks.

 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/puppet-users/-/7L0fdmA0VNIJ.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.


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



Re: [Puppet Users] Re: Reg : Error in puppet agent in Windows

2012-12-19 Thread Matthew Burgess
On Wed, Dec 19, 2012 at 5:23 PM, krishna bhaskara rao
krishna...@gmail.com wrote:
 Hi John,

 Thank you for your response.

 But why should I create site.pp in agent node(Windows). As my understanding,
 site.pp should be in puppet master server it self and it will execute the
 catalog in agent node.

 Can you give me clarification on this If my understanding is wrong?.
 Same scenario working in linux(puppet master) to linux(puppet agent). There
 I didnt create any site.pp in agent node.

Your understanding (of Puppet) is correct, the site.pp should reside
on the puppet master.

I can't see where John suggested you create a site.pp on the agent though.

What does your site.pp on the puppet master look like?

Regards,

Matt.

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



[Puppet Users] Puppet pushes facts even when I'm not including the module

2012-12-19 Thread David Kerr
Howdy,

I've got a module that's the equivalent of:
/etc/puppet/modules/mymodule/lib/facter/myfact.rb

myfact.rb seems to get pushed to all nodes regardless of whether or not i 
include mymodule for that node.

my factpath is 
factpath = $vardir/lib/facter:$vardir/facts

I'm on puppet v 3.0.0

I'm fairly certain that my site manifests are correct, so I don't believe 
that this node is falling through and hitting a different node's set of 
includes.

It's unclear if this is the expected and correct behavior for puppet?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/uF84T_DAxAYJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Puppet pushes facts even when I'm not including the module

2012-12-19 Thread Ramin K

On 12/19/2012 11:55 AM, David Kerr wrote:

Howdy,

I've got a module that's the equivalent of:
/etc/puppet/modules/mymodule/lib/facter/myfact.rb

myfact.rb seems to get pushed to all nodes regardless of whether or not
i include mymodule for that node.

my factpath is
 factpath = $vardir/lib/facter:$vardir/facts

I'm on puppet v 3.0.0

I'm fairly certain that my site manifests are correct, so I don't
believe that this node is falling through and hitting a different node's
set of includes.

It's unclear if this is the expected and correct behavior for puppet?

Thanks


	This is the correct behavior and makes sense if you think about the 
order of transactions.


1. client connects to master and does cert things
2. master sends facts to client
3. client runs facts, POST to master requesting catalog
4. master generates catalog based on facts
5. client receives catalog and executes it

Because facts are run before the catalog is requested they can't be 
doled out on demand.


Ramin

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



Re: [Puppet Users] Unable to connect to master...

2012-12-19 Thread Jakov Sosic
On 11/26/2012 11:11 AM, Rajeev Iyer wrote:
 Hi ,
 
   I need help here. I am running my master on RHEL 64 bit and I am
 trying to connect my agent from Solaris running on Solaris 10.
 I have put the entries for both master and agent on /etc/hosts. I have
 also updated the /etc/puppet/puppet.conf for the master. When I ping the
 master the server, the connection is going through. But I am not able to
 telnet master 8140 as connection to master is failing. Can someone
 help me here? I am a little desperate to get it right.
 
 Thanks in advance,

Can you try 'telnet localhost 8140' on the master to see if puppetmaster
is running at all?

Also, can you check weather your firewall on the master is set up
correctly allowing traffic to 8140?

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



Re: [Puppet Users] Could not request certificate: Retrieved certificate does not match private key; please remove certificate from server and regenerate it with the current key

2012-12-19 Thread Jakov Sosic
On 11/28/2012 02:53 PM, krishna bhaskara rao wrote:

 I tried after cleaning certificates in both the machines by using
 puppetca --clean --all also, same error I am getting.
 
 Can any one provide a way to come out of this issue.

Try to sync time on your machines (ntpdate some_ntp_server) . Maybe
that's your issue.




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



[Puppet Users] passing parameters

2012-12-19 Thread Michael Hüttermann
Hello,

I use a parameterized class and declare it as a resource. How can I pass
the parameters from outside any declaration or manifest, during runtime?
For example, can I pass the parameters during a call of puppet kick ?


Thank you.


Best regards
Michael

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



[Puppet Users] Announce: Hiera 1.1.2-rc1 available

2012-12-19 Thread Matthaus Owens
Hiera 1.1.2-rc1 is a release candidate in the 1.x series with bug fixes.

Downloads are available at:
 * Source: https://downloads.puppetlabs.com/hiera/hiera-1.1.2-rc1.tar.gz

RPMs are available at https://yum.puppetlabs.com/el or /fedora

Rubygem available at http://rubygems.org/gems/hiera or by using
the --pre option to gem install.

Debs are available at https://apt.puppetlabs.com

Mac package is available at
https://downloads.puppetlabs.com/mac/hiera-1.1.2-rc1.dmg

Please report feedback via the Puppet Labs Redmine site, using an
affected version of 1.1.2-rc1:
 http://projects.puppetlabs.com/projects/hiera/

===
## Hiera 1.1.2-rc1 Bug Fixes ##
===

(#17087) Fix backend key in hiera.yaml

Previously the hiera.yaml that is laid down in packaged installs
used 'backend'
instead of 'backends' which means that hiera falls through to the
default yaml
backend, as no 'backends' key exists in the config. This commit fixes the
hiera.yaml file to use 'backends' instead.

===
## Hiera 1.1.2-rc1 Changelog ##
===
Jeff McCune (1):
  0eaa709 (Maint) Make Hiera operate with /dev/null config file

Matthaus Owens (5):
  483f58b Add quantal to default cows list in build_defaults.
  8439326 Remove fedora 15 mocks from default mocks in build_defaults.
  fa794bd (#17087) Fix backend key in hiera.yaml
  9937977 (maint) Handle lack of RSpec::Core::RakeTask gracefully
  3d8785c Update Hiera VERSION to 1.1.2-rc1

Sharif Nassar (1):
  ee341f7 Spelling.

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



Re: [Puppet Users] passing parameters

2012-12-19 Thread Peter Brown
Have a look here.
I am assuming you are running puppet 3 but the syntax is the same in 2.6
and 2.7.
http://docs.puppetlabs.com/puppet/3/reference/lang_classes.html#using-resource-like-declarations




On 20 December 2012 07:45, Michael Hüttermann mich...@huettermann.netwrote:

 Hello,

 I use a parameterized class and declare it as a resource. How can I pass
 the parameters from outside any declaration or manifest, during runtime?
 For example, can I pass the parameters during a call of puppet kick ?


 Thank you.


 Best regards
 Michael

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



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



[Puppet Users] Announce: Facter 1.6.17-rc1 Available

2012-12-19 Thread Moses Mendoza
Facter 1.6.17-rc1 is a maintenance release candidate in the 1.6.x
branch with bug fixes.

Downloads are available at:
 * Source: https://downloads.puppetlabs.com/facter/facter-1.6.17-rc1.tar.gz

RPMs are available at https://yum.puppetlabs.com/el or /fedora

Rubygem available at http://rubygems.org/gems/facter or by using
the --pre option to gem install.

Debs are available at https://apt.puppetlabs.com

Mac package is available at
https://downloads.puppetlabs.com/mac/facter-1.6.17-rc1.dmg

See the Verifying Puppet Download section at:

http://projects.puppetlabs.com/projects/puppet/wiki/Downloading_Puppet#Verifying+Puppet+Downloads

Please report feedback via the Puppet Labs Redmine site, using a
affected version of 1.6.17-rc1:
 http://projects.puppetlabs.com/projects/facter/

Release Notes at: https://projects.puppetlabs.com/projects/facter/wiki/Wiki

Fixes targeted at the final of this version in our bug tracker:
http://projects.puppetlabs.com/versions/359


## Facter 1.6.17-rc1 Changelog ##


Adrien Thebo (2):
  e35acbb (#17840) Use enum_cpuinfo for x86 arch
  e5ca916 (maint) Remove processor_spec duplicate stubbing

Alex Harvey (1):
  b62b3f6 (#17487) Add support for HPUX NIC bonding in IP facts

Chris Barker (1):
  3628533 (#15708) fixes facter file mappings for pkgbuild

Jared Curtis (2):
  41909b7 (#15001) ifconfig regex will optionally match 'addr:'
  ae34893 Test data for net-tools 1.60

Jeff McCune (4):
  c0b123b (#16626) Exercise IP.get_interface_value(bond0,macaddress)
  10a1380 (Maint) Add YARD doc for get_interface_value
  656c5ae (#17925) Fix ec2_userdata: 404 Not Found Error
  0e514b8 (#15001) Add spec examples for ipaddress fact

Jos Backus (1):
  7bba9b2 (#16626) Fix handling of bonded Linux interfaces

Josh Cooper (1):
  0b672ed (#17855) Rescue Timeout::Error

Matthaus Owens (2):
  09ad0bb Remove fedora 15 mocks, as f15 is EOL.
  5cfd683 Add quantal to default cows list.

Moses Mendoza (1):
  d770aec Update lib/facter/version.rb for 1.6.17-rc1

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



[Puppet Users] Changing Agent Environment Via Custom Fact

2012-12-19 Thread joel johnston
It is very likely that I don't completely understand the order of 
operations as they pertain to agent level variables (such as environment,) 
but I'm not seeing where this should be a problem.  

What I'm Trying To Do:  Set environment on a host by setting a custom fact.

How I'm trying to achieve this:  I have a custom module that parses ec2 
user data value pairs into facts on a host at instance spin.  When I pass 
environment = whatever, I want that environment value to override the 
agent's puppet.conf environment value.  I'm trying to achieve this 
currently with another custom module:

require 'facter'
if Facter.value('environment')
envstring = Facter.value('environment')
$environment = envstring
else
envstring = ''
end

Please let me know if this is just way off base including any way this 
might be possible. 

Thanks In Advance,

Joel

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/Rs7_SN6r9VIJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Puppet 3.0 fails install on Solaris 10 w/ ruby 1.8.7

2012-12-19 Thread Alex Harvey


On Thursday, December 20, 2012 4:49:33 AM UTC+11, Philip Brown wrote:


 That being said, since puppet IS ruby code, a large component of 'right' 
 could reasonably be defined as there should be a functional ruby gem for 
 it!


And if that doesn't work for you there are two other considerations -

- some people need to maintain their own patches for facter  puppet.  At 
this point puppet labs has accepted all of my patches upstream but sooner 
or later I expect to encounter a situation where I need to maintain patches 
of my own.

- having a single package manager for the puppet stack means when I want to 
see my installed puppet version I only need to know one command - gem 
list.  So it's easier than having to know the commands for six package 
managers.  And my installed puppet code is always in 
/usr/local/lib/ruby/gems/1.8/gems no matter what platform I'm on.  

Now the best solution would be for every Unix to just standardise on a 
single package management system.  Debian's one is quite good.  Now, 
there's an ideal world for you. :)

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/isVupjCkblgJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: Python PIP and Centos 6

2012-12-19 Thread Joshua Vote
If anyone else is watching this issue: the pull request has been made and 
attached to issue - http://projects.puppetlabs.com/issues/18236

On Wednesday, December 19, 2012 9:58:06 AM UTC+8, Jakov Sosic wrote:

 On 12/18/2012 09:39 AM, Joshua Vote wrote: 
  Yeah, I saw that function. Is there a way I can extend the class and 
  override that method for my own use? Or will I need to make the fix 
  myself and submit a pull request? 

 Pull request would be far better off because everyone would benefit from 
 it. 


 -- 
 Jakov Sosic 
 www.srce.unizg.hr 


-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/zDlezGGPS-wJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Whats the best approach to create a repo of the installers to be used for installing and upgrading in the puppet managed nodes

2012-12-19 Thread Sivaraman Viswanathan
Lets take the example, I am having a jboss-4.2.3 installers as a .tar file. 
In general to install jboss, i ll 
1. untar the jboss-4.2.3 into a prefefined folder (opt/server/jbossas/) 
into  multiple servers
2. untar the openjdk into a preferined path (/opt/software/java)set the 
path in the bash.profile
3. Create server profile in the place where jboss is installed
4. Start the server.

Lets say that I have to do this in 16 nodes (servers).
Now, I should store the jboss and openjdk installers at a central location 
and it should be transferred to the nodes before the 1st step can begin.

I wrote the manifest to perform the requirements form 1 to 4. But not sure 
how can I automate the transfer of the installers from a central repo. I am 
not worried about the type of central repo. It can be a ftp or puppet or 
anything else.

Please help me. I was going through filebucket. Will this help or should i 
write a manifest to get this file from a ftp server?

How to create a file repo which can be referred in puppet manifests?

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/3qIDxQyVVncJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.