Re: [Puppet Users] Re: Facter does not deliver ip addresses

2012-09-05 Thread Stephen Gran
Hi, Why do your init scripts start puppet with a locale other than C? Cheers, -- Stephen Gran Senior Systems Integrator - guardian.co.uk Please consider the environment before printing this email. -- Visit guardian.co.uk - newspape

[Puppet Users] Re: Facter does not deliver ip addresses

2012-09-05 Thread Axel Bock
... @joseph: do you have localized ipconfig output? (btw I have facter 1.5.2, puppet 2.6.17, both from suse rpms) Am Donnerstag, 6. September 2012 08:25:45 UTC+2 schrieb Axel Bock: > > uuh ... /inet addr[...]/ as pattern in ip.rb? a wild guess ... if the > output is localized - then puppet won

[Puppet Users] Re: Facter does not deliver ip addresses

2012-09-05 Thread Axel Bock
uuh ... /inet addr[...]/ as pattern in ip.rb? a wild guess ... if the output is localized - then puppet won't be able to get the IP address info, right? check. *l1215022:~ # facter | grep _eth* *l1215022:~ # export LC_ALL="en_US"* *l1215022:~ # facter | grep _eth* ipaddress_eth0 => 130.250.8.1

[Puppet Users] Re: Facter does not deliver ip addresses

2012-09-05 Thread Axel Bock
Hi Krysztof, like this: eth0 Link encap:Ethernet Hardware Adresse 00:50:56:99:05:02 inet Adresse:130.250.8.15 Bcast:130.250.8.255 Maske:255.255.255.0 inet6 Adresse: fe80::250:56ff:fe99:502/64 Gültigkeitsbereich:Verbindung UP BROADCAST RUNNING MULTICAST M

Re: [Puppet Users] Re: minor change in inkling/postgresql – PostgreSQL

2012-09-05 Thread Jeremy Kitchen
On Wed, Aug 29, 2012 at 09:43:49AM -0700, Chris Price wrote: > I'd love to put together a "test" manifest that illustrates how to do what > you're doing w/o modifying params.pp directly, I'd love to see this, myself, for educational purposes. I'm still pretty new to puppet and the variable scopin

[Puppet Users] Re: How to automatically implement default configuration changes made by a package upgrade

2012-09-05 Thread Matthew Morgan
I can't believe I didn't think about the conf.d directory. I have it set up for that and just skipped over that last line. Ramin, I agree with you about wanting to control introducing change into the system. We have grown from a very small team with only a couple servers to what we are today r

[Puppet Users] Re: notify vs. require of services

2012-09-05 Thread Eric Sorenson
On Wednesday, September 5, 2012 7:13:53 AM UTC-7, jcbollinger wrote: > > > 'notify' is a specialization of 'before', so you don't need both or > those, 'subscribe' is a specialization of 'require', so you don't need both > of those, and all the other mixed pairs represent cycles. > > John --

Re: [Puppet Users] Puppet smoking crack?

2012-09-05 Thread Christopher Wood
On Wed, Sep 05, 2012 at 03:01:42PM -0700, Douglas Garstang wrote: > On Wed, Sep 5, 2012 at 2:23 PM, Christopher Wood > wrote: > > (inline) > > > > On Wed, Sep 05, 2012 at 02:04:59PM -0700, Douglas Garstang wrote: > >> Couple of questions. Firstly, what's the plugin error about? > >> > >> puppet ag

Re: [Puppet Users] Puppet smoking crack?

2012-09-05 Thread Douglas Garstang
On Wed, Sep 5, 2012 at 2:23 PM, Christopher Wood wrote: > (inline) > > On Wed, Sep 05, 2012 at 02:04:59PM -0700, Douglas Garstang wrote: >> Couple of questions. Firstly, what's the plugin error about? >> >> puppet agent --onetime --test --verbose > > Could you also try with --debug? I could. What

[Puppet Users] Re: Starting service as non root user with puppet

2012-09-05 Thread jcbollinger
On Wednesday, September 5, 2012 10:37:40 AM UTC-5, Sean Murphy wrote: > > Hi, > > I have an ubuntu system with some of our own services on it. I prefer > to run > these services as a non-root user. > > I can control the services using upstart as a non root user and can > start and > stop th

[Puppet Users] Re: QUERY : no resources for remote admin?

2012-09-05 Thread Jenner La Fave
Like I said, these aren't "issues" with Puppet, you're just using a screwdriver to hit a nail. All resources only apply to the local machine. Your manifests are supposed to declaratively describe what the state and configuration of a node should be, and the Puppet agent makes it so after compil

[Puppet Users] Re: Override param from parametrized class?

2012-09-05 Thread jcbollinger
On Wednesday, September 5, 2012 1:19:16 PM UTC-5, Jakov Sosic wrote: > > Hi. > > I've seen in many modules at puppet-forge this kind of organization: > > class myclass( > $somevar='value' > ) inherits myclass::params { > file { $mydir: > ensure => directory, > } > } > > class m

[Puppet Users] Re: QUERY : no resources for remote admin?

2012-09-05 Thread am-aaron
hello Jenner: thank you. without intending to be rude or scornful: using MCollective? hmmm. instead, i can use a simple shell script, and it works great in minutes. Puppet makes us go bonkers and i do not think its really intuitive to understand. instead a procedural scipt is just great. i fi

[Puppet Users] Re: QUERY : no resources for remote admin?

2012-09-05 Thread am-aaron
hello Jenner: thank you. without intending to be rude or scornful: using MCollective? hmmm. instead, i can use a simple shell script, and it works great in minutes. Puppet makes us go bonkers and i do not think its really intuitive to understand. instead a procedural scipt is just great. i fi

Re: [Puppet Users] Puppet smoking crack?

2012-09-05 Thread Christopher Wood
(inline) On Wed, Sep 05, 2012 at 02:04:59PM -0700, Douglas Garstang wrote: > Couple of questions. Firstly, what's the plugin error about? > > puppet agent --onetime --test --verbose Could you also try with --debug? > info: Retrieving plugin > err: /File[/var/lib/puppet/lib]: Could not evaluate:

Re: [Puppet Users] How to automatically implement default configuration changes made by a package upgrade

2012-09-05 Thread Ramin K
On 9/4/2012 5:01 PM, Matthew Morgan wrote: Hi All, Sorry if this has been asked before but I am not entirely sure what to search for so as to get the answer I am looking for. I have recently started using puppet to manage our servers (we have 30 at the moment) and I have been posed the question

[Puppet Users] Announce: Puppet Dashboard 1.2.11-rc1 Available

2012-09-05 Thread Moses Mendoza
Puppet Dashboard 1.2.11-rc1 is a maintenance and bugfix release candidate of Puppet Dashboard. This release is available for download at: https://downloads.puppetlabs.com/dashboard/puppet-dashboard-1.2.11-rc1.tar.gz Debian packages are available at https://apt.puppetlabs.com RPM packages are ava

[Puppet Users] Puppet smoking crack?

2012-09-05 Thread Douglas Garstang
Couple of questions. Firstly, what's the plugin error about? puppet agent --onetime --test --verbose info: Retrieving plugin err: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve information from source(s) puppet://puppet/plugins info: Caching catalog for mon01.ap1.xxx.com info:

[Puppet Users] Re: QUERY : no resources for remote admin?

2012-09-05 Thread Jenner La Fave
Puppet is not really designed to do what you're asking. The idiomatic Puppet way to install ksh on all your nodes would be to create a node declaration for each host and either add Package[ksh] on each node or have them include a class with that resource definition. If you're looking for a way

Re: [Puppet Users] Nagios and www-data users.

