Skip to content
Snippets Groups Projects
Commit ff6c5a90 authored by Fabien Combernous's avatar Fabien Combernous
Browse files

Merge branch '64-update-a-resource-can-be-not-idempotent' into 'master'

Resolve "update a resource can be not idempotent"

Closes #64

See merge request !58
parents 96803e96 f57064af
No related branches found
No related tags found
1 merge request!58Resolve "update a resource can be not idempotent"
Pipeline #2741 canceled
...@@ -24,6 +24,7 @@ define wordpress::resource::update ( ...@@ -24,6 +24,7 @@ define wordpress::resource::update (
) { ) {
exec { "${wp_servername} > update ${wp_resource_type} ${wp_resource_name}": exec { "${wp_servername} > update ${wp_resource_type} ${wp_resource_name}":
command => "${wpcli_bin} --path=${wp_root} ${wp_resource_type} update ${wp_resource_name}", command => "${wpcli_bin} --path=${wp_root} ${wp_resource_type} update ${wp_resource_name}",
onlyif => "${wpcli_bin} --format=csv --path=${wp_root} --update=available ${wp_resource_type} list | grep -qP '^${wp_resource_name},",
user => $owner, user => $owner,
notify => Exec['update external fact wordpress'], notify => Exec['update external fact wordpress'],
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment