Re: [Puppet Users] Re: Template Samples

2010-12-16 Thread Martin Samm
Donovan, thanks for that. i\ downgraded my puppet server last night, but i'll get a test system up & running, thanks again martin On Fri, Dec 17, 2010 at 6:38 AM, donavan wrote: > On Dec 16, 10:51 am, boddiesdrinker wrote: > > where can i get some template samples that use the function_ > >

Re: [Puppet Users] Re: function_file error

2010-12-16 Thread Martin Samm
Donovan, yes it does. for quite a long time. it echos that its bound variables on the erb then sites there. the client times out and then eventually puppetmaster comes back with the error. Thanks, Martin On Fri, Dec 17, 2010 at 6:29 AM, donavan wrote: > On Dec 16, 10:48 am, boddiesdrinker

[Puppet Users] Re: Template Samples

2010-12-16 Thread donavan
On Dec 16, 10:51 am, boddiesdrinker wrote: > where can i get some template samples that use the function_ > references? > > Many Thanks > Martin I replied in the other thread. I think you're hitting a bug. But this is a working template that calls a core function: <% value = scope.function_fqdn_

[Puppet Users] Re: function_file error

2010-12-16 Thread donavan
On Dec 16, 10:48 am, boddiesdrinker wrote: > The template file has this code: > > relay = scope.function_file(["/etc/puppet/secrets/smtp/" + name + "/ > relay"]).chomp > > Could it be the form of the file function which has changed? I've just opened an issue that you may be hitting in 2.6[1]. Doe

Re: [Puppet Users] Re: n00b questions - verbosity of config????