2012-09-05 Thread Darin Perusich
There should be a "nagcmd" group which both nagios and your apache user are members of. The nagios.cmd pipe should have permission of 0660 and ownership of nagios:nagcmd. If you were using check_mk livestatus then the livestatus.cmd socket would have the same perms and ownership. Usually this is t

[Puppet Users] QUERY : no resources for remote admin?

2012-09-05 Thread am-aaron
hello fellow engineers: i am currently developing a Puppet manifest to Deploy (Install, Configure) a Software Package onto a number of Nodes from a Machine that is network connected to the Nodes (can ssh). the Yum Repo for the Nodes is on this Deployment Point. it was and still is very surpris

Re: [Puppet Users] Re: Facter does not deliver ip addresses

2012-09-05 Thread Ashley Penney
I am going to guess this is the old 'There's no /sbin/ifconfig' thing. I've got a pull request for facter that fixes this and a bunch of other stuff at https://github.com/puppetlabs/facter/pull/267 if you want to try checking out that version of Facter and trying it on your SuSE box. It'll try an

[Puppet Users] Override param from parametrized class?

2012-09-05 Thread Jakov Sosic
Hi. I've seen in many modules at puppet-forge this kind of organization: class myclass( $somevar='value' ) inherits myclass::params { file { $mydir: ensure => directory, } } class myclass::params { $mydir = '/some/path' } Now, I wonder how can I override $mydir from node definition

[Puppet Users] Custom type obligatory field?

2012-09-05 Thread Jakov Sosic
Hi. I've been trying to develop a module for managing Cobbler from puppet. So, I need a custom type - cobblerdistro, which will fetch ISO from http, unpack it at desired destination and register distro with Cobbler. I have one issue with ensure => absent situation. First of all, here is my type:

[Puppet Users] Re: adding users on remote mysql

2012-09-05 Thread Luca Gioppo
OK I tryed to apply the idea and it seems to work up to the fact that the db host forget the root password I'm using puppetlabs mysql module and doing this in node hostdb class { 'mysql::server': config_hash => {root_password => 'changeme',} } Mysql

[Puppet Users] Re: Facter does not deliver ip addresses

2012-09-05 Thread Krzysztof Wilczynski
Hi, How does your ifconfig -a output looks like? Suspects: https://github.com/puppetlabs/facter/blob/master/lib/facter/interfaces.rb https://github.com/puppetlabs/facter/blob/master/lib/facter/util/ip.rb KW On Wednesday, 5 September 2012 09:52:03 UTC+1, Axel Bock wrote: > > Hello, > > @Joseph

[Puppet Users] Nagios and www-data users.

2012-09-05 Thread Douglas Garstang
I'm sure people have hit this problem before. In my nagios module, the nagios command pipe file at /var/lib/nagios3/rw/nagios.cmd is owned by the nagios user, but needs to be written to by the www-data user. Adding the www-user to the nagios group is one solution, but that requires that the nagios

Re: [Puppet Users] Is there a puppet module for tomcat and apache

2012-09-05 Thread Peter Bukowinski
On Sep 5, 2012, at 11:33 AM, JGonza1 wrote: > Is there a puppet module for tomcat and another one for apache? Puppet Forge is the first place you should go to look for modules: http://forge.puppetlabs.com A search for 'tomcat' and 'apache' both yield multiple results. http://forge.puppetlabs.

Re: [Puppet Users] create_resources function returns error "can't convert Array into Hash"

2012-09-05 Thread Dan Bode
On Wed, Sep 5, 2012 at 8:37 AM, JeremyCampbell wrote: > > > On Wednesday, September 5, 2012 5:20:49 PM UTC+2, Dan Bode wrote: > >> >> >> On Wed, Sep 5, 2012 at 8:15 AM, JeremyCampbell wrote: >> >>> >>> >>> On Wednesday, September 5, 2012 4:15:31 PM UTC+2, Dan Bode wrote: >>> On Wed,

Re: [Puppet Users] Re: Weird variable dependency issue + different behavior between master/masterless

