Revision 4c18f820
Added by Ivan Necas over 10 years ago
modules/stdlib/lib/puppet/parser/functions/ensure_resource.rb | ||
---|---|---|
|
||
This example only creates the resource if it does not already exist:
|
||
|
||
ensure_resource('user', 'dan', {'ensure' => 'present' })
|
||
ensure_resource('user, 'dan', {'ensure' => 'present' })
|
||
|
||
If the resource already exists but does not match the specified parameters,
|
||
this function will attempt to recreate the resource leading to a duplicate
|
Also available in: Unified diff
Update to librarian