Awesome. I did not realize I needed a comma after the bracket, since you would think that the comma from the facter definition would suffice.
Thanks Charles. On Jul 28, 2:53 pm, Charles Johnson <gm.thisfel...@gmail.com> wrote: > Missing a comma "," perhaps? > > group => $kernel ? { > Linux => "root", > SunOS => "bin", > default => "root", > }, > > On Thu, Jul 28, 2011 at 1:47 PM, Jemmorey <jemmo...@gmail.com> wrote: > > I'm a relatively new user of puppet, so hopefully this isn't too basic > > a problem. > > > I have a resolv.conf module that intermittently works. When it fails, > > it fails with: > > > err: Could not retrieve catalog from remote server: Error 400 on > > SERVER: Could not parse for environment development: Syntax error at > > ':'; expected '}' at /etc/puppet/env/development/modules/resolv_mod/ > > manifests/init.pp:21 > > > file { "resolv.conf": > > name => "/etc/resolv.conf", > > owner => "root", > > group => $kernel ? { > > Linux => "root", > > SunOS => "bin", > > default => "root", > > } > > mode => "0644", > > ensure => present, > > replace => true, > > content => template("resolv-template.erb"), > > } > > > When I remove the fact usage, it works properly without fail. > > > I am using the EPEL version of puppetmaster and puppet on CentOS5.u6 > > and RHEL5.u5. > > > # rpm -qa |grep puppet > > puppet-0.25.5-1.el5 > > puppet-server-0.25.5-1.el5 > > > Any help is much appreciated. > > > Thanks. > > > Jordan > > > -- > > 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 > > puppet-users+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/puppet-users?hl=en. -- 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 puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.