2012-09-05 Thread renaud
That was the problem indeed. The agent was 2.7.19 and the master 2.7.14. Thanks ! On Wednesday, September 5, 2012 4:38:58 PM UTC+1, R.I. Pienaar wrote: > > > > - Original Message - > > From: "renaud" > > > To: puppet...@googlegroups.com > > Sent: Wednesday, September 5, 2012 4:20:17 P

Re: [Puppet Users] Re: Weird variable dependency issue + different behavior between master/masterless

2012-09-05 Thread R.I.Pienaar
- Original Message - > From: "renaud" > To: puppet-users@googlegroups.com > Sent: Wednesday, September 5, 2012 4:20:17 PM > Subject: [Puppet Users] Re: Weird variable dependency issue + different > behavior between master/masterless > > I've found the problem ! > "$1-yy$2-redis1" just

Re: [Puppet Users] create_resources function returns error "can't convert Array into Hash"

2012-09-05 Thread JeremyCampbell
On Wednesday, September 5, 2012 5:20:49 PM UTC+2, Dan Bode wrote: > > > > On Wed, Sep 5, 2012 at 8:15 AM, JeremyCampbell > > > wrote: > >> >> >> On Wednesday, September 5, 2012 4:15:31 PM UTC+2, Dan Bode wrote: >> >>> >>> >>> On Wed, Sep 5, 2012 at 7:05 AM, JeremyCampbell wrote: >>> I have

[Puppet Users] Is there a puppet module for tomcat and apache

2012-09-05 Thread JGonza1
Is there a puppet module for tomcat and another one for apache? -- 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/-/mQ_MgkwB0z0J. To post to this group, send em

[Puppet Users] Starting service as non root user with puppet

2012-09-05 Thread Sean Murphy
Hi, I have an ubuntu system with some of our own services on it. I prefer to run these services as a non-root user. I can control the services using upstart as a non root user and can start and stop the service using initctl without any problems. I'm trying to use puppet to start and stop these s

[Puppet Users] Re: How to automatically implement default configuration changes made by a package upgrade

2012-09-05 Thread Stefan Heijmans
Hi Matthew, We are on Red Hat and do the following with config files which will be updated after yum update. - our own customized config files of the rpm are in Puppet with an addon for rpm name&version (for instance; files/lvm.conf_lvm2-2.02.88-7.el5) - we have a custom facter which determin

Re: [Puppet Users] create_resources function returns error "can't convert Array into Hash"

2012-09-05 Thread Dan Bode
On Wed, Sep 5, 2012 at 8:15 AM, JeremyCampbell wrote: > > > On Wednesday, September 5, 2012 4:15:31 PM UTC+2, Dan Bode wrote: > >> >> >> On Wed, Sep 5, 2012 at 7:05 AM, JeremyCampbell wrote: >> >>> I have written a custom function that returns a hash of data to be used >>> by the *create_resources

[Puppet Users] Re: Weird variable dependency issue + different behavior between master/masterless

2012-09-05 Thread renaud
I've found the problem ! "$1-yy$2-redis1" just didn't work on the puppetmaster, it needs better escaping : ""${1}-yy${2}-redis1" I'd still be interested to know the reason for that, and also why my 'notice' statement had no output when run from puppetmaster. On Wednesday, September 5, 2012 3:24

Re: [Puppet Users] create_resources function returns error "can't convert Array into Hash"

