The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Feature #2084

Realize a resource automatically when required by something else

Added by Joe McDonagh about 5 years ago. Updated about 1 year ago.

Status:AcceptedStart date:03/16/2009
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:language
Target version:3.x
Affected Puppet version:0.24.7 Branch:
Keywords:puppetcamp-eu-2011

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the PUP project on JIRA using the button below:


Description

$SUBJECT. I can’t think of a case where this isn’t desired, but maybe you can. Thanks.

E.g., given:

@file { foo: ... }
@service { bar:
    require => File[ foo ]
}
realize Service[ foo ]

File[ foo ] should also be realized.


Related issues

Related to Puppet - Bug #2020: Realizing a resource should create a dependency on that r... Accepted 02/23/2009
Related to Puppet - Feature #3178: Resource collections and the 'require' function should be... Accepted 02/12/2010

History

#1 Updated by James Turnbull about 5 years ago

  • Category set to RAL
  • Status changed from Unreviewed to Needs Decision
  • Assignee set to Luke Kanies
  • Target version set to 4

Luke? Should this be a by-blow of #2020?

#2 Updated by Luke Kanies about 5 years ago

  • Category changed from RAL to language
  • Status changed from Needs Decision to Accepted

This ticket is kind of the opposite of #2020 – this one realizes if a relationship is created, and that one creates a relationship if the resource is realized.

#3 Updated by Luke Kanies almost 4 years ago

  • Assignee deleted (Luke Kanies)
  • Target version changed from 4 to 2.7.x

#4 Updated by Nigel Kersten almost 3 years ago

  • Target version changed from 2.7.x to 3.x

#5 Updated by Randall Hansen almost 3 years ago

  • Keywords set to puppetcamp-eu-2011

#6 Updated by Daniel Pittman almost 3 years ago

I think that this (and #2020) are both issues well worth resolving. The expressed behaviours are both very reasonable at first blush, and I can’t see any nasty edge cases that might make them troublesome off-hand.

Also available in: Atom PDF