Issue #19019 has been reported by Richard Miller.
----------------------------------------
Feature #19019: Add "createdby" parameter to "file" type
https://projects.puppetlabs.com/issues/19019
Author: Richard Miller
Status: Unreviewed
Priority: Normal
Assignee:
Category: language
Target version:
Affected Puppet version:
Keywords:
Branch:
I occasionally use **exec** + **creates** to install a file not easily
available any other way.
<pre>
exec { "curl -s https://getcomposer.org/installer | php --
--install-dir=/usr/local/bin":
creates => "/usr/local/bin/composer.phar",
}
</pre>
If there were a **createdby** parameter on the **file** type, I could reverse
the clauses like this:
<pre>
file { "/usr/local/bin/composer.phar":
createdby => "curl -s https://getcomposer.org/installer | php --
--install-dir=/usr/local/bin",
}
</pre>
...which would mean I could use **file** parameters like **mode**, **owner**,
**group**, etc.
<pre>
file { "/usr/local/bin/composer.phar":
createdby => "curl -s https://getcomposer.org/installer | php --
--install-dir=/usr/local/bin",
mode => 0755,
owner => "root",
}
</pre>
The **createdby** parameter would be somewhat similar to the **content**
parameter except that it would create the file by running a local command
instead of passing the content.
This may also help solve Issue #2762 and Issue #2546 .
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.