2012-09-05 Thread JeremyCampbell
On Wednesday, September 5, 2012 4:15:31 PM UTC+2, Dan Bode wrote: > > > > On Wed, Sep 5, 2012 at 7:05 AM, JeremyCampbell > > > wrote: > >> I have written a custom function that returns a hash of data to be used >> by the *create_resources* function. >> >> class network::multiroute::mhpeers (

[Puppet Users] Re: Weird variable dependency issue + different behavior between master/masterless

2012-09-05 Thread renaud
I should add that I've added a 'notice' statement for debugging, which again shows the correct things when the manifest is applied manually, but doesn't seem to be executed (at all) when run through the puppetmaster On Wednesday, September 5, 2012 3:19:07 PM UTC+1, renaud wrote: > > Thanks John

[Puppet Users] Re: Weird variable dependency issue + different behavior between master/masterless

2012-09-05 Thread renaud
Thanks John, The Puppet templating docs recommend referring to DSL variables via Ruby > class variables, so as @master_host and @master_port in your case. > Referring to them via local variables (as your template does) will often > work, but it can fail in interesting ways if your variables ha

Re: [Puppet Users] create_resources function returns error "can't convert Array into Hash"

2012-09-05 Thread Dan Bode
On Wed, Sep 5, 2012 at 7:05 AM, JeremyCampbell wrote: > I have written a custom function that returns a hash of data to be used by > the *create_resources* function. > > class network::multiroute::mhpeers ( > ) { > $routes = gen_ip_routes("gw.uk") > create_resources(network::multiroute::mhpeer

[Puppet Users] Re: notify vs. require of services

2012-09-05 Thread jcbollinger
On Wednesday, September 5, 2012 3:47:04 AM UTC-5, Axel Bock wrote: > > Hi readers, > > I had this idea. I am deploying a configuration file of a service with > puppet, and I want to restart the service if the file changes. > > so I had this idea that the file definition contains a require=> an

[Puppet Users] Re: Could not retrieve catalog from remote server: end of file reached

2012-09-05 Thread Mike Frisch
On Tuesday, July 24, 2012 12:47:09 PM UTC-4, Matt Wise wrote: > > I've got a few puppet servers running behind Nginx, load balanced with an > ELB. I occasionally see this error in bursts.. > > > > Tue Jul 24 09:41:23 + 2012 Puppet (err): Could not retrieve catalog > from remote server: end

[Puppet Users] Re: How to automatically implement default configuration changes made by a package upgrade

2012-09-05 Thread Justin Ellison
Hi Matthew, Some of this depends on your package manager. For example, on RedHat, if you take puppet completely out of the picture: 1) I install mysql from yum 2) I modify my.cnf 3) I upgrade mysql via yum In this case, if there was a configuration change to my.cnf by redhat, I won't get them.

[Puppet Users] create_resources function returns error "can't convert Array into Hash"

2012-09-05 Thread JeremyCampbell
I have written a custom function that returns a hash of data to be used by the *create_resources* function. class network::multiroute::mhpeers ( ) { $routes = gen_ip_routes("gw.uk") create_resources(network::multiroute::mhpeer, $routes) } However, on the puppet client I get "err: Could not

[Puppet Users] Re: Weird variable dependency issue + different behavior between master/masterless

2012-09-05 Thread jcbollinger
On Wednesday, September 5, 2012 5:09:52 AM UTC-5, renaud wrote: > > Hello all, > > I know that execution order is not guaranteed within a scope without > explicitly declaring dependencies. > However I've always been able to set variables in classes, and expect them > to be used properly in te

[Puppet Users] Re: Module critique

2012-09-05 Thread jcbollinger
On Tuesday, September 4, 2012 10:26:14 AM UTC-5, Bai Shen wrote: > > I've gotten an install of solr working, but it's pretty much a hack job at > the moment. If y'all could give me your thoughts on how to improve my > setup, I'd appreciate it. apache-tomcat is an rpm of Tomcat 7 that > refer

[Puppet Users] adding users on remote mysql

2012-09-05 Thread gioppoluca
The problem is: when installing an application in a distributed environment I need to create the application DB on a remote host and not on the same host as the application. To make an example I'm going to install zabbix on host1 and the mysql db is on host2 I'll have to run the script to crea

[Puppet Users] Weird variable dependency issue + different behavior between master/masterless

2012-09-05 Thread renaud
Hello all, I know that execution order is not guaranteed within a scope without explicitly declaring dependencies. However I've always been able to set variables in classes, and expect them to be used properly in templates that I declare in a File statement in the same class. It looks like I

