Re: [Puppet Users] Puppet console not accessible after installation.

2012-12-18 Thread lalit jangra
Thanks a lot Justin, So silly of me to let this small thing escape out of sight. Its working now. Also can you help how can i start/stop puppet? Regards. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit

Re: [Puppet Users] Puppet console not accessible after installation.

2012-12-18 Thread lalit jangra
Thanks a lot Justin, So silly of me to let this small thing escape out of sight. Its working now. Also can you help how can i start/stop puppet? Regards. On Wednesday, December 19, 2012 11:38:57 AM UTC+5:30, Justin Stoller wrote: > > > > > On Tue, Dec 18, 2012 at 9:03 PM, lalit jangra > > > w

Re: [Puppet Users] Puppet console not accessible after installation.

2012-12-18 Thread Justin Stoller
On Tue, Dec 18, 2012 at 9:03 PM, lalit jangra wrote: > Hi, > > I have an amazon ec2 instance where i have installed puppet from > http://info.puppetlabs.com/download-pe.html. Installation is successful > without any issue as per > http://docs.puppetlabs.com/pe/2.7/install_basic.html. After success

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

2012-12-18 Thread Alex Harvey
On Tuesday, December 18, 2012 2:02:28 AM UTC+11, jcbollinger wrote: > > > The requirement for a local C compiler is pretty much a function of the > choice to use gems in general. In principle, any gem may contain a native > extension that needs to be built, so gem-dependent systems need to hav

[Puppet Users] Restricting hosts to a certain environment

2012-12-18 Thread Sam Morrison
Hi, I'm wanting to restrict hosts to a certain environment. Eg only hosts in the range 192.168.0.0/24 can use the production environment Similar with test env etc. Is this possible with auth.conf? Thanks, Sam -- You received this message because you are subscribed to the Google Groups "Pupp

Re: [Puppet Users] Re: New Q&A Site to Ask Puppet Questions

2012-12-18 Thread Khoury Brazil
On Tue, Dec 18, 2012 at 5:03 PM, Dawn Foster wrote: > > The Ask Q&A site just gives those people who prefer something more > like stack overflow (with voting and other interactivity) also have a > place where they can feel more comfortable asking questions. > > > Dawn It also incentivizes answe

[Puppet Users] Puppet console not accessible after installation.

2012-12-18 Thread lalit jangra
Hi, I have an amazon ec2 instance where i have installed puppet from http://info.puppetlabs.com/download-pe.html. Installation is successful without any issue as per http://docs.puppetlabs.com/pe/2.7/install_basic.html. After successful installation, i can see following information on putty co

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

2012-12-18 Thread lalit jangra
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. Af

Re: [Puppet Users] [Puppet Upgrade] Puppet agent does not work

2012-12-18 Thread Gary Larizza
Yep, The passenger gem does indeed need to be installed. On Tue, Dec 18, 2012 at 6:39 PM, Sebastien Liu wrote: > Hi Gary, > I launched 'passenger-status' and got > > /usr/lib/ruby/site_ruby/1.8/rubygems.rb:779:in `report_activate_error': > Could not find RubyGem passenger (>= 0) (Gem::LoadError

Re: [Puppet Users] [Puppet Upgrade] Puppet agent does not work

2012-12-18 Thread Sebastien Liu
Hi Gary, I launched 'passenger-status' and got /usr/lib/ruby/site_ruby/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem passenger (>= 0) (Gem::LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:214:in `activate' from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:1082:i

Re: [Puppet Users] Re: Puppet NetApp Network device management...

2012-12-18 Thread Jakov Sosic
On 11/12/2012 12:59 PM, Gavin Williams wrote: Monday update from me... Implemented support for Export creation on Friday, after making some further good progress... Now I'm looking at fine-tuning stuff, such as volume settings, export options, etc... Great work! When I get some spare time I w

Re: [Puppet Users] File header including timestamp

2012-12-18 Thread Jakov Sosic
On 11/08/2012 10:49 AM, James Fellows wrote: For me, the benefit of the header is being able to immediately tell whether the file has been modified by someone or something since the last puppet run (by comparing the header to the last modified timestamp on the file). You can already do that wi

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

2012-12-18 Thread Jakov Sosic
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.

Re: [Puppet Users] Re: Custom Type & Invalid Parameter...

2012-12-18 Thread Jakov Sosic
On 11/07/2012 01:04 PM, Gavin Williams wrote: Hmm... It seems that all that was needed was a Puppetmaster restart :s Now happily creating volumes... Yeah you should restart puppetmaster every time you change your custom type. I'm not sure though if it's necessary after making changes to prov

