Manoj Bhola
2013-Jun-23 00:34 UTC
[Puppet Users] Calling a custom class module via a manifest - puppet 0.24.8
Hi, I hope someone can help. I have created a custom class module which updates a configuration file. When I use the puppet command: puppet -e "include custom", the file is replaced using the template file included in the module correctly. When I try to update settings in the configuration file using a manifest which uses my custom module, I get the following error from puppet: syntax error at ''{''; expected ''}'' at /root/httpstk1.pp:1 Class Module ------------------- class novell-httpstkd { # Check OES Version. Requires the oes facter additions # case $oes { OES11: { $conf_template = ''httpstkd.conf.oes11.erb'' } OES2: { $conf_template = ''httpstkd.conf.oes2.erb'' } default: { fail("Sorry your OES Version is not recognized") } } notify {addr-setting: message => "Following variables will be used:\naddr = $addr | saddr = $saddr | filteraddr = $filteraddr | filtersubnet = $filtersubnet | cipher = $cipher | mailserver = $mailserver | mailfrom = $mailfrom | mailto = $mailto | nolum = $nolum | supervisoronly = $supervisoronly | httponly = $httponly | inventoryresolvelumownername = $inventoryresolvelumownername", } if $addr == "" { $_addr = "0.0.0.0:8008" } else { $_addr = $addr } if $saddr == "" { $_saddr = "0.0.0.0:8009" } else { $_saddr = $saddr } if $filteraddr == "" { $_filteraddr = "" } else { $_filteraddr = $filteraddr } if $filtersubnet == "" { $_filtersubnet = "" } else { $_filtersubnet = $filtersubnet } if $cipher == ''all'' or $cipher == ''low'' or $cipher == ''medium'' or $cipher == ''high'' { $_cipher = $cipher } else { $_cipher = ''all'' } if $mailserver == "" { $_mailserver = "" } else { $_mailserver = $mailserver } if $mailto == "" { $_mailto = "" } else { $_mailto = $mailto } if $mailfrom == "" { $_mailfrom = "" } else { $_mailfrom = $mailfrom } if $nolum == ''true'' or $nolum == ''false'' { $_nolum = $nolum } else { $_nolum = ''false'' } if $supervisoronly == ''true'' or $supervisoronly == ''false'' { $_supervisoronly = $supervisoronly } else { $_supervisoronly = ''false'' } if $httponly == ''true'' or $httponly == ''false'' { $_httponly = $httponly } else { $_httponly = ''true'' } if $inventoryresolvenonlumownername == ''true'' or $inventoryresolvenonlumownername == ''false'' { $_inventoryresolvenonlumownername = $inventoryresolvenonlumownername } else { $_inventoryresolvenonlumownername = ''false'' } if $ensure != "running" or $ensure != "stopped" { $ensure = "running" } if $enable != "true" or $enable != "false" { $enable = "true" } file {''httpstkd_conf'': path => ''/etc/opt/novell/httpstkd.conf'', ensure => file, content => template("novell-httpstkd/${conf_template}"), owner => ''root'', group => ''root'', mode => ''755'', } service {''novell-httpstkd'': name => ''novell-httpstkd'', ensure => $ensure, enable => $enable, subscribe => File[''httpstkd_conf''], } } Manifest (This errors calling the above module) class {novell-httpstkd: addr => "$ipaddress", saddr => "$ipaddress", filteraddr => "192.168.69.20", filtersubnet => "192.168.1.0 255.255.255.0", cipher => "low", mailserver => "mail.localdomain", mailfrom => "nrm@$fqdn", mailto => "supportadmin@localdomain", enable => "false", } Manoj -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Michael Dodwell
2013-Jun-24 02:04 UTC
[Puppet Users] Re: Calling a custom class module via a manifest - puppet 0.24.8
Try putting single ticks around the class name when you call it: class {''novell-httpstkd'': addr => "$ipaddress", saddr => "$ipaddress", filteraddr => "192.168.69.20", filtersubnet => "192.168.1.0 255.255.255.0", cipher => "low", mailserver => "mail.localdomain", mailfrom => "nrm@$fqdn", mailto => "supportadmin@localdomain", enable => "false", } The - might be confusing. On Sunday, June 23, 2013 10:34:31 AM UTC+10, Manoj Bhola wrote:> > Hi, > > I hope someone can help. > > I have created a custom class module which updates a configuration file. > > When I use the puppet command: puppet -e "include custom", the file is > replaced using the template file included in the module correctly. > > When I try to update settings in the configuration file using a manifest > which uses my custom module, I get the following error from puppet: syntax > error at ''{''; expected ''}'' at /root/httpstk1.pp:1 > > Class Module > ------------------- > > class novell-httpstkd { > > # Check OES Version. Requires the oes facter additions > # > case $oes { > OES11: { > $conf_template = ''httpstkd.conf.oes11.erb'' > } > OES2: { > $conf_template = ''httpstkd.conf.oes2.erb'' > } > default: { fail("Sorry your OES Version is not recognized") } > } > > notify {addr-setting: > message => "Following variables will be used:\naddr = $addr | saddr = > $saddr | filteraddr = $filteraddr | filtersubnet = $filtersubnet | cipher = > $cipher | mailserver = $mailserver | mailfrom = $mailfrom | mailto = > $mailto | nolum = $nolum | supervisoronly = $supervisoronly | httponly = > $httponly | inventoryresolvelumownername = $inventoryresolvelumownername", > } > > if $addr == "" { > $_addr = "0.0.0.0:8008" > } > else { > $_addr = $addr > } > > if $saddr == "" { > $_saddr = "0.0.0.0:8009" > } > else { > $_saddr = $saddr > } > > if $filteraddr == "" { > $_filteraddr = "" > } > else { > $_filteraddr = $filteraddr > } > > if $filtersubnet == "" { > $_filtersubnet = "" > } > else { > $_filtersubnet = $filtersubnet > } > > if $cipher == ''all'' or $cipher == ''low'' or $cipher == ''medium'' or $cipher > == ''high'' { > $_cipher = $cipher > } > else { > $_cipher = ''all'' > } > > if $mailserver == "" { > $_mailserver = "" > } > else { > $_mailserver = $mailserver > } > > if $mailto == "" { > $_mailto = "" > } > else { > $_mailto = $mailto > } > > if $mailfrom == "" { > $_mailfrom = "" > } > else { > $_mailfrom = $mailfrom > } > > if $nolum == ''true'' or $nolum == ''false'' { > $_nolum = $nolum > } > else { > $_nolum = ''false'' > } > > if $supervisoronly == ''true'' or $supervisoronly == ''false'' { > $_supervisoronly = $supervisoronly > } > else { > $_supervisoronly = ''false'' > } > > if $httponly == ''true'' or $httponly == ''false'' { > $_httponly = $httponly > } > else { > $_httponly = ''true'' > } > > if $inventoryresolvenonlumownername == ''true'' or > $inventoryresolvenonlumownername == ''false'' { > $_inventoryresolvenonlumownername = $inventoryresolvenonlumownername > } > else { > $_inventoryresolvenonlumownername = ''false'' > } > > if $ensure != "running" or $ensure != "stopped" { > $ensure = "running" > } > > if $enable != "true" or $enable != "false" { > $enable = "true" > } > > file {''httpstkd_conf'': > path => ''/etc/opt/novell/httpstkd.conf'', > ensure => file, > content => template("novell-httpstkd/${conf_template}"), > owner => ''root'', > group => ''root'', > mode => ''755'', > } > > service {''novell-httpstkd'': > name => ''novell-httpstkd'', > ensure => $ensure, > enable => $enable, > subscribe => File[''httpstkd_conf''], > } > > } > > Manifest (This errors calling the above module) > > class {novell-httpstkd: > > addr => "$ipaddress", > saddr => "$ipaddress", > filteraddr => "192.168.69.20", > filtersubnet => "192.168.1.0 255.255.255.0", > cipher => "low", > mailserver => "mail.localdomain", > mailfrom => "nrm@$fqdn", > mailto => "supportadmin@localdomain", > enable => "false", > } > > > Manoj > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Keith Burdis
2013-Jun-24 04:03 UTC
Re: [Puppet Users] Calling a custom class module via a manifest - puppet 0.24.8
Perhaps try removing the final trailing comma after enable => "false". Some Puppet versions have a problem with this. - Keith On 24 Jun 2013 01:11, "Manoj Bhola" <mbhola21@gmail.com> wrote:> Hi, > > I hope someone can help. > > I have created a custom class module which updates a configuration file. > > When I use the puppet command: puppet -e "include custom", the file is > replaced using the template file included in the module correctly. > > When I try to update settings in the configuration file using a manifest > which uses my custom module, I get the following error from puppet: syntax > error at ''{''; expected ''}'' at /root/httpstk1.pp:1 > > Class Module > ------------------- > > class novell-httpstkd { > > # Check OES Version. Requires the oes facter additions > # > case $oes { > OES11: { > $conf_template = ''httpstkd.conf.oes11.erb'' > } > OES2: { > $conf_template = ''httpstkd.conf.oes2.erb'' > } > default: { fail("Sorry your OES Version is not recognized") } > } > > notify {addr-setting: > message => "Following variables will be used:\naddr = $addr | saddr > $saddr | filteraddr = $filteraddr | filtersubnet = $filtersubnet | cipher > $cipher | mailserver = $mailserver | mailfrom = $mailfrom | mailto > $mailto | nolum = $nolum | supervisoronly = $supervisoronly | httponly > $httponly | inventoryresolvelumownername = $inventoryresolvelumownername", > } > > if $addr == "" { > $_addr = "0.0.0.0:8008" > } > else { > $_addr = $addr > } > > if $saddr == "" { > $_saddr = "0.0.0.0:8009" > } > else { > $_saddr = $saddr > } > > if $filteraddr == "" { > $_filteraddr = "" > } > else { > $_filteraddr = $filteraddr > } > > if $filtersubnet == "" { > $_filtersubnet = "" > } > else { > $_filtersubnet = $filtersubnet > } > > if $cipher == ''all'' or $cipher == ''low'' or $cipher == ''medium'' or $cipher > == ''high'' { > $_cipher = $cipher > } > else { > $_cipher = ''all'' > } > > if $mailserver == "" { > $_mailserver = "" > } > else { > $_mailserver = $mailserver > } > > if $mailto == "" { > $_mailto = "" > } > else { > $_mailto = $mailto > } > > if $mailfrom == "" { > $_mailfrom = "" > } > else { > $_mailfrom = $mailfrom > } > > if $nolum == ''true'' or $nolum == ''false'' { > $_nolum = $nolum > } > else { > $_nolum = ''false'' > } > > if $supervisoronly == ''true'' or $supervisoronly == ''false'' { > $_supervisoronly = $supervisoronly > } > else { > $_supervisoronly = ''false'' > } > > if $httponly == ''true'' or $httponly == ''false'' { > $_httponly = $httponly > } > else { > $_httponly = ''true'' > } > > if $inventoryresolvenonlumownername == ''true'' or > $inventoryresolvenonlumownername == ''false'' { > $_inventoryresolvenonlumownername = $inventoryresolvenonlumownername > } > else { > $_inventoryresolvenonlumownername = ''false'' > } > > if $ensure != "running" or $ensure != "stopped" { > $ensure = "running" > } > > if $enable != "true" or $enable != "false" { > $enable = "true" > } > > file {''httpstkd_conf'': > path => ''/etc/opt/novell/httpstkd.conf'', > ensure => file, > content => template("novell-httpstkd/${conf_template}"), > owner => ''root'', > group => ''root'', > mode => ''755'', > } > > service {''novell-httpstkd'': > name => ''novell-httpstkd'', > ensure => $ensure, > enable => $enable, > subscribe => File[''httpstkd_conf''], > } > > } > > Manifest (This errors calling the above module) > > class {novell-httpstkd: > > addr => "$ipaddress", > saddr => "$ipaddress", > filteraddr => "192.168.69.20", > filtersubnet => "192.168.1.0 255.255.255.0", > cipher => "low", > mailserver => "mail.localdomain", > mailfrom => "nrm@$fqdn", > mailto => "supportadmin@localdomain", > enable => "false", > } > > > Manoj > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Manoj Bhola
2013-Jun-24 11:29 UTC
[Puppet Users] Re: Calling a custom class module via a manifest - puppet 0.24.8
Hi Michael, Tried that already, did not work either. Thanks On Monday, June 24, 2013 3:04:11 AM UTC+1, Michael Dodwell wrote:> > Try putting single ticks around the class name when you call it: > > class {''novell-httpstkd'': > > addr => "$ipaddress", > saddr => "$ipaddress", > filteraddr => "192.168.69.20", > filtersubnet => "192.168.1.0 255.255.255.0", > cipher => "low", > mailserver => "mail.localdomain", > mailfrom => "nrm@$fqdn", > mailto => "supportadmin@localdomain", > enable => "false", > } > > The - might be confusing. > > > > On Sunday, June 23, 2013 10:34:31 AM UTC+10, Manoj Bhola wrote: >> >> Hi, >> >> I hope someone can help. >> >> I have created a custom class module which updates a configuration file. >> >> When I use the puppet command: puppet -e "include custom", the file is >> replaced using the template file included in the module correctly. >> >> When I try to update settings in the configuration file using a manifest >> which uses my custom module, I get the following error from puppet: syntax >> error at ''{''; expected ''}'' at /root/httpstk1.pp:1 >> >> Class Module >> ------------------- >> >> class novell-httpstkd { >> >> # Check OES Version. Requires the oes facter additions >> # >> case $oes { >> OES11: { >> $conf_template = ''httpstkd.conf.oes11.erb'' >> } >> OES2: { >> $conf_template = ''httpstkd.conf.oes2.erb'' >> } >> default: { fail("Sorry your OES Version is not recognized") } >> } >> >> notify {addr-setting: >> message => "Following variables will be used:\naddr = $addr | saddr = >> $saddr | filteraddr = $filteraddr | filtersubnet = $filtersubnet | cipher = >> $cipher | mailserver = $mailserver | mailfrom = $mailfrom | mailto = >> $mailto | nolum = $nolum | supervisoronly = $supervisoronly | httponly = >> $httponly | inventoryresolvelumownername = $inventoryresolvelumownername", >> } >> >> if $addr == "" { >> $_addr = "0.0.0.0:8008" >> } >> else { >> $_addr = $addr >> } >> >> if $saddr == "" { >> $_saddr = "0.0.0.0:8009" >> } >> else { >> $_saddr = $saddr >> } >> >> if $filteraddr == "" { >> $_filteraddr = "" >> } >> else { >> $_filteraddr = $filteraddr >> } >> >> if $filtersubnet == "" { >> $_filtersubnet = "" >> } >> else { >> $_filtersubnet = $filtersubnet >> } >> >> if $cipher == ''all'' or $cipher == ''low'' or $cipher == ''medium'' or $cipher >> == ''high'' { >> $_cipher = $cipher >> } >> else { >> $_cipher = ''all'' >> } >> >> if $mailserver == "" { >> $_mailserver = "" >> } >> else { >> $_mailserver = $mailserver >> } >> >> if $mailto == "" { >> $_mailto = "" >> } >> else { >> $_mailto = $mailto >> } >> >> if $mailfrom == "" { >> $_mailfrom = "" >> } >> else { >> $_mailfrom = $mailfrom >> } >> >> if $nolum == ''true'' or $nolum == ''false'' { >> $_nolum = $nolum >> } >> else { >> $_nolum = ''false'' >> } >> >> if $supervisoronly == ''true'' or $supervisoronly == ''false'' { >> $_supervisoronly = $supervisoronly >> } >> else { >> $_supervisoronly = ''false'' >> } >> >> if $httponly == ''true'' or $httponly == ''false'' { >> $_httponly = $httponly >> } >> else { >> $_httponly = ''true'' >> } >> >> if $inventoryresolvenonlumownername == ''true'' or >> $inventoryresolvenonlumownername == ''false'' { >> $_inventoryresolvenonlumownername = $inventoryresolvenonlumownername >> } >> else { >> $_inventoryresolvenonlumownername = ''false'' >> } >> >> if $ensure != "running" or $ensure != "stopped" { >> $ensure = "running" >> } >> >> if $enable != "true" or $enable != "false" { >> $enable = "true" >> } >> >> file {''httpstkd_conf'': >> path => ''/etc/opt/novell/httpstkd.conf'', >> ensure => file, >> content => template("novell-httpstkd/${conf_template}"), >> owner => ''root'', >> group => ''root'', >> mode => ''755'', >> } >> >> service {''novell-httpstkd'': >> name => ''novell-httpstkd'', >> ensure => $ensure, >> enable => $enable, >> subscribe => File[''httpstkd_conf''], >> } >> >> } >> >> Manifest (This errors calling the above module) >> >> class {novell-httpstkd: >> >> addr => "$ipaddress", >> saddr => "$ipaddress", >> filteraddr => "192.168.69.20", >> filtersubnet => "192.168.1.0 255.255.255.0", >> cipher => "low", >> mailserver => "mail.localdomain", >> mailfrom => "nrm@$fqdn", >> mailto => "supportadmin@localdomain", >> enable => "false", >> } >> >> >> Manoj >> >>-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Manoj Bhola
2013-Jun-24 11:32 UTC
Re: [Puppet Users] Calling a custom class module via a manifest - puppet 0.24.8
Hi Keith, I''ve just tried what you suggested and that doesn''t work either, I get the same error. Thanks Manoj On Monday, June 24, 2013 5:03:59 AM UTC+1, Keith Burdis wrote:> > Perhaps try removing the final trailing comma after enable => "false". > Some Puppet versions have a problem with this. > > - Keith > On 24 Jun 2013 01:11, "Manoj Bhola" <mbho...@gmail.com <javascript:>> > wrote: > >> Hi, >> >> I hope someone can help. >> >> I have created a custom class module which updates a configuration file. >> >> When I use the puppet command: puppet -e "include custom", the file is >> replaced using the template file included in the module correctly. >> >> When I try to update settings in the configuration file using a manifest >> which uses my custom module, I get the following error from puppet: syntax >> error at ''{''; expected ''}'' at /root/httpstk1.pp:1 >> >> Class Module >> ------------------- >> >> class novell-httpstkd { >> >> # Check OES Version. Requires the oes facter additions >> # >> case $oes { >> OES11: { >> $conf_template = ''httpstkd.conf.oes11.erb'' >> } >> OES2: { >> $conf_template = ''httpstkd.conf.oes2.erb'' >> } >> default: { fail("Sorry your OES Version is not recognized") } >> } >> >> notify {addr-setting: >> message => "Following variables will be used:\naddr = $addr | saddr = >> $saddr | filteraddr = $filteraddr | filtersubnet = $filtersubnet | cipher = >> $cipher | mailserver = $mailserver | mailfrom = $mailfrom | mailto = >> $mailto | nolum = $nolum | supervisoronly = $supervisoronly | httponly = >> $httponly | inventoryresolvelumownername = $inventoryresolvelumownername", >> } >> >> if $addr == "" { >> $_addr = "0.0.0.0:8008" >> } >> else { >> $_addr = $addr >> } >> >> if $saddr == "" { >> $_saddr = "0.0.0.0:8009" >> } >> else { >> $_saddr = $saddr >> } >> >> if $filteraddr == "" { >> $_filteraddr = "" >> } >> else { >> $_filteraddr = $filteraddr >> } >> >> if $filtersubnet == "" { >> $_filtersubnet = "" >> } >> else { >> $_filtersubnet = $filtersubnet >> } >> >> if $cipher == ''all'' or $cipher == ''low'' or $cipher == ''medium'' or $cipher >> == ''high'' { >> $_cipher = $cipher >> } >> else { >> $_cipher = ''all'' >> } >> >> if $mailserver == "" { >> $_mailserver = "" >> } >> else { >> $_mailserver = $mailserver >> } >> >> if $mailto == "" { >> $_mailto = "" >> } >> else { >> $_mailto = $mailto >> } >> >> if $mailfrom == "" { >> $_mailfrom = "" >> } >> else { >> $_mailfrom = $mailfrom >> } >> >> if $nolum == ''true'' or $nolum == ''false'' { >> $_nolum = $nolum >> } >> else { >> $_nolum = ''false'' >> } >> >> if $supervisoronly == ''true'' or $supervisoronly == ''false'' { >> $_supervisoronly = $supervisoronly >> } >> else { >> $_supervisoronly = ''false'' >> } >> >> if $httponly == ''true'' or $httponly == ''false'' { >> $_httponly = $httponly >> } >> else { >> $_httponly = ''true'' >> } >> >> if $inventoryresolvenonlumownername == ''true'' or >> $inventoryresolvenonlumownername == ''false'' { >> $_inventoryresolvenonlumownername = $inventoryresolvenonlumownername >> } >> else { >> $_inventoryresolvenonlumownername = ''false'' >> } >> >> if $ensure != "running" or $ensure != "stopped" { >> $ensure = "running" >> } >> >> if $enable != "true" or $enable != "false" { >> $enable = "true" >> } >> >> file {''httpstkd_conf'': >> path => ''/etc/opt/novell/httpstkd.conf'', >> ensure => file, >> content => template("novell-httpstkd/${conf_template}"), >> owner => ''root'', >> group => ''root'', >> mode => ''755'', >> } >> >> service {''novell-httpstkd'': >> name => ''novell-httpstkd'', >> ensure => $ensure, >> enable => $enable, >> subscribe => File[''httpstkd_conf''], >> } >> >> } >> >> Manifest (This errors calling the above module) >> >> class {novell-httpstkd: >> >> addr => "$ipaddress", >> saddr => "$ipaddress", >> filteraddr => "192.168.69.20", >> filtersubnet => "192.168.1.0 255.255.255.0", >> cipher => "low", >> mailserver => "mail.localdomain", >> mailfrom => "nrm@$fqdn", >> mailto => "supportadmin@localdomain", >> enable => "false", >> } >> >> >> Manoj >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to puppet-users...@googlegroups.com <javascript:>. >> To post to this group, send email to puppet...@googlegroups.com<javascript:> >> . >> Visit this group at http://groups.google.com/group/puppet-users. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Jakov Sosic
2013-Jun-24 12:25 UTC
Re: [Puppet Users] Calling a custom class module via a manifest - puppet 0.24.8
On 06/23/2013 02:34 AM, Manoj Bhola wrote:> class novell-httpstkd {> class {novell-httpstkd: > addr => "$ipaddress", > saddr => "$ipaddress", > filteraddr => "192.168.69.20", > filtersubnet => "192.168.1.0 255.255.255.0", > cipher => "low", > mailserver => "mail.localdomain", > mailfrom => "nrm@$fqdn", > mailto => "supportadmin@localdomain", > enable => "false", > }Your class is not parametrized, yet you call it with parameters? I think that should not be possible... -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
R.I.Pienaar
2013-Jun-24 12:34 UTC
Re: [Puppet Users] Calling a custom class module via a manifest - puppet 0.24.8
----- Original Message -----> From: "Manoj Bhola" <mbhola21@gmail.com> > To: puppet-users@googlegroups.com > Sent: Sunday, June 23, 2013 1:34:31 AM > Subject: [Puppet Users] Calling a custom class module via a manifest - puppet 0.24.8 > > Hi, > > I hope someone can help.You are using 0.24.8, todays documentation does not apply to this version - the code you''re showing a mixture of old and new puppet. Upgrade to a recent version and it should go better. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Manoj Bhola
2013-Jun-24 16:36 UTC
Re: [Puppet Users] Calling a custom class module via a manifest - puppet 0.24.8
Thanks R.I Pienaar, I did think that may be the problem that the older version doesn''t understand the class type, but wanted to make sure that was the issue and not something I was doing wrong. Using a parameterized version of the class, and then the same manifest works perfectly on version 2.6.x of the puppet client. It''s just some machines had this older version and I was hoping to get away with it so to speak. Regards Manoj On Monday, June 24, 2013 1:34:27 PM UTC+1, R.I. Pienaar wrote:> > > > ----- Original Message ----- > > From: "Manoj Bhola" <mbho...@gmail.com <javascript:>> > > To: puppet...@googlegroups.com <javascript:> > > Sent: Sunday, June 23, 2013 1:34:31 AM > > Subject: [Puppet Users] Calling a custom class module via a manifest - > puppet 0.24.8 > > > > Hi, > > > > I hope someone can help. > > You are using 0.24.8, todays documentation does not apply to this version > - the code > you''re showing a mixture of old and new puppet. > > Upgrade to a recent version and it should go better. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.