Re: [Puppet Users] Re: notify vs. require of services

2012-09-05 Thread Axel Bock
Am Mittwoch, 5. September 2012 11:25:51 UTC+2 schrieb R.I. Pienaar: > > why would you start a service before the config file is deployed? > surely you want to configure the service before starting it? > sure :) . that's what I meant, basically. > so the common pattern is: > > package{"some

Re: [Puppet Users] Re: notify vs. require of services

2012-09-05 Thread R.I.Pienaar
- Original Message - > From: "Axel Bock" > To: puppet-users@googlegroups.com > Sent: Wednesday, September 5, 2012 10:18:31 AM > Subject: [Puppet Users] Re: notify vs. require of services > > hm, I still don't see the logic. > > I think this is a common scenario (please tell me I'm wron

[Puppet Users] Duplicate Class declaration error

2012-09-05 Thread Gavin Williams
Morning all I'm trying to get puppet setup to manage our env. I've managed to get the basic stuff working such as ntp, motd, users/groups, sudo, etc... I'm now starting to build a configuration framework for our applications, including java, glassfish, j2ee apps, etc... However I've hit a s

[Puppet Users] How to automatically implement default configuration changes made by a package upgrade

2012-09-05 Thread Matthew Morgan
Hi All, Sorry if this has been asked before but I am not entirely sure what to search for so as to get the answer I am looking for. I have recently started using puppet to manage our servers (we have 30 at the moment) and I have been posed the question of whether I wholesale change configs or

[Puppet Users] Re: notify vs. require of services

2012-09-05 Thread Axel Bock
hm, I still don't see the logic. I think this is a common scenario (please tell me I'm wrong) that you ensure presence of a service generally, and then deploy a config file, and on changes you want - of course - the service to be restarted. or ... not?! is there a puppet pattern on how to do t

[Puppet Users] Re: troubleshooting resource collection

2012-09-05 Thread Frank Van Damme
On Wednesday, August 29, 2012 11:12:12 PM UTC+2, jcbollinger wrote: > > > > On Wednesday, August 29, 2012 9:34:24 AM UTC-5, Frank Van Damme wrote: >> >> On Wednesday, August 29, 2012 4:14:27 PM UTC+2, jcbollinger wrote: >>> >>> >>> >>> >> There is, in another class (and as I wrote, the collection

[Puppet Users] Re: Facter does not deliver ip addresses

2012-09-05 Thread Axel Bock
Hello, @Joseph: not yet. @Eric: sure :) . SLES 11 SP2, and the output is here: http://pastebin.com/jqgNmewk But I have an idea. I have another host where it still works. The host it stopped working on has two IP addresses configured on one (!) network device. so an "ip a" gives me: [...] 2

Re: [Puppet Users] notify vs. require of services

2012-09-05 Thread R.I.Pienaar
- Original Message - > From: "Axel Bock" > To: puppet-users@googlegroups.com > Sent: Wednesday, September 5, 2012 9:47:03 AM > Subject: [Puppet Users] notify vs. require of services > > Hi readers, > > I had this idea. I am deploying a configuration file of a service > with puppet, and

[Puppet Users] notify vs. require of services

2012-09-05 Thread Axel Bock
Hi readers, I had this idea. I am deploying a configuration file of a service with puppet, and I want to restart the service if the file changes. so I had this idea that the file definition contains a require=> and a notify=> for the service. that does not work, because Puppet does assume cy

Re: [Puppet Users] Re: trouble with catalog with Foreman as ENC

2012-09-05 Thread Erik Dalén
Actually I think the problem is that the source parameter should begin with puppet:/// (3 slashes), otherwise it will tro to look up the server "modules" and that failed. On 4 September 2012 20:12, Sam Kottler wrote: > That means that modules/connexity_apt/files/connexity.list doesn't exist. > >