[Puppet Users] Re: has_variable? broken?

2009-08-21 Thread Jim Pirzyk
then %> Then the templates started working as expected. It did NOT work when I did this: <% if has_variable?("server_admin") and server_admin != "" then %> So the comparison operator is slightly different after converting to a string. - JimP On Aug 20, 2009,

[Puppet Users] has_variable? broken?

2009-08-20 Thread Jim Pirzyk
Hi, I'm trying to generate apache virtual host configs and I have run into what I think is a bug. Here is my setup: CentOS 5.3 puppet 0.24.8 puppetmaster 0.24.8 Here is my template for the vhost configuration: -- vhost2.erb -- NameVirtualHost <%= name %>:<%= port %> :<%= port %>> <% if has_v

[Puppet Users] Re: Influencing a class from another one?

2009-07-02 Thread Jim Pirzyk
Other solution would be to create a rsyslog type and call it in the ossec::server class. I have a sendmail class that has this syslog type: syslog { "/var/log/maillog": selector => "mail.debug", ensure => present, owner => root,

[Puppet Users] Re: Could not retrieve catalog: Could not find node

2009-06-03 Thread Jim Pirzyk
Do you have a node default { ... } section in your site.pp or any included file? - JimP On Jun 3, 2009, at 7:12 PM, Jeremy Hansen wrote: > > > Actually, puppet seems to be doing this for any NEW host. What > went wrong? > > -jeremy > > Jeremy Hansen wrote: >> This one is driving me a little

[Puppet Users] Re: "Could not prefetch package provider 'yum': Command rpm is missing"

2009-05-24 Thread Jim Pirzyk
What version of puppet? also what is your path set to. I had a problem on an older version of puppet (can't remember which one) where i had '/etc' on my path and puppet was trying to use /etc/rpm as the rpm command, but /etc/rpm is a directory and then failed. It has been fixed in the mor

[Puppet Users] cron type autorequire?

2009-05-11 Thread Jim Pirzyk
Just ran into a dependency issue with 0.24.8. The system was trying to add a crontab entry for a user it had not yet created. I do have the user being created with the user type. I started to look into the code and it seems the user is not setup with autorequire. My question is should it

[Puppet Users] Re: Starting a (SMF) service on Solaris with Puppet

2009-05-06 Thread Jim Pirzyk
I believe you do not need start => true you may need to set the name though: name => 'svc:/network/postfix:default' unless 'svcadm enable postfix' works as is (I do not have postfix on my servers, but I can do 'svcadm enable smtp' The enable => true means to execute the 'sv

[Puppet Users] Re: Cant get puppet to remove rpm's with circular dependencies

2009-05-01 Thread Jim Pirzyk
I see the same dependency problem with ypbind and yp-tools that come with Fedora/RHEL/CentOS. Changing to using an exec seems broken. It prevents you from using the builtin provider that puppet supplies. - JimP On May 1, 2009, at 11:36 AM, Jason Rojas wrote: RPM circular dependencies h

[Puppet Users] Requiring custom facts in a recipe?

2009-04-27 Thread Jim Pirzyk
I'm trying to bootstrap puppet on an existing server I have. I rely quite a bit on custom facts in my setup. Is there a way that I can have the facts be required in a recipe, maybe like this: file { "/etc/foo.conf": ... content => template("foo.conf.erb"), require =>

[Puppet Users] Re: Puppet watching puppet

2009-04-06 Thread Jim Pirzyk
uot;${base} dead but subsys locked" return 2 fi echo $"${base} is stopped" return 3 } So even though you provide a PID file, the status command looks first in the process table (finding the puppetd --test) first. I have worked around t

[Puppet Users] Puppet watching puppet

2009-04-06 Thread Jim Pirzyk
I have this recipe setup to maintain puppetd: service { "puppet": name => $operatingsystem ? { Fedora => "puppet", CentOS => "puppet", Solaris => $kernelrelease ? { "5.10" => "svc:/network/puppetd:default",

[Puppet Users] Re: Custom Types and autonotify?

2009-03-20 Thread Jim Pirzyk
On Mar 20, 2009, at 10:00 AM, Peter Meier wrote: Hi I just though of another case where this would be useful, running 'newaliases' after /etc/mail/aliases has been updated. What do other people do? I have mailalias { foo: ... notify => [ Exec[newaliases] ] } on each mail

[Puppet Users] Re: Custom Types and autonotify?

2009-03-20 Thread Jim Pirzyk
On Mar 19, 2009, at 6:23 PM, Luke Kanies wrote: On Mar 18, 2009, at 1:23 PM, Jim Pirzyk wrote: I have been working on full feature syslog type and providers. I have a few questions about how to do things. 1) How do I have a type 'implement' functionality from another type. For

[Puppet Users] Custom Types and autonotify?

2009-03-18 Thread Jim Pirzyk
I have been working on full feature syslog type and providers. I have a few questions about how to do things. 1) How do I have a type 'implement' functionality from another type. For example, I have these 2 types: file {"/var/log/ipfw.log": ensure => present, mode => 600,