Re: [Puppet Users] Re: custom type in ruby - invalid resource type at .../site.pp

2012-09-28 Thread Axel Bock
plugincheck on client: check. commented out property: check. unfortunately same result :( thanks, axel. Am Donnerstag, 27. September 2012 21:37:02 UTC+2 schrieb Jakov Sosic: On 09/27/2012 05:21 PM, Axel Bock wrote: p.s.: my type can be seen here: http://pastebin.com/20N8teKV and the

Re: [Puppet Users] multiple puppet masters on multiple subnets

2012-09-28 Thread Peter Brown
On 27 September 2012 17:24, Alex Harvey alexharv...@gmail.com wrote: On Thursday, September 27, 2012 9:13:32 AM UTC+10, Pete wrote: Another option would be to put all your puppet code into a git repo and setup each master to pull from a central repo over ssh. That _Should_ be secure enough.

[Puppet Users] Re: manifest setting in puppet.conf does not work

2012-09-28 Thread Axel Bock
Hi Peter, hi John, first: Thanks, putting the setting in [master] actually did something - and overriding the commandline setting from SuSE linux ;) . right now I am using ...path/$environment.pp as manifest file, which works beautifully. and yes, it seems manifest only takes a single file

Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-09-28 Thread fatmcgav
Stefan Was running puppet agent using 'sudo'... However just tried using root and no difference... Asadmin definitely exists and has got the right permissions, as shown below: # file /usr/local/glassfish-3.1.2/bin/asadmin /usr/local/glassfish-3.1.2/bin/asadmin: POSIX shell script text

Re: [Puppet Users] deleting virtual users

2012-09-28 Thread Luke Bigum
This may not fit your requirements but a slightly safer alternative might be set your old users' shells to /bin/false and null out their password, rather than delete them. A small added bonus is if your UIDs are never reused then all your UIDs will resolve to user accounts, which can be

[Puppet Users] Massive Import/Include

2012-09-28 Thread pierre-emmanuel degand
Hi, I try to include or import a lot of configuration files in a node, but it doesn't work :/ I create a module to configure bind, but i have a lot of domains to configure in the node of my server, so i decided to create an other module just to register my configuration with 1 file per domain

Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-09-28 Thread fatmcgav
Ok, so I thought I'd take another look, and try and get some debug logging out of the provider to make sure it's constructing things correctly... I've applied the following patch to asadmin.rb, however I'm not seeing anything on the client trace... diff --git a/lib/puppet/provider/asadmin.rb

[Puppet Users] Server Roles

2012-09-28 Thread Frank
Hi, I've seen some blog posts about adding server roles to Puppet. Some of them with this fact snippet: if File.exists?(/etc/roles.txt) File.readlines(/etc/roles.txt).each do |line| if line =~ /^(.+)=(.+)$/ fact = $1 value = $2 Facter.add(fact) do # confine :kernel = Linux setcode {value}

Re: [Puppet Users] Re: custom type in ruby - invalid resource type at .../site.pp

2012-09-28 Thread Axel Bock
Okay, I am one step farther. After seeing Invalid resource for about 100 times I symlinked the type and provider dirs to /var/.../puppet/ (the global, core putty installation files). I basically wanted to see if I have an invalid ruby file, or if puppet simply doesn't notice the downloaded

Re: [Puppet Users] Re: custom type in ruby - invalid resource type at .../site.pp

2012-09-28 Thread Trevor Vaughan
I'm assuming that you did this, but did you restart your master after finishing the plugin? I've forgotten to do this on occasion which amounted in a few minutes of frustration. Good luck, Trevor On Fri, Sep 28, 2012 at 8:44 AM, Axel Bock axel.b...@arbeitsagentur.de wrote: Okay, I am one step

Re: [Puppet Users] require file/package not managed by puppet

