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

Feature #2546

Autorequire an exec resource with creates attribute

Added by Alan Harder over 4 years ago. Updated almost 4 years ago.

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

0%

Category:plumbing
Target version:-
Affected Puppet version:0.24.8 Branch:
Keywords:

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

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/my_script.sh',
  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.

History

#1 Updated by James Turnbull over 4 years ago

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

#2 Updated by Luke Kanies over 4 years ago

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

Also available in: Atom PDF