[Puppet Users] Re: Random error in the recovery catalog

2011-09-18 Thread ji...@goffaux.fr
Hello,

I'm resolv all problems after installation Apache / Passenger !!

Thanks !!

On 25 août, 02:54, denmat tu2bg...@gmail.com wrote:
 Funny thing.. I just set up apache passenger on my desktop (as opposed
 to my normal apache/passenger puppetmasters) and have the same issue.

 Looking through the apache logs it is showing that it is trying to PUT
 to a directory that doesn't exist on the filesystem.

 title405 Method Not Allowed/title
 /headbody
 h1Method Not Allowed/h1

 Digging a little further the difference between my desktop and the
 servers funnily enough is SELinux. Looking at the audit.log I noticed
 that httpd was not allowed to run the passenger app.

 A lot of trial and audit2allow's later I have it working (kinda).
 Could this be your problem too?

 Cheers,
 Den

 On Aug 25, 8:20 am, Denmat tu2bg...@gmail.com wrote:







  Hi,

  Have you made any changes to your auth.conf? Are you auto signing your 
  certs? How have you configured apache and passenger?

  Here's what you can do as a test. Remove the apache passenger vhost and run 
  puppet using webrick (puppetmasterd). If your client cant connect then your 
  puppet conf needs checking. If it works, then the problem is in your apache 
  configs.

  Cheers,
  Den

  On 24/08/2011, at 20:27, Antoine Benkemoun antoine.benkem...@gmail.com 
  wrote:

   I'm not going to be of much help but I also get your first error message 
   from time to time and it goes away without having me do anything.

   I'm talking about this one :

   err: /File[/var/lib/puppet/lib]: Could not evaluate: SSL_connect
   returned=1 errno=0 state=SSLv3 read server certificate B: certificate
   verify failed Could not retrieve file metadata for 
   puppet://PUPPETMASTER.fqdn/plugins:
   SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:
   certificate verify failed

   I think this may be due to the fact that by default Puppet runs with 
   webrick (please correct me if I'm wrong) or something similar which can 
   only process requests one at a time. Kind of like if this was some sort 
   of disguised timeout. I have not tried to run Puppet with Passenger so I 
   can't confirm this.

   Antoine
   On Wed, Aug 24, 2011 at 12:19 PM, ji...@goffaux.fr ji...@goffaux.fr 
   wrote:
   Does anyone have an idea?

   Thanks you

   On 16 août, 10:42, ji...@goffaux.fr ji...@goffaux.fr wrote:
Hello,

I just set up Puppet / Passenger by following the documentation.
For servers already authenticated key I do not encounter problems, but
for new I have these errors:

--
root@server2:~# puppetd --test --no-daemonize
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 server2.fqdn
info: Certificate Request fingerprint (md5):
F1:2E:F6:D6:8C:B3:F6:6B:D2:4B:C4:72:1C:E4:24:D9
warning: peer certificate won't be verified in this SSL session
err: Could not request certificate: Error 405 on SERVER: !DOCTYPE
HTML PUBLIC -//IETF//DTD HTML 2.0//EN
htmlhead
title405 Method Not Allowed/
title
/
headbody
h1Method Not Allowed/
h1
pThe requested method PUT is not allowed for the URL /production/
certificate_request/server2.fqdn./
p
hr
addressApache/2.2.9 (Debian) DAV/2 SVN/1.5.1 Phusion_Passenger/3.0.7
mod_ssl/2.2.9 OpenSSL/0.9.8g Server at puppetmaster.fqdn Port 8140/
address
/body/
html

Exiting; failed to retrieve certificate and waitforcert is disabled
root@server2:~#
---

Also, I get a new type of error by mail:

---
Tue Aug 16 15:52:08 +0200 2011 //server1.fqdn/Puppet (err): Could not
retrieve catalog from remote server: Error 414 on SERVER: !DOCTYPE
HTML PUBLIC -//IETF//DTD HTML 2.0//EN
htmlhead
title414 Request-URI Too Large/title
/headbody
h1Request-URI Too Large/h1
pThe requested URL's length exceeds the capacity
limit for this server.br /
/p
hr
addressApache/2.2.9 (Debian) DAV/2 SVN/1.5.1 Phusion_Passenger/3.0.7
mod_ssl/2.2.9 OpenSSL/0.9.8g Server at PUPPETMASTER.fqdn Port 8140/
address
/body/html

Tue Aug 16 15:52:08 +0200 2011 //server1.fqdn/Puppet (notice): Using
cached catalog
Tue Aug 16 15:52:08 +0200 2011 //server1.fqdn/Puppet (err): Could not
retrieve catalog; skipping run



I have set the variable:
---
PassengerMaxRequests 1
---

But I doubt that this impact on this error.

Again, thank you!
Jimmy

On 26 juil, 14:33, ji...@goffaux.fr ji...@goffaux.fr wrote:

 Passenger is already installed, but was not configured to Puppet.
 I will do the migration and I will return here.

 Thank you!

 On 25 juil, 17:21, Peter Meier peter.me...@immerda.ch wrote:

   I have about 130 customer puppet.
   I left the default time interval.

  Are you still running with 

Re: [Puppet Users] OpenBSD/i386 Puppet 2.7.3

2011-09-18 Thread James Turnbull
Darren Spruell wrote:
 These don't seem like complementary options to me (complementary to
 minimum/maximum password age, anyway). OpenBSD's useradd(8) is derived
 from NetBSD's so the same situation is likely to occur there.
 
 http://www.openbsd.org/cgi-bin/man.cgi?query=useraddsektion=8
 http://netbsd.gw.com/cgi-bin/man-cgi?useradd+8+NetBSD-current
 
 Is a slightly modified provider needed?
 