2012-09-28 Thread jcbollinger
On Friday, September 28, 2012 12:05:03 AM UTC-5, Stefan Schulte wrote: But it general determining the desired state (that's what puppet tries to enforce) by looking at the current state (is the package installed?) may not be the best design here. So why not finding out when the package

[Puppet Users] Re: Server Roles

2012-09-28 Thread jcbollinger
On Friday, September 28, 2012 6:05:54 AM UTC-5, ureal frank wrote: Hi, I've seen some blog posts about adding server roles to Puppet. Some of them with this fact snippet: if File.exists?(/etc/roles.txt) File.readlines(/etc/roles.txt).each do |line| if line =~ /^(.+)=(.+)$/ fact =

Re: [Puppet Users] Re: Server Roles

2012-09-28 Thread Frank
-- Frank On Friday, September 28, 2012 at 2:35 PM, jcbollinger wrote: On Friday, September 28, 2012 6:05:54 AM UTC-5, ureal frank wrote: Hi, I've seen some blog posts about adding server roles to Puppet. Some of them with this fact snippet: if

[Puppet Users] Re: Massive Import/Include

2012-09-28 Thread jcbollinger
On Friday, September 28, 2012 3:31:11 AM UTC-5, pierre-emmanuel degand wrote: Hi, I try to include or import a lot of configuration files in a node, but it doesn't work :/ I create a module to configure bind, but i have a lot of domains to configure in the node of my server, so i

Re: [Puppet Users] Re: Massive Import/Include

2012-09-28 Thread Stephen Gran
Hi, On Fri, 2012-09-28 at 06:47 -0700, jcbollinger wrote: On Friday, September 28, 2012 3:31:11 AM UTC-5, pierre-emmanuel degand wrote: Hi, I try to include or import a lot of configuration files in a node, but it doesn't work :/ I create a

[Puppet Users] Re: Massive Import/Include

2012-09-28 Thread jcbollinger
On Friday, September 28, 2012 8:47:03 AM UTC-5, jcbollinger wrote: On Friday, September 28, 2012 3:31:11 AM UTC-5, pierre-emmanuel degand wrote: Hi, I try to include or import a lot of configuration files in a node, but it doesn't work :/ I create a module to configure bind, but i

[Puppet Users] Re: Massive Import/Include

2012-09-28 Thread pierre-emmanuel degand
my module bind : - init.pp : class bind { include bind::install include bind::service } -install.pp : class bind::install ( $packages = $bind::params::server_packages ) inherits bind::params { package { $packages : ensure = present, } file { /etc/bind/zones: ensure

Re: [Puppet Users] Re: Server Roles

2012-09-28 Thread Frank
I'm going this way: roles_file = if Facter.kernel = 'linux' roles_file = /etc/roles_facts.txt elsif Facter.kernel = 'windows' roles_file = C:\\roles_facts.txt end if File.exists?(roles_files) File.readlines(roles_file).each do |line| if line =~ /^(.+)=(.+)$/ fact = $1 value = $2

[Puppet Users] How to create a directory if that path does not yet exist?

2012-09-28 Thread Marc Haber
Hi, I have the following resource defined: file { /var/lib/foo: ensure = directory, owner = root, group = root, mode = 0755, } On some systems, but not on all, I have /var/lib/foo symlinked to another partition with

[Puppet Users] Puppet module dependencies

2012-09-28 Thread DRivard
Hi, I am having difficulties understanding how to get 2 modules to install one after the other. I have in total 3 modules: common # contains everything common to the master and slave configuration slave # contains what is specific to the slaves config master # contains what is

[Puppet Users] Re: Could use another set of eyes to assist

2012-09-28 Thread jcbollinger
On Thursday, September 27, 2012 11:56:28 AM UTC-5, Jeremy wrote: I've got a puppet module I've written to support deploying a custom PHP web application that a client has developed. The actual application and the fact that it's deployed within AWS is not the problem or important to the

Re: [Puppet Users] Re: Could use another set of eyes to assist

2012-09-28 Thread Jeremy T. Bouse
On Fri, Sep 28, 2012 at 11:38 AM, jcbollinger john.bollin...@stjude.orgwrote: On Thursday, September 27, 2012 11:56:28 AM UTC-5, Jeremy wrote: I've got a puppet module I've written to support deploying a custom PHP web application that a client has developed. The actual application and the

[Puppet Users] Reminder - Last day of PuppetConf + free streaming

2012-09-28 Thread Michelle Carroll
Apologies for blasting the lists, but the live streaming for day 2 starts in ~5 minutes. We're kicking off with Dan Hushon from EMC, followed by two great science talks (Tim Bell from CERN and Jok Thuau from SpaceX. Sign up for the live stream and see the full schedule of streaming talks:

[Puppet Users] Puppet/Passenger :: Could not retrieve catalog from remote server:Error 403 on server

2012-09-28 Thread Lunixer
Greetings, I have a tested, working setup of Puppet and Webrick. I can add nodes, classes, etc. Then I switched to Puppet/Passenger and get the error below. Puppet, Apache and Passenger are all up. I have installed using *YUM *repos and *GEMs*. So, I have the most updated packages they have.

[Puppet Users] Re: Puppetdashboard :: cannot add class

2012-09-28 Thread Lunixer
I figured this out. On the dashboard: - Click Add classs - type in exactly the class name as it exist in the puppet modules directory and click create - Edit a node or group and the auto search will find the class (a.k.a. module) On Thursday, September 27, 2012 3:38:42 PM UTC-7, Lunixer

Re: [Puppet Users] Puppet module dependencies

2012-09-28 Thread Tim Mooney
In regard to: [Puppet Users] Puppet module dependencies, DRivard said (at...: I am having difficulties understanding how to get 2 modules to install one after the other. I have in total 3 modules: common # contains everything common to the master and slave configuration slave #

Re: [Puppet Users] Puppet/Passenger :: Could not retrieve catalog from remote server:Error 403 on server

2012-09-28 Thread Jo Rhett
Check the owner of config.ru. The owner of this file is who passenger will run the puppetmaster daemon as. I'm guessing that it's not owned by puppet. On Sep 28, 2012, at 9:36 AM, Lunixer wrote: Greetings, I have a tested, working setup of Puppet and Webrick. I can add nodes, classes, etc.

[Puppet Users] Custom ruby gem continuously updates

2012-09-28 Thread jmadtech
Hey all, I'm not sure if there's a real issue or if I'm doing something incorrectly. I have a custom compiled gem that I'm installing via: package { sapnwrfc-0.24: ensure = 'installed', provider = 'gem', source =

[Puppet Users] puppet instllation error

2012-09-28 Thread skrishna12
Hi I downloaded puppet master puppet-enterprise-2.6.0-el-5-x86_64 on centos 5.2 server. When I tried to install , I got the following error messages. !* ERROR: Could not connect to the mysql server using the root credentials provided. Please verify your credentials and try again.* Can you

Re: [Puppet Users] Re: Debugging external node scripts

2012-09-28 Thread Virgil
Hi Curt, I realize this is 3 year s later, but do you have any idea how one debugs such an issue in 2012? Cheers, Virgil On Friday, July 3, 2009 2:13:14 PM UTC-7, Curt Micol wrote: On Fri, Jul 3, 2009 at 12:05 PM, Martin Wheldonmwhe...@googlemail.comjavascript: wrote: Hi Curt, Did

Re: [Puppet Users] puppet instllation error

2012-09-28 Thread Matthaus Owens
That error indicates that the root password you provided for mysql is not correct. If mysql is already installed on the machine the installer needs that information to create databases and database users for the console. One solution would be to find and provide the correct mysql root password.

[Puppet Users] nested modules and autoloading

2012-09-28 Thread Tim Mooney
All- I'm using puppet 2.7.14. I've reviewed http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html but it doesn't seem to cover what I'm attempting. Consider a module layout like this: $ tree mymodule mymodule |-- Modulefile |-- README |-- manifests | |-- init.pp |

Re: [Puppet Users] Puppet/Passenger :: Could not retrieve catalog from remote server:Error 403 on server

2012-09-28 Thread Lunixer
Thanks for the reply. I have checked permissions per the master puppet.conf excerpt below . My understanding is that Passenger does not really install anything or copies files around. You only create a directory and copy the config.ru into it and change permissions to puppet. The only thing

[Puppet Users] Re: Puppet Labs devel package repos for yum and apt

2012-09-28 Thread Jeff McCune
In case anyone finds this information via search, the puppetlabs-release-devel package is no longer necessary and should not be used. Instead, the puppetlabs-release package contains the devel repository, but in a disabled state. Up to date information is located at:

Re: [Puppet Users] nested modules and autoloading

2012-09-28 Thread Martin Alfke
Hi Tim, please check your class and file names. The following is working: modules/http/manifests/init.pp class 'http' { include http::config_file } modules/http/manifests/config_file.pp class http::config_file { file { '/tmp/http': content = 'http', } }

Re: [Puppet Users] nested modules and autoloading

2012-09-28 Thread Tim Mooney
In regard to: Re: [Puppet Users] nested modules and autoloading, Martin...: Hi Tim, please check your class and file names. The following is working: modules/http/manifests/init.pp class 'http' { include http::config_file } modules/http/manifests/config_file.pp class

[Puppet Users] Upgrade from 2.7 to 3.0, problem with run_mode in application.rb

2012-09-28 Thread Forrie
Just upgraded my puppet master to 3.0.0. We have a very simple setup. However, when restarting, I see this error: Starting puppetmaster: /usr/local/lib/ruby/gems/1.8/gems/puppet-3.0.0/lib/puppet/application.rb:273:in `run_mode': undefined method `settings' for Puppet:Module (NoMethodError)

[Puppet Users] Puppetconf Feedback

2012-09-28 Thread Douglas Garstang
Anyone know if there's a feedback mechanism for Puppetconf? Doug -- 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

Re: [Puppet Users] Upgrade from 2.7 to 3.0, problem with run_mode in application.rb

2012-09-28 Thread Jeff McCune
On Fri, Sep 28, 2012 at 1:38 PM, Forrie for...@gmail.com wrote: Just upgraded my puppet master to 3.0.0. We have a very simple setup. However, when restarting, I see this error: Do you happen to be at PuppetConf? If so, I'm up on the second level and would love to work with you on this

Re: [Puppet Users] Puppetconf Feedback

2012-09-28 Thread Ryan Coleman
On Fri, Sep 28, 2012 at 1:57 PM, Douglas Garstang doug.garst...@gmail.com wrote: Anyone know if there's a feedback mechanism for Puppetconf? I'm told there will be a survey sent out (not sure of link or direct email) at the conclusion of the conference. You're also welcome to email me off-list

[Puppet Users] Re: puppet instllation error

2012-09-28 Thread skrishna12
Thanks!! I removed all mysql pkg and reinstall PE . I got the following messages. I can see admin console but not sure about the username and passwd. This time when i installed . the installer didnot ask any console username and password. Pls help me this out Puppet Enterprise has been

[Puppet Users] Re: puppet instllation error

2012-09-28 Thread skrishna12
The auto generated user name password is here # cat etc/puppetlabs/installer/database_info.install q_puppet_enterpriseconsole_auth_database_name=console_auth q_puppet_enterpriseconsole_auth_database_password=c8ZwU6TVlgcdvTA5ysv6 q_puppet_enterpriseconsole_auth_database_user=console_auth

Re: [Puppet Users] Upgrade from 2.7 to 3.0, problem with run_mode in application.rb

2012-09-28 Thread Forrie
I'm not at PuppetConf, unfortunately. In this case, all I did was a simple CentOS service puppetmaster restart as I have in the past. But, I wonder if the fact there are older versions still present might contribute to this -- though it shouldn't be reading code from those locations. I

Re: [Puppet Users] Re: puppet instllation error

2012-09-28 Thread Matthaus Owens
Glad that helped you get through the installation. The installer should have asked you those questions during the interview, and they are saved in the answers file as well. The console admin user and password will be in the puppet-enterprise-2.6.0-el5-x86_64 directory (wherever you have the

Re: [Puppet Users] Re: Could use another set of eyes to assist

2012-09-28 Thread jcbollinger
On Friday, September 28, 2012 10:53:45 AM UTC-5, Jeremy wrote: The use of the YAML.load(open(args[0])) call was in fact to support both local and network files. In this case I'm actually giving an authenticated S3 bucket URL to retrieve the file as the engineers releasing the code also

Re: [Puppet Users] Upgrade from 2.7 to 3.0, problem with run_mode in application.rb

2012-09-28 Thread Patrick Carlisle
On Fri, Sep 28, 2012 at 2:29 PM, Forrie for...@gmail.com wrote: I'm not at PuppetConf, unfortunately. In this case, all I did was a simple CentOS service puppetmaster restart as I have in the past. But, I wonder if the fact there are older versions still present might contribute to this --

Re: [Puppet Users] Upgrade from 2.7 to 3.0, problem with run_mode in application.rb

2012-09-28 Thread Jeff McCune
On Fri, Sep 28, 2012 at 2:29 PM, Forrie for...@gmail.com wrote: I'm not at PuppetConf, unfortunately. In this case, all I did was a simple CentOS service puppetmaster restart as I have in the past. But, I wonder if the fact there are older versions still present might contribute to this --

Re: [Puppet Users] Puppetconf Feedback

2012-09-28 Thread Jose Palafox
Survey forthcoming. Feel free to message me directly with any immediate feedback. Cheers, Jose -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit

[Puppet Users] Re: Upgrade from 2.7 to 3.0, problem with run_mode in application.rb

2012-09-28 Thread Forrie
This is probably also the result and problem with the /etc/init.d script I have -- I think I grabbed them from the source code at some point. I'll have to see if it is a simple search-and-replace issue for that. Thanks! -- You received this message because you are subscribed to the Google

[Puppet Users] Re: Announce: Puppet 3.0.0 Live

2012-09-28 Thread Martijn
Very nice! Congratulations. I see a lot of things that will make my life easier. I can't wait to try it. Regards, Martijn Heemels Op vrijdag 28 september 2012 23:49:21 UTC+2 schreef Michael Stanhke het volgende: Puppet 3.0.0 is a feature release for the 3.x series of Puppet. -- You

Re: [Puppet Users] Re: puppet instllation error

2012-09-28 Thread skrishna12
I tried the credential (mail id and password) stored in answer.lastun.xxx and got the following error. Even after clearing the cookies and caches .. no luck with the mail id and password This webpage has a redirect loop The webpage at *

[Puppet Users] Re: Upgrade from 2.7 to 3.0, problem with run_mode in application.rb

2012-09-28 Thread Forrie
On a tangental note, Puppet 3.0 doesn't ship with init scripts in examples/etc/init.d -- I saw a ticket out there mentioning a need for this. I'm going to guess some others will be caught with the puppet master change.At least, the latest checkout of the GIT repo doesn't have anything in

Re: [Puppet Users] Re: Upgrade from 2.7 to 3.0, problem with run_mode in application.rb

2012-09-28 Thread Matthaus Owens
Forrie, For redhat, look in ext/redhat for the init scripts. ext/redhat/server.init is what you should replace your puppetmaster init script with. (https://github.com/puppetlabs/puppet/blob/3.x/ext/redhat/server.init) HTH On Fri, Sep 28, 2012 at 4:34 PM, Forrie for...@gmail.com wrote: On a

Re: [Puppet Users] Glassfish custom provider and 'file does not exist'

2012-09-28 Thread Stefan Schulte
On Fri, Sep 28, 2012 at 10:39:11AM +0100, fatmcgav wrote: Ok, so I thought I'd take another look, and try and get some debug logging out of the provider to make sure it's constructing things correctly... I've applied the following patch to asadmin.rb, however I'm not seeing anything on the

Re: [Puppet Users] Re: Could use another set of eyes to assist

2012-09-28 Thread Jeremy T. Bouse
On Fri, Sep 28, 2012 at 5:37 PM, jcbollinger john.bollin...@stjude.orgwrote: On Friday, September 28, 2012 10:53:45 AM UTC-5, Jeremy wrote: The use of the YAML.load(open(args[0])) call was in fact to support both local and network files. In this case I'm actually giving an authenticated