Virtual resources, collectors, and overrides.

11 views
Skip to first unread message

Robert Davidson

unread,
Jul 17, 2015, 7:29:46 PM7/17/15
to puppet...@googlegroups.com
When collecting virtual resources, is there a way to override them to *remove* specific attributes?

For example, I have a set of service definitions with requires, and I want to collect them without those. (It's rather more complicated than that, but illustrates what I want to do.) Is this even possible? I haven't found a way yet.

--
Robert Davidson

Hunter Haugen

unread,
Jul 17, 2015, 7:57:07 PM7/17/15
to puppet...@googlegroups.com
Both of these methods seems to work on puppet 4, and you could try on puppet 3:

@notify { 'one': before => Notify['two'], }
@notify { 'two': }
Notify <| title == 'one' |> {
  before => undef,
}

OR

@notify { 'one': before => Notify['two'], }
@notify { 'two': }
Notify <| title == 'one' |> {
  before => [],
}

--
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/1EE73329D6577F44A3C2FB0F7D4ACAE98CF32299%40mbx-02.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages