The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Feature #2546

Autorequire an exec resource with creates attribute

Added by Alan Harder over 6 years ago. Updated about 6 years ago.

Status:AcceptedStart date:08/17/2009
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Affected Puppet version:0.24.8 Branch:

We've Moved!

Ticket tracking is now hosted in JIRA:


It would be nice if anywhere something might autorequire File[x] it would also look for and autorequire Exec[..] that has “creates => x” in its attributes. For example:

exec { 'run_my_script':
  command => '/tmp/',
  creates => '/my/path/here'
file { '/my/path/here/some.file':
  source => ...

With 0.24.8 it seems an explicit require=>Exec[run_my_script] is needed on the file resource to ensure the proper order. Either updating the autorequire system to look for Exec+creates, or making the exec resource implicitly create a file resource that the existing autorequire system will find, will make the creates attribute even more useful.


#1 Updated by James Turnbull over 6 years ago

  • Status changed from Unreviewed to Needs Decision
  • Assignee set to Luke Kanies

#2 Updated by Luke Kanies over 6 years ago

  • Status changed from Needs Decision to Accepted
  • Assignee deleted (Luke Kanies)

Also available in: Atom PDF