Yes. It'd be great if you could log a ticket please.

Thanks

James Turnbull

-- 
James Turnbull
Puppet Labs
1-503-734-8571

Join us for PuppetConf http://www.bit.ly/puppetconfsig, September 22nd
and 23rd in Portland, Oregon, USA.

-- 
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] OpenBSD/i386 Puppet 2.7.3

2011-09-18 Thread Darren Spruell
On Sun, Sep 18, 2011 at 9:12 AM, James Turnbull ja...@puppetlabs.com wrote:
 Darren Spruell wrote:
 These don't seem like complementary options to me (complementary to
 minimum/maximum password age, anyway). OpenBSD's useradd(8) is derived
 from NetBSD's so the same situation is likely to occur there.

 http://www.openbsd.org/cgi-bin/man.cgi?query=useraddsektion=8
 http://netbsd.gw.com/cgi-bin/man-cgi?useradd+8+NetBSD-current

 Is a slightly modified provider needed?


 Yes. It'd be great if you could log a ticket please.

https://projects.puppetlabs.com/issues/9586

Many thanks!

-- 
Darren Spruell
phatbuck...@gmail.com

-- 
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] apt-get --force-yes

2011-09-18 Thread KarthiKeyan. Kesavan
HI,

Thanks . it is working fine . after add the apt-get key

Regards

Chebrian

On Sun, Sep 18, 2011 at 5:34 AM, KarthiKeyan. Kesavan ksd@gmail.comwrote:

 Hi thanks for your details.

 I will update once i test with my repo.

 Regards

 Chebrian

 On Sat, Sep 17, 2011 at 9:13 PM, Sergey Zhuga sergey.zh...@gmail.comwrote:

 If 'apt-get update' gives you the warning like can't find gpg... or so -
 you couldn't install any packages. Try to sign the repo with gpg-key and
 import the key with 'apt-key add'.

 Also you can use Canonical partner repository to install sun-java6-jdk.

 Regards.

 17.09.2011 18:33, KarthiKeyan. Kesavan пишет:

 Hi ,

 Yes, i am trying to install the packages from my local repo .

 Regards

 Chebrian

 On Sat, Sep 17, 2011 at 9:01 PM, Sergey Zhuga sergey.zh...@gmail.com
 mailto:sergey.zh...@gmail.com** wrote:

Do you use unsigned repositories?

17.09.2011 18:07, KarthiKeyan. Kesavan пишет:

Hi,

Not only for jdk i am getting for all the package installation .

_Error status _

E: There are problems and -y was used without --force-yes

Regards

Chebrian

On Sat, Sep 17, 2011 at 8:23 PM, Sergey Zhuga
sergey.zh...@gmail.com mailto:sergey.zh...@gmail.com**
mailto:sergey.zh...@gmail.com
mailto:sergey.zh...@gmail.com**__ wrote:

You should create debconf seeds file before you will install
 the
sun-jdk package, like this:
http://blogs.cae.tntech.edu/__**__mwr/2008/02/05/stupid-**
 puppet-trick-agreeing-to-**the-sun-java-license-with-**
 debconf-preseeds-and-**puppet/http://blogs.cae.tntech.edu/mwr/2008/02/05/stupid-puppet-trick-agreeing-to-the-sun-java-license-with-debconf-preseeds-and-puppet/
