Hello All, How do I specify a variable that has a space in it? I''m trying to setup a yum repo that has two different baseurl''s based on the product name ($productname). Default goes one way, but if the product is "PowerEdge 2650" then is a different URL. The thing is, that is only picking up the default. How should I specify the value with the space in the middle? I tried "PowerEdge 2650", "${PowerEdge 2650}", and ''PowerEdge 2650'', and none have worked so far. Do I need to use Regex for this, or is there a discreprancy in my syntax? Thanks, Henry -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Matt Wallace
2010-Sep-28 14:28 UTC
Re: [Puppet Users] YUMREPO { productname => PowerEdge 2650}
On Tuesday 28 Sep 2010 15:12:34 CraftyTech wrote:> Hello All, > > How do I specify a variable that has a space in it? I''m trying > to setup a yum repo that has two different baseurl''s based on the > product name ($productname). Default goes one way, but if the product > is "PowerEdge 2650" then is a different URL. The thing is, that is > only picking up the default. How should I specify the value with the > space in the middle? I tried "PowerEdge 2650", "${PowerEdge 2650}", > and ''PowerEdge 2650'', and none have worked so far. Do I need to use > Regex for this, or is there a discreprancy in my syntax? > > Thanks, > > HenryI''ve not tried it myself, but have you checked to see if "PowerEdge\ 2650" works? M. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Henry, On Tue, Sep 28, 2010 at 9:12 AM, CraftyTech <hmmedina@gmail.com> wrote:> Hello All, > > How do I specify a variable that has a space in it? I''m trying > to setup a yum repo that has two different baseurl''s based on the > product name ($productname). Default goes one way, but if the product > is "PowerEdge 2650" then is a different URL. The thing is, that is > only picking up the default. How should I specify the value with the > space in the middle? I tried "PowerEdge 2650", "${PowerEdge 2650}", > and ''PowerEdge 2650'', and none have worked so far. Do I need to use > Regex for this, or is there a discreprancy in my syntax? > >The baseurl you use has a white space on it? e.g. " http://yourserver/somelocation/RPMS.poweredge 2650" ? If that''s not the case then you can simply do an assignment of the repo name to whatever you have based on the productname(assuming this is provided by facter) variable. $reponame = $productname ? { "PowerEdge 2650" => "poweredge2650", "PowerEdge 2950" => "poweredge2950", default => "poweredge", } Then use it in the baseurl attribute of yumrepo: baseurl => "http://yourserver/somelocation.RPMS.$reponame" Hope that helps.> Thanks, > > Henry > > -- > 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+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- Tony http://blog.tonyskapunk.net -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Sep-28 14:44 UTC
[Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}
Thanks for the feedback Matt, but no, it didn''t work. Here''s the repo I''m trying to define: yumrepo { "domain_OMSA": baseurl => $productname ? { "PowerEdge 2650" => ''http://build.dev.domain.com:1234/OMSA5.5'', default => ''http://build.dev.domain.com:1234/OMSA6.2'' }, descr => "domain''s OMSA Repo for $operatingsystem-$architecture- $operatingsystemrelease ", enabled => 1, gpgcheck => 0 } So far I''ve tried "PowerEdge 2650", "${PowerEdge 2650}", ''PowerEdge 2650'', "PowerEdge\ 2650", and none have worked so far. It keeps just using using the default URL. Thanks, Henry On Sep 28, 10:28 am, Matt Wallace <li...@truthisfreedom.org.uk> wrote:> On Tuesday 28 Sep 2010 15:12:34 CraftyTech wrote: > > > Hello All, > > > How do I specify a variable that has a space in it? I''m trying > > to setup a yum repo that has two different baseurl''s based on the > > product name ($productname). Default goes one way, but if the product > > is "PowerEdge 2650" then is a different URL. The thing is, that is > > only picking up the default. How should I specify the value with the > > space in the middle? I tried "PowerEdge 2650", "${PowerEdge 2650}", > > and ''PowerEdge 2650'', and none have worked so far. Do I need to use > > Regex for this, or is there a discreprancy in my syntax? > > > Thanks, > > > Henry > > I''ve not tried it myself, but have you checked to see if "PowerEdge\ 2650" > works? > > M.-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
R.I.Pienaar
2010-Sep-28 14:48 UTC
Re: [Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}
----- "CraftyTech" <hmmedina@gmail.com> wrote:> Thanks for the feedback Matt, but no, it didn''t work. Here''s the > repo > I''m trying to define: > > yumrepo { "domain_OMSA": > baseurl => $productname ? { > "PowerEdge 2650" => ''http://build.dev.domain.com:1234/OMSA5.5'', > default => ''http://build.dev.domain.com:1234/OMSA6.2'' }, > descr => "domain''s OMSA Repo for $operatingsystem-$architecture- > $operatingsystemrelease ", > enabled => 1, > gpgcheck => 0 > } > So far I''ve tried "PowerEdge 2650", "${PowerEdge 2650}", ''PowerEdge > 2650'', "PowerEdge\ 2650", and none have worked so far. It keeps just > using using the default URL.you might have some trailing spaces in your fact value. do a notify("The product is: ''${productname}''": } and look in the logs -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Sep-28 15:09 UTC
[Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}
I used a notice statement: notice("The product is: ${productname} "), and it shows the product name the way it should: "notice: Scope(Class[basic_dev::files]): The product is: PowerEdge 2650". I''m at a lost here.. I''m not sure what''s going on. I tried removing the repo all together, just to see how it''d be evaluated, and it came back with the same default value, as opposed to with the $productname value... On Sep 28, 10:48 am, "R.I.Pienaar" <r...@devco.net> wrote:> ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > Thanks for the feedback Matt, but no, it didn''t work. Here''s the > > repo > > I''m trying to define: > > > yumrepo { "domain_OMSA": > > baseurl => $productname ? { > > "PowerEdge 2650" => ''http://build.dev.domain.com:1234/OMSA5.5'', > > default => ''http://build.dev.domain.com:1234/OMSA6.2''}, > > descr => "domain''s OMSA Repo for $operatingsystem-$architecture- > > $operatingsystemrelease ", > > enabled => 1, > > gpgcheck => 0 > > } > > So far I''ve tried "PowerEdge 2650", "${PowerEdge 2650}", ''PowerEdge > > 2650'', "PowerEdge\ 2650", and none have worked so far. It keeps just > > using using the default URL. > > you might have some trailing spaces in your fact value. > > do a notify("The product is: ''${productname}''": } and look in the logs-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
R.I.Pienaar
2010-Sep-28 15:14 UTC
Re: [Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}
----- "CraftyTech" <hmmedina@gmail.com> wrote:> I used a notice statement: notice("The product is: ${productname} "), > and it shows the product name the way it should: "notice: > Scope(Class[basic_dev::files]): The product is: PowerEdge 2650". I''m > at a lost here.. I''m not sure what''s going on. I tried removing the > repo all together, just to see how it''d be evaluated, and it came > back > with the same default value, as opposed to with the $productname > value...you didnt use it like i suggested, have another looks.> > On Sep 28, 10:48 am, "R.I.Pienaar" <r...@devco.net> wrote: > > ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > > Thanks for the feedback Matt, but no, it didn''t work. Here''s the > > > repo > > > I''m trying to define: > > > > > yumrepo { "domain_OMSA": > > > baseurl => $productname ? { > > > "PowerEdge 2650" => > ''http://build.dev.domain.com:1234/OMSA5.5'', > > > default => ''http://build.dev.domain.com:1234/OMSA6.2''}, > > > descr => "domain''s OMSA Repo for > $operatingsystem-$architecture- > > > $operatingsystemrelease ", > > > enabled => 1, > > > gpgcheck => 0 > > > } > > > So far I''ve tried "PowerEdge 2650", "${PowerEdge 2650}", > ''PowerEdge > > > 2650'', "PowerEdge\ 2650", and none have worked so far. It keeps > just > > > using using the default URL. > > > > you might have some trailing spaces in your fact value. > > > > do a notify("The product is: ''${productname}''": } and look in the > logs > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en.-- R.I.Pienaar -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Sep-28 15:32 UTC
[Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}
R.I.Pienaar, I''m using puppet 0.25.5, and that syntax is not working for me. notify("The product is: ''${productname}''": }, ... There''s a trailing squiggly bracket that wasn''t previously opened. How would I incorporate this in my class:? yumrepo { "domain_OMSA": baseurl => $productname ? { "PowerEdge 2650" => ''http://build.dev.domain.com:1234/OMSA5.5'', default => ''http://build.dev.domain.com:1234/OMSA6.2'' }, descr => "domain''s OMSA Repo for $operatingsystem-$architecture- $operatingsystemrelease ", enabled => 1, gpgcheck => 0, notify("The product is: ''${productname}''": } <========?????????????? } Thanks for your help.. On Sep 28, 11:14 am, "R.I.Pienaar" <r...@devco.net> wrote:> ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > I used a notice statement: notice("The product is: ${productname} "), > > and it shows the product name the way it should: "notice: > > Scope(Class[basic_dev::files]): The product is: PowerEdge 2650". I''m > > at a lost here.. I''m not sure what''s going on. I tried removing the > > repo all together, just to see how it''d be evaluated, and it came > > back > > with the same default value, as opposed to with the $productname > > value... > > you didnt use it like i suggested, have another looks. > > > > > > > > > On Sep 28, 10:48 am, "R.I.Pienaar" <r...@devco.net> wrote: > > > ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > > > Thanks for the feedback Matt, but no, it didn''t work. Here''s the > > > > repo > > > > I''m trying to define: > > > > > yumrepo { "domain_OMSA": > > > > baseurl => $productname ? { > > > > "PowerEdge 2650" => > > ''http://build.dev.domain.com:1234/OMSA5.5'', > > > > default => ''http://build.dev.domain.com:1234/OMSA6.2''}, > > > > descr => "domain''s OMSA Repo for > > $operatingsystem-$architecture- > > > > $operatingsystemrelease ", > > > > enabled => 1, > > > > gpgcheck => 0 > > > > } > > > > So far I''ve tried "PowerEdge 2650", "${PowerEdge 2650}", > > ''PowerEdge > > > > 2650'', "PowerEdge\ 2650", and none have worked so far. It keeps > > just > > > > using using the default URL. > > > > you might have some trailing spaces in your fact value. > > > > do a notify("The product is: ''${productname}''": } and look in the > > logs > > > -- > > 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+unsubscribe@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/puppet-users?hl=en. > > -- > R.I.Pienaar-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
R.I.Pienaar
2010-Sep-28 15:35 UTC
Re: [Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}
----- "CraftyTech" <hmmedina@gmail.com> wrote:> R.I.Pienaar, > > I''m using puppet 0.25.5, and that syntax is not working for me. > notify("The product is: ''${productname}''": }, ... There''s a trailing > squiggly bracket that wasn''t previously opened. How would I > incorporate this in my class:?sorry, make it notify{"the product is: ''${producname}'': } the point is that we''re notifying the value of the variables surrounded by ''''s so we can see if there''s any whitespace in the variable. you can do it with notice too. I recall a bug in these facts on some dell machines where they get padded with whitespce and your case selector would need to include the whitespace> > yumrepo { "domain_OMSA": > baseurl => $productname ? { > "PowerEdge 2650" => ''http://build.dev.domain.com:1234/OMSA5.5'', > default => ''http://build.dev.domain.com:1234/OMSA6.2'' }, > descr => "domain''s OMSA Repo for $operatingsystem-$architecture- > $operatingsystemrelease ", > enabled => 1, > gpgcheck => 0, > notify("The product is: ''${productname}''": } > <========?????????????? > } > > Thanks for your help.. > > On Sep 28, 11:14 am, "R.I.Pienaar" <r...@devco.net> wrote: > > ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > > I used a notice statement: notice("The product is: ${productname} > "), > > > and it shows the product name the way it should: "notice: > > > Scope(Class[basic_dev::files]): The product is: PowerEdge 2650". > I''m > > > at a lost here.. I''m not sure what''s going on. I tried removing > the > > > repo all together, just to see how it''d be evaluated, and it came > > > back > > > with the same default value, as opposed to with the $productname > > > value... > > > > you didnt use it like i suggested, have another looks. > > > > > > > > > > > > > > > > > On Sep 28, 10:48 am, "R.I.Pienaar" <r...@devco.net> wrote: > > > > ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > > > > Thanks for the feedback Matt, but no, it didn''t work. Here''s > the > > > > > repo > > > > > I''m trying to define: > > > > > > > yumrepo { "domain_OMSA": > > > > > baseurl => $productname ? { > > > > > "PowerEdge 2650" => > > > ''http://build.dev.domain.com:1234/OMSA5.5'', > > > > > default => ''http://build.dev.domain.com:1234/OMSA6.2''}, > > > > > descr => "domain''s OMSA Repo for > > > $operatingsystem-$architecture- > > > > > $operatingsystemrelease ", > > > > > enabled => 1, > > > > > gpgcheck => 0 > > > > > } > > > > > So far I''ve tried "PowerEdge 2650", "${PowerEdge 2650}", > > > ''PowerEdge > > > > > 2650'', "PowerEdge\ 2650", and none have worked so far. It > keeps > > > just > > > > > using using the default URL. > > > > > > you might have some trailing spaces in your fact value. > > > > > > do a notify("The product is: ''${productname}''": } and look in > the > > > logs > > > > > -- > > > 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+unsubscribe@googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/puppet-users?hl=en. > > > > -- > > R.I.Pienaar > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en.-- R.I.Pienaar -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Sep-28 15:50 UTC
[Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}
Interesting.... I used the notice with the single quote as you suggested.. and I get the notice with only one single quotation: --> notice: Scope(Class[basic_dev::files]): The product is: ''PowerEdge 2650 <-- It spits it out with only one single quotation... On Sep 28, 11:35 am, "R.I.Pienaar" <r...@devco.net> wrote:> ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > R.I.Pienaar, > > > I''m using puppet 0.25.5, and that syntax is not working for me. > > notify("The product is: ''${productname}''": }, ... There''s a trailing > > squiggly bracket that wasn''t previously opened. How would I > > incorporate this in my class:? > > sorry, make it notify{"the product is: ''${producname}'': } the point is that we''re notifying the value of the variables surrounded by ''''s so we can see if there''s any whitespace in the variable. > > you can do it with notice too. I recall a bug in these facts on some dell machines where they get padded with whitespce and your case selector would need to include the whitespace > > > > > > > > > yumrepo { "domain_OMSA": > > baseurl => $productname ? { > > "PowerEdge 2650" => ''http://build.dev.domain.com:1234/OMSA5.5'', > > default => ''http://build.dev.domain.com:1234/OMSA6.2''}, > > descr => "domain''s OMSA Repo for $operatingsystem-$architecture- > > $operatingsystemrelease ", > > enabled => 1, > > gpgcheck => 0, > > notify("The product is: ''${productname}''": } > > <========?????????????? > > } > > > Thanks for your help.. > > > On Sep 28, 11:14 am, "R.I.Pienaar" <r...@devco.net> wrote: > > > ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > > > I used a notice statement: notice("The product is: ${productname} > > "), > > > > and it shows the product name the way it should: "notice: > > > > Scope(Class[basic_dev::files]): The product is: PowerEdge 2650". > > I''m > > > > at a lost here.. I''m not sure what''s going on. I tried removing > > the > > > > repo all together, just to see how it''d be evaluated, and it came > > > > back > > > > with the same default value, as opposed to with the $productname > > > > value... > > > > you didnt use it like i suggested, have another looks. > > > > > On Sep 28, 10:48 am, "R.I.Pienaar" <r...@devco.net> wrote: > > > > > ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > > > > > Thanks for the feedback Matt, but no, it didn''t work. Here''s > > the > > > > > > repo > > > > > > I''m trying to define: > > > > > > > yumrepo { "domain_OMSA": > > > > > > baseurl => $productname ? { > > > > > > "PowerEdge 2650" => > > > > ''http://build.dev.domain.com:1234/OMSA5.5'', > > > > > > default => ''http://build.dev.domain.com:1234/OMSA6.2''}, > > > > > > descr => "domain''s OMSA Repo for > > > > $operatingsystem-$architecture- > > > > > > $operatingsystemrelease ", > > > > > > enabled => 1, > > > > > > gpgcheck => 0 > > > > > > } > > > > > > So far I''ve tried "PowerEdge 2650", "${PowerEdge 2650}", > > > > ''PowerEdge > > > > > > 2650'', "PowerEdge\ 2650", and none have worked so far. It > > keeps > > > > just > > > > > > using using the default URL. > > > > > > you might have some trailing spaces in your fact value. > > > > > > do a notify("The product is: ''${productname}''": } and look in > > the > > > > logs > > > > > -- > > > > 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+unsubscribe@googlegroups.com. > > > > For more options, visit this group at > > > >http://groups.google.com/group/puppet-users?hl=en. > > > > -- > > > R.I.Pienaar > > > -- > > 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+unsubscribe@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/puppet-users?hl=en. > > -- > R.I.Pienaar-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
R.I.Pienaar
2010-Sep-28 16:00 UTC
Re: [Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}
----- "CraftyTech" <hmmedina@gmail.com> wrote:> Interesting.... I used the notice with the single quote as you > suggested.. and I get the notice with only one single quotation: --> > notice: Scope(Class[basic_dev::files]): The product is: ''PowerEdge > 2650 <-- It spits it out with only one single quotation...so there''s some weird things in the fact which is why its not working for you -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Sep-28 16:28 UTC
[Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}
I wonder if I could use an if/then statement for this one, or perhaps an function that picks up the 2650 from the value "PowerEdge 2650".... On Sep 28, 12:00 pm, "R.I.Pienaar" <r...@devco.net> wrote:> ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > Interesting.... I used the notice with the single quote as you > > suggested.. and I get the notice with only one single quotation: --> > > notice: Scope(Class[basic_dev::files]): The product is: ''PowerEdge > > 2650 <-- It spits it out with only one single quotation... > > so there''s some weird things in the fact which is why its not working for you-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
R.I.Pienaar
2010-Sep-28 16:32 UTC
Re: [Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}
----- "CraftyTech" <hmmedina@gmail.com> wrote:> I wonder if I could use an if/then statement for this one, or perhaps > an function that picks up the 2650 from the value "PowerEdge > 2650"....what version puppet do you use? recent ones have regex this would probably work for you> > > > On Sep 28, 12:00 pm, "R.I.Pienaar" <r...@devco.net> wrote: > > ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > > Interesting.... I used the notice with the single quote as you > > > suggested.. and I get the notice with only one single quotation: > --> > > > notice: Scope(Class[basic_dev::files]): The product is: > ''PowerEdge > > > 2650 <-- It spits it out with only one single quotation... > > > > so there''s some weird things in the fact which is why its not > working for you > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en.-- R.I.Pienaar -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Sep-28 16:37 UTC
[Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}
puppet --version = 0.25.5.. Regex would be nice.. On Sep 28, 12:32 pm, "R.I.Pienaar" <r...@devco.net> wrote:> ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > I wonder if I could use an if/then statement for this one, or perhaps > > an function that picks up the 2650 from the value "PowerEdge > > 2650".... > > what version puppet do you use? recent ones have regex this would probably work for you > > > > > > > > > On Sep 28, 12:00 pm, "R.I.Pienaar" <r...@devco.net> wrote: > > > ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > > > Interesting.... I used the notice with the single quote as you > > > > suggested.. and I get the notice with only one single quotation: > > --> > > > > notice: Scope(Class[basic_dev::files]): The product is: > > ''PowerEdge > > > > 2650 <-- It spits it out with only one single quotation... > > > > so there''s some weird things in the fact which is why its not > > working for you > > > -- > > 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+unsubscribe@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/puppet-users?hl=en. > > -- > R.I.Pienaar-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
R.I.Pienaar
2010-Sep-28 16:42 UTC
Re: [Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}
----- "CraftyTech" <hmmedina@gmail.com> wrote:> puppet --version = 0.25.5.. Regex would be nice..then see http://docs.puppetlabs.com/guides/language_tutorial.html#selectors> > On Sep 28, 12:32 pm, "R.I.Pienaar" <r...@devco.net> wrote: > > ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > > I wonder if I could use an if/then statement for this one, or > perhaps > > > an function that picks up the 2650 from the value "PowerEdge > > > 2650".... > > > > what version puppet do you use? recent ones have regex this would > probably work for you > > > > > > > > > > > > > > > > > On Sep 28, 12:00 pm, "R.I.Pienaar" <r...@devco.net> wrote: > > > > ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > > > > Interesting.... I used the notice with the single quote as > you > > > > > suggested.. and I get the notice with only one single > quotation: > > > --> > > > > > notice: Scope(Class[basic_dev::files]): The product is: > > > ''PowerEdge > > > > > 2650 <-- It spits it out with only one single quotation... > > > > > > so there''s some weird things in the fact which is why its not > > > working for you > > > > > -- > > > 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+unsubscribe@googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/puppet-users?hl=en. > > > > -- > > R.I.Pienaar > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en.-- R.I.Pienaar -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Alan Barrett
2010-Sep-29 11:11 UTC
Re: [Puppet Users] Re: YUMREPO { productname => PowerEdge 2650}
On Tue, 28 Sep 2010, CraftyTech wrote:> Interesting.... I used the notice with the single quote as you > suggested.. and I get the notice with only one single quotation: --> > notice: Scope(Class[basic_dev::files]): The product is: ''PowerEdge > 2650 <-- It spits it out with only one single quotation...The closing quotation mark is probably on a different line. This implies that the variable''s value contains an embedded newline character. --apb (Alan Barrett) -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.