Re: [Puppet Users] [Puppet Upgrade] Puppet agent does not work

2012-12-18 Thread Sebastien Liu
Hi Gary, I reinstalled rubygems and installed active_record according the solution in the link you presented. But the error is still the same on client node. But it seems the ex-admin did not follow the installation instruction, because I did not get puppetmaster daemon before I upgrade the server.

Re: [Puppet Users] Re: New Q&A Site to Ask Puppet Questions

2012-12-18 Thread Dawn Foster
On Tue, Dec 18, 2012 at 7:20 AM, jcbollinger wrote: > > > On Monday, December 17, 2012 4:13:40 PM UTC-6, Dawn Foster wrote: >> With the focus on asking questions, it is a little harder for people >> to digress into endless debates. However, the main benefit is that >> great answers and knowledge l

Re: [Puppet Users] [Puppet Upgrade] Puppet agent does not work

2012-12-18 Thread Gary Larizza
Ahh, I seem to remember this - does this thread help you out --> https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/VfKelFStVnU I think it may be the version of the activerecord gem. It certainly sounds like something went wrong with the rubygems on your system (if this is the case).

Re: [Puppet Users] [Puppet Upgrade] Puppet agent does not work

2012-12-18 Thread Sebastien Liu
Hi Gary, I fixed the permission issue then restarted apache, and it seems the puppet master is working : The environment must be purely alphanumeric, not '' But in the client node, when I launched 'puppet agent -t', I got : err: Could not retrieve catalog from remote server: Error 400 on SERVER

[Puppet Users] Re: puppet agent periodically not running after 3.0 upgrade

2012-12-18 Thread David Mesler
I've noticed when I strace a puppet agent that has failed to run after its 900 second runinterval, it's blocking on a really long select call. Like: select(1, [], [], [], {1032, 35} When that's done it finally re-reads pupet.conf and stars a catalog run. I have no idea where that long selec

Re: [Puppet Users] problems with puppetdb

2012-12-18 Thread Peter Brown
On 18 December 2012 15:50, Ryan Bond 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 th

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

2012-12-18 Thread Ellison Marks
Unless you meant using hiera_array() for general use, in which case yes, you probably need to flatten it. On Tuesday, December 18, 2012 2:26:54 PM UTC-8, Ellison Marks wrote: > > Yeah, I thought it was something like that, just hadn't checked myself. > > As to flattening however, I don't think th

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

2012-12-18 Thread Ellison Marks
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. On Tuesday, December 18, 2012 1:50:19 PM UTC-8, jcbollinger wrote: > > > > On Tuesda

[Puppet Users] Re: Puppet v2.7.209 setting permissions recursively

2012-12-18 Thread jcbollinger
On Tuesday, December 18, 2012 4:00:51 PM UTC-6, jcbollinger wrote: > > > Indeed. There is no version 2.7.209 of Puppet -- the latest is 2.7.20. > > I mean the latest in the 2.7 series, of course. The very latest is 3.0.1, with 3.0.2 now on the horizon. John -- You received this message bec

[Puppet Users] Re: Puppet v2.7.209 setting permissions recursively

2012-12-18 Thread jcbollinger
On Tuesday, December 18, 2012 11:39:07 AM UTC-6, Ellison Marks wrote: > > Perhaps this bug? > http://projects.puppetlabs.com/issues/10269 > Though this was fixed in 2.7.7... I'm not entirely clear as to what > version you're on. > > Indeed. There is no version 2.7.209 of Puppet -- the latest is

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

2012-12-18 Thread jcbollinger
On Tuesday, December 18, 2012 12:43:44 PM UTC-6, Philip Brown wrote: > > > > On Tuesday, December 18, 2012 10:28:35 AM UTC-8, Ellison Marks wrote: >> >> No, it's additive. It will get all the class names from all hierarchy >> levels that a host maps to. > > > Waaait a minute. Now I'm really con

[Puppet Users] Re: multiple puppet masters

2012-12-18 Thread vioilly
I was wondering if on the 2nd puppet master I have installed, whether or not I need the SSLEngine on for my virtual host configuration file? I have tried this, but with no luck... LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.18/ext/apache2/mod_passenger.so PassengerRoot

[Puppet Users] Re: adding repositories to sources.list

2012-12-18 Thread Maxym Pendyshchuk
thanks for reply and another way to write it. And yes, in result I get two files in sources.list.d directory. Is here any way to make it 1? I tried something like: apt::source { foo: location => [ 'first_location', 'second_location' ] ... } but it does not work... I know that in my ca

[Puppet Users] Re: adding repositories to sources.list

2012-12-18 Thread windowsrefund
Generally speaking, you should be managing files in the sources.list.d directory instead of managing lines in a single file. also (generally speaking), you can apt::source { foo: ensure => present; bar: ensure => absent; } The "style guide" frowns upon this syntax but it is far su

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

2012-12-18 Thread Ellison Marks
Yeah, hiera() will bail the moment it finds an answer. I *think* that one correct answer can be an array or hash, but test it first. Or ask R.I.P. hiera_array() and hiera_hash() are both additive, building out the array or hash from values at every level of the hierarchy. On Tuesday, December 1

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

2012-12-18 Thread Philip Brown
On Tuesday, December 18, 2012 10:28:35 AM UTC-8, Ellison Marks wrote: > > No, it's additive. It will get all the class names from all hierarchy > levels that a host maps to. Waaait a minute. Now I'm really confused about hiera :( I thought hiera was usually replacing, not additive. Or is it

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

2012-12-18 Thread Ellison Marks
I like the more compact syntax. ^_^ I suppose the other way would be more consistent though. As far as documentation goes though, hiera_array() is just as undocumented as hiera_include(), which is just as undocumented as the other hiera* functions. http://docs.puppetlabs.com/references/latest/fu

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

2012-12-18 Thread Jakov Sosic
On 12/18/2012 07:28 PM, Ellison Marks wrote: > No, it's additive. It will get all the class names from all hierarchy > levels that a host maps to. It uses almost the same code as > hiera_array(), (also undocumented XP, it essentially builds an array out > of all the elements in the specified variab

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

2012-12-18 Thread R.I.Pienaar
- Original Message - > From: "Ellison Marks" > To: puppet-users@googlegroups.com > Sent: Tuesday, December 18, 2012 6:28:35 PM > Subject: Re: [Puppet Users] early clean exit from module? > > No, it's additive. It will get all the class names from all hierarchy > levels that a host maps

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

2012-12-18 Thread Ellison Marks
No, it's additive. It will get all the class names from all hierarchy levels that a host maps to. It uses almost the same code as hiera_array(), (also undocumented XP, it essentially builds an array out of all the elements in the specified variable at all levels of the hierarchy matching the ho

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

2012-12-18 Thread Jakov Sosic
On 12/18/2012 07:20 PM, Philip Brown wrote: > Hmm. Thanks for the explanation. It sounds *potentially* useful. > However, still one problem: > I dont think it's additive. > > In other words, you cant have a truly modular flow in hiera, where you have > the following pseudocode > > $(allhosts )

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

2012-12-18 Thread Philip Brown
On Tuesday, December 18, 2012 9:33:13 AM UTC-8, Ellison Marks wrote: > > You're looking for the hiera_include() function, I believe. It's > undocumented in the official docs, which is a shame, but I'll try to > describe it. > > Your node definition would look something like this: > > node defau

[Puppet Users] Re: site.pp referring to other manifests without modules

2012-12-18 Thread rsom
Thanks! On Tuesday, December 18, 2012 9:41:54 AM UTC-8, Ellison Marks wrote: > > You want 'import'. Do note that it is fairly discouraged. > http://docs.puppetlabs.com/puppet/3/reference/lang_import.html > > > On Tuesday, December 18, 2012 9:09:33 AM UTC-8, > rs...@certifydatasystems.com wrote: >

[Puppet Users] adding repositories to sources.list

2012-12-18 Thread Maxym Pendyshchuk
Dear puppet community! I need to add some repositories to sources.list to be able to install sun jdk: deb-src http://security.debian.org/ lenny/updates main non-free deb http://security.debian.org/ lenny/updates main non-free deb-src http://mirrors.kernel.org/debian/ lenny main non-free deb http

[Puppet Users] How to manage puppet modules? git submodules? hg subrepositories? own solution?

2012-12-18 Thread Malte Janduda
Hi folks, we are looking for a way to manage our puppet modules in a convenient way. At the moment we have about 30 modules which are versionized with git or mercurial. Most of them are self-made, some are from github. We thought it would be a good idea to use mercurial subrepositories to manag

[Puppet Users] Failing EC2 agent's ENC lookup, by hand works fine

2012-12-18 Thread jblaine
Is there some trick to EC2/AWS and the Puppet Dashboard ENC? /etc/puppet/puppet.conf on master: [master] # These are needed when the puppetmaster is run by passenger # and can safely be removed if webrick is used. ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY au

[Puppet Users] Re: site.pp referring to other manifests without modules

2012-12-18 Thread Ellison Marks
You want 'import'. Do note that it is fairly discouraged. http://docs.puppetlabs.com/puppet/3/reference/lang_import.html On Tuesday, December 18, 2012 9:09:33 AM UTC-8, rs...@certifydatasystems.com wrote: > > Hi all, > > I want to do some code reuse, and modules seem overkill. Is it possible to

[Puppet Users] Re: Puppet v2.7.209 setting permissions recursively

2012-12-18 Thread Ellison Marks
Perhaps this bug? http://projects.puppetlabs.com/issues/10269 Though this was fixed in 2.7.7... I'm not entirely clear as to what version you're on. On Tuesday, December 18, 2012 8:28:14 AM UTC-8, Robert Rothenberg wrote: > > How can I get Puppet to recursively set permissions of a directory, so

[Puppet Users] site.pp referring to other manifests without modules

2012-12-18 Thread rsom
Hi all, I want to do some code reuse, and modules seem overkill. Is it possible to have something like this? A file called myuser.pp class myuser { user {...} file {...} ... } Then in site.pp have this: node 'foo.example.com' { include myuser .. other things .. } node 'bar.example

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

2012-12-18 Thread Ellison Marks
You're looking for the hiera_include() function, I believe. It's undocumented in the official docs, which is a shame, but I'll try to describe it. Your node definition would look something like this: node default { hiera_include('classes') } This instructs every node to look up the classes v

Re: [Puppet Users] Odd problem with puppet 3 and module files permissions

2012-12-18 Thread Philip Brown
On Tuesday, December 18, 2012 8:51:25 AM UTC-8, Branan Purvine-Riley wrote: > > > > In Puppet 3, you must explicitly state that the file you are requesting is > from a module. Try: > puppet:///modules/${modulename}/somefile.conf > D'oh... I guessed it was something like that, but I used /modul

Re: [Puppet Users] Odd problem with puppet 3 and module files permissions

2012-12-18 Thread Branan Purvine-Riley
On Tue, Dec 18, 2012 at 8:44 AM, Philip Brown wrote: > We have an odd situation with a puppet 3 installation. It isnt serving out > the module local files. > We understand (Somewhat) about the new auth.conf requirements, and have > filled those out. > So, access to things such as > puppet:///file

[Puppet Users] Odd problem with puppet 3 and module files permissions

2012-12-18 Thread Philip Brown
We have an odd situation with a puppet 3 installation. It isnt serving out the module local files. We understand (Somewhat) about the new auth.conf requirements, and have filled those out. So, access to things such as puppet:///files/etc/somefile.conf are working fine. However, attempts to acces

[Puppet Users] Re: Puppet v2.7.209 setting permissions recursively

2012-12-18 Thread Robert Rothenberg
On Tuesday, December 18, 2012 4:28:14 PM UTC, Robert Rothenberg wrote: > > How can I get Puppet to recursively set permissions of a directory, so > that the directory and all subdirectories have move 0755 but the files in > the directory have mode 0644? When I use the recurse => true option, it

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

2012-12-18 Thread Philip Brown
On Tuesday, December 18, 2012 7:41:44 AM UTC-8, jcbollinger wrote: > > The other respondents are right: if you don't want a class assigned to a > node then you should avoid assigning it to the node. It's pretty silly to > assign it but make that conditionally meaningless. You don't necessaril

[Puppet Users] Puppet v2.7.209 setting permissions recursively

2012-12-18 Thread Robert Rothenberg
How can I get Puppet to recursively set permissions of a directory, so that the directory and all subdirectories have move 0755 but the files in the directory have mode 0644? When I use the recurse => true option, it sets the files in the directory to executable as well. -- You received this

[Puppet Users] Error 400 on SERVER: Invalid parameter lib in puppetlabs-apache module

2012-12-18 Thread Benjamin Priestman
Hi, I'm trying to move back to using the standard puppetlabs-apache module, after having been using a heavily customised version and am running into the following error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter lib at /etc/puppet/unstable/bran

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

2012-12-18 Thread jcbollinger
On Monday, December 17, 2012 6:21:25 PM UTC-6, Philip Brown wrote: > > > > On Monday, December 17, 2012 3:18:26 PM UTC-8, Jakov Sosic wrote: >> >> >> >> Puppet is not procedural but declarative language, so you can only >> declare states. > > > Except that is not strictly true. > There is an ea

[Puppet Users] Re: augeas sudoer syntax help

2012-12-18 Thread Keiran Sweet
Hi There, Rather than building out files dynamically, have you considered possibly deploying snippets of sudoers configuration out to nodes using the /etc/sudoers.d/ framework that is available on many operating systems ? This can be easily handled using the File type and applied to nodes as re

[Puppet Users] Puppet is not automatically running. any idea on how to fix this?

2012-12-18 Thread JJRLOPEZ
puppet is not automatically running after a jenkins job completes. This started happening after the memory upgrade The manual workaround is to run puppetd -t by hand on dev after Jenkins completes, however, this used to happen automatically. John -- You received this message because you ar

[Puppet Users] Re: New Q&A Site to Ask Puppet Questions

2012-12-18 Thread jcbollinger
On Monday, December 17, 2012 4:13:40 PM UTC-6, Dawn Foster wrote: > > Today, we are launching the beta version of a new question and answer > site where you can ask any Puppet questions or provide answers for > questions from other Puppet users and developers. > > The idea is to give you anoth

[Puppet Users] augeas sudoer syntax help

2012-12-18 Thread Craig Cook
I have a manifest like this class sudoer::spectrum {     augeas { "sudoer_spectrum_cmdalias":     context => "/files/etc/sudoers",     changes => [     "set Cmnd_Alias[alias/name = 'SPECTRUM_CMDS']/alias/name SPECTRUM_CMDS",     "set Cmnd_Alias[alias/name = 'SPECTRUM_CMD

[Puppet Users] Re: Reg : File Change Checking

2012-12-18 Thread jcbollinger
On Monday, December 17, 2012 6:03:38 AM UTC-6, krishna bhaskara rao wrote: > > Hi, > > I am using below script to move files from puppet master to puppet agent. > file { "/usr/local/temp": >ensure => "file", >source => "puppet:///files/temp", > mode

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

2012-12-18 Thread Jakov Sosic
On 12/18/2012 01:21 AM, Philip Brown wrote: > Except that is not strictly true. > There is an early-exit "fail" directive that can be used conditionally. > So why not a conditional early exit from a module, that allows other > modules to keep going? Because module is not a function, and resources

[Puppet Users] Re: [Puppet Upgrade] Puppet agent does not work

2012-12-18 Thread Robert Pemberton
I just had this happen to me as well. -- 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/-/7OIZ-R42xcgJ. To post to this group, send email to puppet-users@googl

Re: [Puppet Users] Package not installed

2012-12-18 Thread Arnold Skimminge
the only line related to libxp6 is this debug: Puppet::Type::Package::ProviderAptitude: Executing '/usr/bin/apt-cache policy libxp6' And when run the above command manually, ie. '/usr/bin/apt-cache policy libxp6', the result is libxp6: Installed: (none) Candidate: 1:1.0.1-2 Version tabl

[Puppet Users] Re: Unable to generate certificate on Puppet Agent through Master

2012-12-18 Thread Vishal Asai
Hi Ajeet, Did you find any work around this issue? I am having exactly the same issue and I tried all possible ways to fix it but didn't get any success. Please let me know. Thanks in advance. Cheers. On Tuesday, 28 August 2012 18:38:51 UTC+9:30, Ajeet Raina wrote: > > Hi, > > I have a puppe

[Puppet Users] Re: Home directory dependency problems

2012-12-18 Thread Keiran Sweet
Hi There, Thanks for the additional information it actually helps me understand what you are trying to achieve a bit better. As per the types documentation, this line is quite important to understand: "Classes are good for modelling singleton aspects of a system, but to model repeatable chunks

Re: [Puppet Users] Question on modeling multiple services sharing configuration

2012-12-18 Thread Nikola Petrov
On Mon, Dec 17, 2012 at 10:47:36PM -0800, Roman Shaposhnik wrote: > On Mon, Dec 17, 2012 at 6:46 AM, Nikola Petrov wrote: > > You have a bunch of options for this if I understand you well. You can > > one of the following: > > > > * use augeas with virtual resources > > * use the concat module >

[Puppet Users] Re: Python PIP and Centos 6

2012-12-18 Thread Joshua Vote
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? On Tuesday, December 18, 2012 9:01:35 AM UTC+8, 刘长元 wrote: > > > https://github.com/puppetlabs/puppet/blob/master/lib/puppet/

Re: [Puppet Users] Reg : GitHubIntegration

2012-12-18 Thread Stefan Goethals
https://github.com/rodjek/librarian-puppet Regards, Zipkid On Tue, Dec 18, 2012 at 5:18 AM, krishna bhaskara rao wrote: > Hi, > > How to integrate GitHub with Puppet master or agent. > My requirement is I have file in GitHub Repository with different > versions, I want to download latest file