In nodes.pp I have: : node ''somenode'' { class { ''someclass'': <= this is line 12 $somevariable = "somevalue", } } : My intent with this is for the somenode node to have someclass define its internal variable somevariable with somevalue. However, on the agent run, this produces the error in messages: Date/Time Host puppet-agent[pid]: Could not parse for environment production: Syntax error at ''somevariable''; expected ''}'' at /etc/puppet/manifests/nodes.pp:12 on node somenode My question is, where''s the syntax error it is complaining about? Stuart -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7d462dd3-8d8c-480a-bef7-e3264e569382%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Missing a > on the line with $somevariable ...? For example it should be: node ''somenode'' { class { ''someclass'': $somevariable => "somevalue", } } On Fri, Nov 22, 2013 at 6:18 PM, Stuart Cracraft <smcracraft@gmail.com> wrote:> In nodes.pp I have: > > : > node ''somenode'' { > class { ''someclass'': <= this is line 12 > $somevariable = "somevalue", > } > } > : > > My intent with this is for the somenode node to have someclass > define its internal variable somevariable with somevalue. > > However, on the agent run, this produces the error in messages: > > Date/Time Host puppet-agent[pid]: Could not parse for environment > production: Syntax error at ''somevariable''; expected > ''}'' at /etc/puppet/manifests/nodes.pp:12 on node somenode > > My question is, where''s the syntax error it is complaining about? > > > Stuart > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/7d462dd3-8d8c-480a-bef7-e3264e569382%40googlegroups.com. > 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAE4bNTnESekVF-bdQjS%2B_wqeZ4XELAh2rcPT5rCr%3D%3DXoa0dJOQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
I did the => as you were posting but still got the same error... On Friday, November 22, 2013 10:20:04 AM UTC-8, Ken Barber wrote:> Missing a > on the line with $somevariable ...? For example it should be: > > node ''somenode'' { > class { ''someclass'': > $somevariable => "somevalue", > } > } > > On Fri, Nov 22, 2013 at 6:18 PM, Stuart Cracraft <smcra...@gmail.com<javascript:>> > wrote: > > In nodes.pp I have: > > > > : > > node ''somenode'' { > > class { ''someclass'': <= this is line 12 > > $somevariable = "somevalue", > > } > > } > > : > > > > My intent with this is for the somenode node to have someclass > > define its internal variable somevariable with somevalue. > > > > However, on the agent run, this produces the error in messages: > > > > Date/Time Host puppet-agent[pid]: Could not parse for environment > > production: Syntax error at ''somevariable''; expected > > ''}'' at /etc/puppet/manifests/nodes.pp:12 on node somenode > > > > My question is, where''s the syntax error it is complaining about? > > > > > > Stuart > > > > -- > > 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 view this discussion on the web visit > > > https://groups.google.com/d/msgid/puppet-users/7d462dd3-8d8c-480a-bef7-e3264e569382%40googlegroups.com. > > > 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/64bffdb5-36e5-4b3e-96c4-d0e71e3f5526%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On 11/22/2013 01:32 PM, Stuart Cracraft wrote:> > I did the => as you were posting but still got the same error... > > On Friday, November 22, 2013 10:20:04 AM UTC-8, Ken Barber wrote: > > Missing a > on the line with $somevariable ...? For example it > should be: > > node ''somenode'' { > class { ''someclass'': > $somevariable => "somevalue", > } > }Remove the ''$'' from ''$somevariable''. -- Ken Coar Sanagendamgagwedweinini -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/528FA76C.2020805%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Stuart, It should be somevariable => "somevalue", and not $somevariable => "somevalue", On Fri, Nov 22, 2013 at 10:32 AM, Stuart Cracraft <smcracraft@gmail.com> wrote:> > I did the => as you were posting but still got the same error... > > On Friday, November 22, 2013 10:20:04 AM UTC-8, Ken Barber wrote: >> >> Missing a > on the line with $somevariable ...? For example it should be: >> >> node ''somenode'' { >> class { ''someclass'': >> $somevariable => "somevalue", >> } >> } >> >> On Fri, Nov 22, 2013 at 6:18 PM, Stuart Cracraft <smcra...@gmail.com> >> wrote: >> > In nodes.pp I have: >> > >> > : >> > node ''somenode'' { >> > class { ''someclass'': <= this is line 12 >> > $somevariable = "somevalue", >> > } >> > } >> > : >> > >> > My intent with this is for the somenode node to have someclass >> > define its internal variable somevariable with somevalue. >> > >> > However, on the agent run, this produces the error in messages: >> > >> > Date/Time Host puppet-agent[pid]: Could not parse for environment >> > production: Syntax error at ''somevariable''; expected >> > ''}'' at /etc/puppet/manifests/nodes.pp:12 on node somenode >> > >> > My question is, where''s the syntax error it is complaining about? >> > >> > >> > Stuart >> > >> > -- >> > 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. >> > To view this discussion on the web visit >> > >> > https://groups.google.com/d/msgid/puppet-users/7d462dd3-8d8c-480a-bef7-e3264e569382%40googlegroups.com. >> > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/64bffdb5-36e5-4b3e-96c4-d0e71e3f5526%40googlegroups.com. > > For more options, visit https://groups.google.com/groups/opt_out.-- Matthaus Owens Release Manager, Puppet Labs Join us at PuppetConf 2014, September 23-24 in San Francisco -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CACD%3DwAdj%3D2u2uJCjXGMwmg66qHFKUUHEYv7NDv_uB8rZ633cuw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Oops. Yeah what everyone else (Haus & Rodent) said, so remove $ and add >: Was: node ''somenode'' { class { ''someclass'': $somevariable = "somevalue", } } Should be: node ''somenode'' { class { ''someclass'': somevariable => "somevalue", } } On Fri, Nov 22, 2013 at 6:20 PM, Ken Barber <ken@puppetlabs.com> wrote:> Missing a > on the line with $somevariable ...? For example it should be: > > node ''somenode'' { > class { ''someclass'': > $somevariable => "somevalue", > } > } > > On Fri, Nov 22, 2013 at 6:18 PM, Stuart Cracraft <smcracraft@gmail.com> wrote: >> In nodes.pp I have: >> >> : >> node ''somenode'' { >> class { ''someclass'': <= this is line 12 >> $somevariable = "somevalue", >> } >> } >> : >> >> My intent with this is for the somenode node to have someclass >> define its internal variable somevariable with somevalue. >> >> However, on the agent run, this produces the error in messages: >> >> Date/Time Host puppet-agent[pid]: Could not parse for environment >> production: Syntax error at ''somevariable''; expected >> ''}'' at /etc/puppet/manifests/nodes.pp:12 on node somenode >> >> My question is, where''s the syntax error it is complaining about? >> >> >> Stuart >> >> -- >> 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 view this discussion on the web visit >> https://groups.google.com/d/msgid/puppet-users/7d462dd3-8d8c-480a-bef7-e3264e569382%40googlegroups.com. >> 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAE4bNTkaoZ16oFrK-DT3SAYxAmQEeLOZn2vWayzA5LjBmir9-g%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Thanks. On Friday, November 22, 2013 10:50:20 AM UTC-8, Ken Coar wrote:> On 11/22/2013 01:32 PM, Stuart Cracraft wrote: > > > > I did the => as you were posting but still got the same error... > > > > On Friday, November 22, 2013 10:20:04 AM UTC-8, Ken Barber wrote: > > > > Missing a > on the line with $somevariable ...? For example it > > should be: > > > > node ''somenode'' { > > class { ''someclass'': > > $somevariable => "somevalue", > > } > > } > > Remove the ''$'' from ''$somevariable''. > -- > Ken Coar > Sanagendamgagwedweinini >-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ca6d4e9f-0a09-473c-9c5a-e417d919dc87%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.