http://blogs.cae.tntech.edu/_**_mwr/2008/02/05/stupid-puppet-**
 __trick-agreeing-to-the-sun-__**java-license-with-debconf-__**
 preseeds-and-puppet/http://blogs.cae.tntech.edu/__mwr/2008/02/05/stupid-puppet-__trick-agreeing-to-the-sun-__java-license-with-debconf-__preseeds-and-puppet/
 
http://blogs.cae.tntech.edu/_**_mwr/2008/02/05/stupid-puppet-**
 __trick-agreeing-to-the-sun-__**java-license-with-debconf-__**
 preseeds-and-puppet/http://blogs.cae.tntech.edu/__mwr/2008/02/05/stupid-puppet-__trick-agreeing-to-the-sun-__java-license-with-debconf-__preseeds-and-puppet/
http://blogs.cae.tntech.edu/**mwr/2008/02/05/stupid-puppet-**
 trick-agreeing-to-the-sun-**java-license-with-debconf-**
 preseeds-and-puppet/http://blogs.cae.tntech.edu/mwr/2008/02/05/stupid-puppet-trick-agreeing-to-the-sun-java-license-with-debconf-preseeds-and-puppet/
 

Regards.

17.09.2011 17:39, CHEBRIAN пишет:

Hi ,

I am trying to install jdk thru puppet . i am getting
the force-yes
error .

err:
/Stage[main]/Apiserver::Java/_**___Package[sun-java6-jdk]/__**
 ensure:
change from purged to present failed: Execution of
'/usr/bin/apt-get -
q -y -o DPkg::Options::=--force-**confold install
sun-java6-jdk'
returned 100: Reading package lists...

Please share your idea's to fix this 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 mailto:puppet-users@**
 googlegroups.com puppet-users@googlegroups.com
mailto:puppet-users@__googleg**roups.comhttp://googlegroups.com

 mailto:puppet-users@**googlegroups.compuppet-users@googlegroups.com
 .

To unsubscribe from this group, send email to

 puppet-users+unsubscribe@__goo**__glegroups.comhttp://goo__glegroups.com
http://googlegroups.com


 mailto:puppet-users%__**2bunsubscr...@googlegroups.compuppet-users%25__2bunsubscr...@googlegroups.com

 mailto:puppet-users%**252Bunsubscribe@googlegroups.**compuppet-users%25252bunsubscr...@googlegroups.com
 __.


For more options, visit this group at

 http://groups.google.com/**group/puppet-users?hl=enhttp://groups.google.com/group/puppet-users?hl=en

 http://groups.google.com/__**group/puppet-users?hl=enhttp://groups.google.com/__group/puppet-users?hl=en
 

 http://groups.google.com/__**group/puppet-users?hl=enhttp://groups.google.com/__group/puppet-users?hl=en

 http://groups.google.com/**group/puppet-users?hl=enhttp://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

 mailto:puppet-users@**googlegroups.compuppet-users@googlegroups.com
 .
To unsubscribe from this group, send email 

[Puppet Users] Re: dynamically edit node definition

2011-09-18 Thread Steve Snodgrass
Sav,

