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

Merge branch '66-core-update-can-be-done-in-an-idempotent-way' into 'master'

Resolve "core update can be done in an idempotent way"

Closes #66

See merge request !60
parents 5b4a7c19 2781922c
No related branches found
No related tags found
1 merge request!60Resolve "core update can be done in an idempotent way"
Pipeline #2746 waiting for manual action
......@@ -57,30 +57,33 @@ define wordpress::core::update (
case $locale {
'en_US': {
exec { "${wp_servername} > Update core wordpress" :
command => "${wpcli_bin} --path=${wp_root} core update",
user => $owner,
require => Exec["${wp_servername} > Archive files before upgrade"],
command => "${wpcli_bin} --path=${wp_root} core update",
user => $owner,
subscribe => Exec["${wp_servername} > Archive files before upgrade"],
refreshonly => true,
}
}
default: {
exec { "${wp_servername} > Update core wordpress" :
command => "${wpcli_bin} --path=${wp_root} core update --locale=${locale}",
user => $owner,
require => Exec["${wp_servername} > Archive files before upgrade"],
command => "${wpcli_bin} --path=${wp_root} core update --locale=${locale}",
user => $owner,
subscribe => Exec["${wp_servername} > Archive files before upgrade"],
refreshonly => true,
}
}
}
exec { "${wp_servername} > Update database structure" :
command => "${wpcli_bin} --path=${wp_root} core update-db",
user => $owner,
require => Exec["${wp_servername} > Update core wordpress"],
notify => Exec['update external fact wordpress'],
command => "${wpcli_bin} --path=${wp_root} core update-db",
user => $owner,
subscribe => Exec["${wp_servername} > Update core wordpress"],
refreshonly => true,
}
exec { "${wp_servername} > Update language" :
command => "${wpcli_bin} --path=${wp_root} language core update",
user => $owner,
require => Exec["${wp_servername} > Update core wordpress"],
notify => Exec['update external fact wordpress'],
command => "${wpcli_bin} --path=${wp_root} language core update",
user => $owner,
subscribe => Exec["${wp_servername} > Update database structure"],
refreshonly => true,
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