Hello All, I normally setup a virtual user resource, and then realize it via collection. This setup works flawlessly for the most part when used with a single tag, but I now have the need to specify multiple tags. This is what I normally do: @user { ''someuser'': ensure => present, tag => ''tag123'', comment => ''some comment'' } This is how I then realize the user: User<|tag == "default" or tag == "${application}" |> (I have a variable definition for ''application'' via ext node classifier [foreman]) Can anyone point me in the right direction, as to how would I declare multiple tags? i.e, User<|tag == "default" or tag == "(if defined) tag123, tagABC, any other tag" |>... I hope I''m not confusing anyone :) Thanks, -- 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.
Daniel Pittman
2011-Jan-03 20:06 UTC
Re: [Puppet Users] Multiple tags in Virtual Resourses
On Mon, Jan 3, 2011 at 08:10, CraftyTech <hmmedina@gmail.com> wrote:> I normally setup a virtual user resource, and then realize it via > collection. This setup works flawlessly for the most part when used with a > single tag, but I now have the need to specify multiple tags. This is what > I normally do: > @user { ''someuser'': > ensure => present, > tag => ''tag123'',tag => [''foo'', ''bar'', ''baz''] Regards, Daniel -- ✉ Daniel Pittman <daniel@rimspace.net> ⌨ daniel@rimspace.net (XMPP) ☎ +1 503 893 2285 ♻ made with 100 percent post-consumer electrons -- 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.
Daniel Aníbal Guerrero
2011-Jan-09 20:06 UTC
Re: [Puppet Users] Multiple tags in Virtual Resourses
2011/1/3 CraftyTech <hmmedina@gmail.com>> Hello All, > > I normally setup a virtual user resource, and then realize it via > collection. This setup works flawlessly for the most part when used with a > single tag, but I now have the need to specify multiple tags. This is what > I normally do: > > @user { ''someuser'': > ensure => present, > tag => ''tag123'', > comment => ''some comment'' > } > This is how I then realize the user: > User<|tag == "default" or tag == "${application}" |> (I have a variable > definition for ''application'' via ext node classifier [foreman]) > > OKEY...Thanks > Can anyone point me in the right direction, as to how would I declare > multiple tags? i.e, User<|tag == "default" or tag == "(if defined) tag123, > tagABC, any other tag" |>... I hope I''m not confusing anyone :) > > Thanks, > > > > -- > 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. >-- 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.