2010-12-16 Thread Nan Liu
On Thu, Dec 16, 2010 at 2:57 PM, Tim Watts wrote: > Hi Felix, > > Thanks for this - I am liking it. > > >>> define remotefile($path, $module, $owner = root, $group = root, $mode >>> = 0644, $ensure = present) { >>>   file { $name: >>>     ensure  =>  $ensure, >>>     mode    =>  $mode, >>>     own

[Puppet Users] Re: New Employee Announcement -- Daniel Pittman joins Puppet Labs.

2010-12-16 Thread Nan Liu
On Thu, Dec 16, 2010 at 5:22 PM, Teyo Tyree wrote: > Happy to announce that Daniel Pittman has joined Puppet Labs as a member of > the development team.  He will be working remotely until he moves to > Portland from Australia in early January. > Daniel is a long time contributor to the Puppet proj

Re: [Puppet-dev] Re: [Puppet Users] What am I doing wrong?

2010-12-16 Thread Umair Ghani
One more question. How can I run hostmanager as a particular user? By default it runs it as user root. Thanks Umair On Thu, Dec 16, 2010 at 4:12 PM, Umair Ghani wrote: > YES ...that helped alot...I got it working now.. > Thank you very much > Umair > > > On Thu, Dec 16, 2010 at 3:03 PM, Stefan

[Puppet Users] Re: New Employee Announcement -- Daniel Pittman joins Puppet Labs.

2010-12-16 Thread Nigel Kersten
On Thu, Dec 16, 2010 at 4:22 PM, Teyo Tyree wrote: > Happy to announce that Daniel Pittman has joined Puppet Labs as a member of > the development team.  He will be working remotely until he moves to > Portland from Australia in early January. > Daniel is a long time contributor to the Puppet proj

[Puppet Users] New Employee Announcement -- Daniel Pittman joins Puppet Labs.

2010-12-16 Thread Teyo Tyree
Happy to announce that Daniel Pittman has joined Puppet Labs as a member of the development team. He will be working remotely until he moves to Portland from Australia in early January. Daniel is a long time contributor to the Puppet project and brings over 12 years of experience as both a develo

[Puppet Users] Re: function_file error

2010-12-16 Thread donavan
On Dec 16, 10:48 am, boddiesdrinker wrote: > The template file has this code: > > relay = scope.function_file(["/etc/puppet/secrets/smtp/" + name + "/ > relay"]).chomp > > Could it be the form of the file function which has changed? According to the docs[1][2] it looks the same. The error you pos

Re: [Puppet Users] puppetmaster 100%cpu usage on 2.6 (not on 0.24)

2010-12-16 Thread Nigel Kersten
On Thu, Dec 16, 2010 at 4:49 AM, Leonid Batizhevsky wrote: > I have  same issuer with running puppentmaster and puppted in same > host. When I updated ruby to 1.8.7 enterprise It resolve problem for > me. > Leonid S. Batizhevsky For the sake of the archives, what version did you upgrade *from* Le

Re: [Puppet Users] Help with Puppet install on OS X Server

2010-12-16 Thread Nigel Kersten
On Thu, Dec 16, 2010 at 1:40 PM, Brian LaShomb wrote: > Hi all... finally getting around to trying Puppet, I'm excited to get > started, but I'm stuck on install. My server a 3-month old Xserve with 6GB > of RAM. Didn't configure any other services for it yet, and I tried > installing puppet and f

[Puppet Users] Re: Separating puppetmaster file serving and catalogs

2010-12-16 Thread donavan
On Dec 16, 1:23 pm, Patrick wrote: > > If such an approach is at all possible, the complete implementation > > would include giving the proxy the means to recognize valid client > > certificates. > > The proxy can and is recognizing valid certificates.  The problem is passing > that information o

[Puppet Users] Re: Separating puppetmaster file serving and catalogs

2010-12-16 Thread donavan
On Dec 16, 8:06 am, Richard Crowley wrote: > > Is it possible to have the fileserving subset of puppetmasters running > > without any SSL support? That's throwing security out of the windows of > > course, so the proxy should be able to determine (say, by IP rule?) what > > clients are allowed and

Re: [Puppet Users] Help with Puppet install on OS X Server

2010-12-16 Thread Nan Liu
On Thu, Dec 16, 2010 at 2:40 PM, Brian LaShomb wrote: > Hi all... finally getting around to trying Puppet, I'm excited to get > started, but I'm stuck on install. My server a 3-month old Xserve with 6GB > of RAM. Didn't configure any other services for it yet, and I tried > installing puppet and f

[Puppet Users] Help with Puppet install on OS X Server

2010-12-16 Thread Brian LaShomb
Hi all... finally getting around to trying Puppet, I'm excited to get started, but I'm stuck on install. My server a 3-month old Xserve with 6GB of RAM. Didn't configure any other services for it yet, and I tried installing puppet and facter 3 different ways (because I thought the missing rrd direc

[Puppet Users] Exec resource doc appears outdated

2010-12-16 Thread Lucas Ewalt
Hoping someone can shed some light on this. In the Puppet resource type doc at http://docs.puppetlabs.com/references/stable/type.html#exec it says this about exec: "It is worth noting that exec is special, in that it is not currently considered an error to have multiple exec instances with the s

[Puppet Users] Re: Could not find class

2010-12-16 Thread Dmytro Bablinyuk
Thank you very much! It's working now. Indeed when I have some spare time I may attempt to write another module. Dmytro On Dec 16, 9:39 pm, "luke.bigum" wrote: > Dmytro, > > I'm a git noob :) I've had a look at the module now. I wouldn't say > it's designed that well and I think a few people on

[Puppet Users] Re: storeconfig / mysql

2010-12-16 Thread cyrus
I have the same issue with Passenger. This is preventing me from using Storeconfigs all together. On Dec 14, 12:47 pm, donavan wrote: > On Dec 12, 11:17 pm, walexey wrote: > > > > > Puppet (err): Could not retrieve catalog from remote server: Error 400 > > > > on SERVER: Mysql::Error: MySQL serv

[Puppet Users] Re: exec prior to changes

2010-12-16 Thread CraftyTech
Answered my own question. Basically you'd need to use: refreshonly => true. 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-us...@googlegroups.com. To unsubscribe from this group, send email

Re: [Puppet Users] file: ensure => present, purge => true

2010-12-16 Thread Daniel Pittman
On Fri, Dec 17, 2010 at 02:26, CraftyTech wrote: > I'm not sure what I'm missing here, but when defining a file > resource, to use as my yum repo, I can't seem to be able to purge > other files in the directory. When you specify recurse and purge to a file resource you need to do that on a *dire

Re: [Puppet-dev] Re: [Puppet Users] What am I doing wrong?

2010-12-16 Thread Umair Ghani
YES ...that helped alot...I got it working now.. Thank you very much Umair On Thu, Dec 16, 2010 at 3:03 PM, Stefan Schulte < stefan.schu...@taunusstein.net> wrote: > On Thu, Dec 16, 2010 at 01:45:17PM -0600, Umair Ghani wrote: > > Hello > > > [...] > > > > But I keep getting the following error

[Puppet Users] exec prior to changes

2010-12-16 Thread CraftyTech
Hello All, Is there a way to execute an exec prior making a change from a different resource type? For instance: Is there a way that I can do exec { "/code/backup.sh"}, prior to doing file { "/etc/whatever": ensure => present, content => Template["puppet:///whatever"]}. Neither subscribe

Re: [Puppet Users] Re: n00b questions - verbosity of config????

2010-12-16 Thread Tim Watts
Hi Felix, Thanks for this - I am liking it. define remotefile($path, $module, $owner = root, $group = root, $mode = 0644, $ensure = present) { file { $name: ensure => $ensure, mode=> $mode, owner => $owner, group => $group, source => "puppet:///module

Re: [Puppet Users] Separating puppetmaster file serving and catalogs

2010-12-16 Thread Patrick
On Dec 16, 2010, at 7:55 AM, Felix Frank wrote: > On 12/16/2010 10:28 AM, Patrick wrote: >> >> >> On Dec 16, 2010, at 1:04 AM, Brice Figureau wrote: My original error was that I didn't set: SSLProxyEngine on Now I'm just getting errors that say all requests are forbidden.

Re: [Puppet Users] What am I doing wrong?

2010-12-16 Thread Stefan Schulte
On Thu, Dec 16, 2010 at 01:45:17PM -0600, Umair Ghani wrote: > Hello > [...] > > But I keep getting the following error message: > err: /Stage[main]/some_name/Servicemanager[some_name]: Could not evaluate: > No ability to determine if servicemanager exists > > OR > err: Could not run Puppet conf

[Puppet Users] What am I doing wrong?

2010-12-16 Thread Umair Ghani
Hello I need some help with a problem I cant figure out. I tried to look for the same problem in the puppet forums but I couldn't find anything. I have created a custom Type and a custom Provider but I keep getting the same error not matter what I do. So any help will very appreciated. My Type is

[Puppet Users] Template Samples

2010-12-16 Thread boddiesdrinker
where can i get some template samples that use the function_ references? Many Thanks Martin -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send

[Puppet Users] Re: function_file error

2010-12-16 Thread boddiesdrinker
The template file has this code: relay = scope.function_file(["/etc/puppet/secrets/smtp/" + name + "/ relay"]).chomp Could it be the form of the file function which has changed? On Dec 16, 3:45 pm, boddiesdrinker wrote: > Spoke too soon. > > If i run puppetd like this: > > sudo puppetd --test -

[Puppet Users] Issue upgrading to 2.6.3

2010-12-16 Thread Stu Teasdale
Hi all, I seem to be having an odd issue since upgrading from 0.25.4 to 2.6.3 with a template based external file resource. On the clients that define the resource I get the following error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template backu

[Puppet Users] Re: Autorequiring and dependency problem

2010-12-16 Thread jcbollinger
On Dec 15, 4:27 pm, "Jay N." wrote: > Hi, > > I have a dependency problem in my configuration. I have thoses 2 > objects. > > file { "/etc/puppet/files": > ... > > } > > file { "/etc/puppet": > ... > require => File["/etc/puppet/files"], > > } > > I thought I would have no problem with that but

Re: [Puppet Users] Separating puppetmaster file serving and catalogs

2010-12-16 Thread Felix Frank
On 12/16/2010 05:06 PM, Richard Crowley wrote: >> Is it possible to have the fileserving subset of puppetmasters running >> without any SSL support? That's throwing security out of the windows of >> course, so the proxy should be able to determine (say, by IP rule?) what >> clients are allowed and

Re: [Puppet Users] Separating puppetmaster file serving and catalogs

2010-12-16 Thread Richard Crowley
> Is it possible to have the fileserving subset of puppetmasters running > without any SSL support? That's throwing security out of the windows of > course, so the proxy should be able to determine (say, by IP rule?) what > clients are allowed and which aren't. This seems like a job for a new file

Re: [Puppet Users] Separating puppetmaster file serving and catalogs

2010-12-16 Thread Felix Frank
On 12/16/2010 10:28 AM, Patrick wrote: > > > On Dec 16, 2010, at 1:04 AM, Brice Figureau wrote: >>> My original error was that I didn't set: >>> SSLProxyEngine on >>> >>> Now I'm just getting errors that say all requests are forbidden. I >>> assume this is because the puppetmaster isn't seeing t

[Puppet Users] Re: file: ensure => present, purge => true

2010-12-16 Thread CraftyTech
I'm using puppet 0.25.5 On Dec 16, 10:26 am, CraftyTech wrote: > Hello All, > >      I'm not sure what I'm missing here, but when defining a file > resource, to use as my yum repo, I can't seem to be able to purge > other files in the directory.  For instance, I just want to have > base.repo unde

[Puppet Users] Re: function_file error

2010-12-16 Thread boddiesdrinker
Spoke too soon. If i run puppetd like this: sudo puppetd --test --noop -v i get the error: err: Failed to parse template postfix/relayhost.erb: undefined method `function_file' for # at /etc/ puppet/testing/modules/postfix/manifests/init.pp:114 on node ip-10-250-14-118.ec2.internal Help. Than

Re: [Puppet Users] Re: source /etc/profile

2010-12-16 Thread Jonathan Barber
On 15 December 2010 13:08, Adrian Tofan wrote: > > Thank you for an interesting idea , > >> Hi Adrian, >> >> I'm not sure but I imagine by just trying to 'source' the profile within the >> current puppet runtime the scope will be lost as it would be called within >> an exec? >> >> Obviously if y

Re: [Puppet Users] source /etc/profile

2010-12-16 Thread Jonathan Barber
On 15 December 2010 18:01, Adrian Tofan wrote: > Here is what I managed to do: > > I was forced to replace package {"buildr":ensure=>installed} with : > >    $java_home = "/usr/lib/jvm/java-1.5.0-sun" > >    exec { install_buildr: >        command => "echo 'export JAVA_HOME=$java_home;gem inst

Re: [Puppet Users] how to us a var in define as $namevar

2010-12-16 Thread Arnau Bria
On Thu, 16 Dec 2010 07:29:18 -0700 Nan Liu wrote: > If you want to use the resource title, simply use $title or $name > within the define. yes it has more sense .. > Thanks, > > Nan Thanks, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" g

[Puppet Users] file: ensure => present, purge => true

2010-12-16 Thread CraftyTech
Hello All, I'm not sure what I'm missing here, but when defining a file resource, to use as my yum repo, I can't seem to be able to purge other files in the directory. For instance, I just want to have base.repo under /etc/yum.repos.d/, so I'm using: file { "/etc/yum.repos.d/base.repo":

[Puppet Users] Re: function_file error

2010-12-16 Thread boddiesdrinker
Sorted; had old rb files in /usr/lib/ruby/1.8/puppet.New files were in /usr/local/lib/site_ruby/1.8/puppet. renamed first to something else and bingo it works. On Dec 16, 1:43 pm, boddiesdrinker wrote: > i've inherited a system managed by Puppet and have upgraded puppet > from 0.24.4 to 2.6.4. I

[Puppet Users] Re: Separating puppetmaster file serving and catalogs

2010-12-16 Thread jcbollinger
On Dec 15, 10:03 pm, Patrick wrote: > On Dec 15, 2010, at 6:08 AM, jcbollinger wrote: > > > On Dec 15, 5:04 am, Patrick wrote: > >> I'm looking for a way to run more than one puppetmaster on the same server > >> under passenger.  Most of the puppet CPU load is waiting for the catalogs > >> to

Re: [Puppet Users] how to us a var in define as $namevar

2010-12-16 Thread Nan Liu
On Thu, Dec 16, 2010 at 7:10 AM, Arnau Bria wrote: > Hi, > > I have this code: > > define software_mount ($vo_name) { >        [...] >                device  => "server:/$vo_name", >        [...] > } > > And I'd like to use $vo_name a type name, so I could use it like: > > software_mount { ['vo_na

[Puppet Users] how to us a var in define as $namevar

2010-12-16 Thread Arnau Bria
Hi, I have this code: define software_mount ($vo_name) { [...] device => "server:/$vo_name", [...] } And I'd like to use $vo_name a type name, so I could use it like: software_mount { ['vo_name1' , 'vo_name2', ..., 'vo_nameN' ] } or even: software_mount { ['vo

[Puppet Users] function_file error

2010-12-16 Thread boddiesdrinker
i've inherited a system managed by Puppet and have upgraded puppet from 0.24.4 to 2.6.4. I upgraded facter as well; in both instances i used the latest versions. There are a few issue, the most major of which atm seems to be this: undefined method `function_file' for # NOne of the files have bee

Re: [Puppet Users] puppetmaster 100%cpu usage on 2.6 (not on 0.24)

2010-12-16 Thread Leonid Batizhevsky
I have same issuer with running puppentmaster and puppted in same host. When I updated ruby to 1.8.7 enterprise It resolve problem for me. Leonid S. Batizhevsky On Tue, Dec 14, 2010 at 11:24, Chris wrote: > Hi > > I recently upgraded my puppet masters (and clients) from 0.24.8 to > 2.6.4 > > P

[Puppet Users] Re: Could not find class

2010-12-16 Thread luke.bigum
Dmytro, I'm a git noob :) I've had a look at the module now. I wouldn't say it's designed that well and I think a few people on this list would agree. To fix your problem I think you'll have to "include rsync" first, which will then import "classes/*.pp", which will then allow Puppet to find the

[Puppet Users] Re: Could not find class

2010-12-16 Thread luke.bigum
That github link doesn't work for me so don't know the internals of this module, but if the module is called "rsync", as indicated by this module path: /etc/puppet/modules/rsync/, then any sub classes of that should be in the rsync namespace... Are you sure it's not supposed to be rsync::rsyncd? A

Re: [Puppet Users] Could not find class

2010-12-16 Thread Daniel Piddock
On 16/12/10 01:48, Dmytro Bablinyuk wrote: > Hi Everybody, > > I am sure that I am missing something very obvious, > > I have installed rsync package > > git clone https://github.com/camptocamp/puppet-rsyncd.git rsync > > The path > > r...@puppet-master:/etc/puppet/modules/rsync/manifests/classes#

Re: [Puppet Users] Separating puppetmaster file serving and catalogs

2010-12-16 Thread Patrick
On Dec 16, 2010, at 1:04 AM, Brice Figureau wrote: >> My original error was that I didn't set: >> SSLProxyEngine on >> >> Now I'm just getting errors that say all requests are forbidden. I >> assume this is because the puppetmaster isn't seeing the headers from >> apache that have the SSL infor

Re: [Puppet Users] Separating puppetmaster file serving and catalogs

2010-12-16 Thread Patrick
On Dec 16, 2010, at 12:45 AM, Felix Frank wrote: > On 12/15/2010 07:40 PM, Patrick wrote: >> >> In summery, both servers work, but no redirection is taking place. > > Hum, I'm not in the habit of using ProxyPass directives. I rather add > RewriteRules that include the [P] flag. > > One stupid

Re: [Puppet Users] Re: puppetmaster 100%cpu usage on 2.6 (not on 0.24)

2010-12-16 Thread Brice Figureau
On Wed, 2010-12-15 at 19:47 -0500, Ashley Penney wrote: > Just to reply to this - like I said earlier I can get this problem > with 1 node checking in against puppetmaster. All the puppetmasterd > processes use maximum CPU. It's not a scaling issue considering > serving one node is certainly not

Re: [Puppet Users] Separating puppetmaster file serving and catalogs

2010-12-16 Thread Patrick
On Dec 16, 2010, at 12:45 AM, Felix Frank wrote: > On 12/15/2010 07:40 PM, Patrick wrote: >> >> On Dec 15, 2010, at 3:09 AM, Felix Frank wrote: >> >>> >>> >>> On 12/15/2010 12:04 PM, Patrick wrote: I'm looking for a way to run more than one puppetmaster on the same server under pass

Re: [Puppet Users] Separating puppetmaster file serving and catalogs

2010-12-16 Thread Brice Figureau
On Wed, 2010-12-15 at 20:15 -0800, Patrick wrote: > On Dec 15, 2010, at 1:48 PM, Brice Figureau wrote: > > > On 15/12/10 12:04, Patrick wrote: > >> I'm looking for a way to run more than one puppetmaster on the same > >> server under passenger. Most of the puppet CPU load is waiting for > >> the

Re: [Puppet Users] Howto check if augeas is available

2010-12-16 Thread Hubert Krause
Hello Patrick, hello Martijn, thank you both for your sugestions: Am Friday 10 December 2010 21:37:29 schrieb Patrick: > On Dec 9, 2010, at 7:14 AM, Martijn Grendelman wrote: > > On 09-12-10 15:30, Martijn Grendelman wrote: > >> An example: add the following to > >> > >> /modules//lib/facter/auge

Re: [Puppet Users] Separating puppetmaster file serving and catalogs

2010-12-16 Thread Felix Frank
On 12/15/2010 07:40 PM, Patrick wrote: > > On Dec 15, 2010, at 3:09 AM, Felix Frank wrote: > >> >> >> On 12/15/2010 12:04 PM, Patrick wrote: >>> I'm looking for a way to run more than one puppetmaster on the same >>> server under passenger. Most of the puppet CPU load is waiting for >>> the cata

[Puppet Users] Re: Prompting fact refresh from Puppet Event

2010-12-16 Thread donavan
On Dec 15, 6:46 am, Trevor Vaughan wrote: > Is is possible to spawn a puppet fact refresh from the completion of an event? Not that I know of. All of the clients facts are submitted as params in the initial request for a catalog. There's no client <=> server feedback loop during catalog compilati