Maybe I'm confused about what you are trying to do, but why not just
do import nodes/* from site.pp instead of using find commands?  The
only catch is that if you add or remove a node, you have to do a
touch command on site.pp to get puppet to re-read the import
statement and pick up the new (or removed) files.

On Sep 17, 11:42 am, Sav savannah.dur...@gmail.com wrote:
 Is it possible to dynamically edit a node definition?  Basically, given a
 node, add or remove from it's node definition on the fly.  

 Right now, I am doing a find on the /etc/puppet/manifests/nodes directory on
 all .pp files, grepping for node hostname { , and using a sed command to
 edit the node definition.  Is there a more straightforward way to do this?  
 Can it be done in memory?  Or at least, is there a better way to return the
 .pp file that contains a particular node definition?

 Thanks!

-- 
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: dynamically edit node definition

2011-09-18 Thread Sav
Import nodes/* is already being done.  My problem is, I am not in control of 
any node definitions.  I am completely ignorant as to what nodes have, or 
have not been defined (In most situations, the nodes have already been 
defined).  Given a hostname, I have to (programmatic-ly) find where that 
node is being defined, and add or remove to the node definition.  If the 
node has not been defined, I need to create the node definition.  

-- 
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/-/VrwudaWdLbgJ.
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: dynamically edit node definition

2011-09-18 Thread Sav
To add to my previous post, here is the big picture: 

I am given a system, where puppet is already set up.

Lets say a new rpm is created.  I need to install that rpm on a specific 
host by putting that rpm in a yum repository, and creating a pupmod that 
installs that rpm on a particular node.  I am writing an application to do 
this, so it can not be done by hand.  There are other sys-admins that have 
previously created node definitions for each node... that piece is out of my 
control.

Here is the pseudo code of what I would ideally like to do:

require 'puppet'

node = Puppet::Node.find_by_name(puppet.example.com) 
node.add_to_node_definition(include \my yum repo  my rpm\)

Or at least is there something within puppet that can *at least* return the 
file that defines a particular node??

-- 
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/-/C_EgBF6g4GsJ.
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: dynamically edit node definition

2011-09-18 Thread Sav
To add to my previous post, here is the big picture: 

I am given a system, where puppet is already set up.

Lets say a new rpm is created.  I need to install that rpm on a specific 
host by putting that rpm in a yum repository, and creating a pupmod that 
installs that rpm on a particular node.  I am writing an application to do 
this, so it can not be done by hand.  There are other sys-admins that have 
previously created node definitions for each node... that piece is out of my 
control.

Here is the pseudo code of what I would ideally like to do:

require 'puppet'

node = Puppet::Node.find_by_name(puppet.example.com) 
node.add_to_node_definition(
include \my yum repo  my rpm\)

Or is there something within puppet that can *at least* return the file that 
defines a particular node??

-- 
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/-/WHE90t7SlqkJ.
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] a open source puppet kick tool - pkick

2011-09-18 Thread jacky
hi, all,
I write a puppet kick tool - pkick, and put it on github. I wish it is 
useful for all puppet administrator.
Any suggestion and bug report is welcome.

https://github.com/jackywu/pkick




Best regards!

jacky wu
jacky.wuch...@gmail.com
blog:  http://www.sanote.org


-- 
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] Announcement: Geppetto 2.0.0 released

2011-09-18 Thread Henrik Lindberg

The 2.0.0 release of Geppetto is available as download and updates from
within Geppetto for all users of 1.0.x.

Please see the FAQ at:
http://cloudsmith.github.com/geppetto/faq.html for information if you
run into problems updating.

Checkout
http://cloudsmith.github.com/geppetto/faq.html#2011/06/28/how-do-i-update if 


you need instructions how to run update.


In this release
===

* Code completion of resource expressions (types and definitions) and
their attributes.

* Selection of puppet target (2.6 or 2.7) can now be made in
preferences. Puppet 2.7 is now the default.

* Tasks are now generated from comments. Comments with the tags todo
or fixme (case insensitive) are interpreted as tasks and show up
in the Task View. An exclamation mark ! anywhere in the message makes
the task important. When comments ends with a tag, the text on the
same line up to the tag is used as task text. e.g. '$mispeled = false #
fixme'.

* Support for search path and environment (removes many ambiguity
warnings). This feature provides detailed control over what is visible
and prioritizes among otherwise ambiguous matches. Preferences available
globally and per project.

* Wizards have been improved (added wizards, better names, error handling).

* Improvements to validation (more cases and code-smells caught)

* Suggestions and quickfix using soundex for unknown names-errors.
Type 'gebud' and Geppetto will guess you meant 'debug'.

* Preference pages added, and preferences per project supported.

* Auto edit (auto insert) of ''  () {} [] /* */ can be turned on/off
individually via preferences.

* Check for updates of Geppetto turned on by default in packaged
Geppetto. Check out the preferences for detailed control over update policy.

* Packaged Geppetto uses Eclipse Indigo as base (IDE version supports =
Helios SR2). This means numerous bugfixes and enhancements to the
general platform.

* Nice icons for files, Modulefile, Manifests and puppet projects.

* Supports alternate location of forge (mainly for testing).

* Log View added to packaged Geppetto (it was hard to find details about
some errors without this).

* Numerous issues fixes.

See https://github.com/cloudsmith/geppetto/wiki/Release-Notes for more
detailed information about fixed issues.

Update site is available. The full downloads are being uploaded as this
message is going out...

Hope to see you at PuppetConf. There will be demos...
Regards
- henrik



--
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.