Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
puppet-wordpress
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adullact
puppet-wordpress
Commits
9531ec54
Commit
9531ec54
authored
6 years ago
by
Fabien Combernous
Browse files
Options
Downloads
Plain Diff
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
!60
Resolve "core update can be done in an idempotent way"
Pipeline
#2746
waiting for manual action
6 years ago
Stage: syntax
Stage: unit
Stage: acceptance
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifests/core/update.pp
+17
-14
17 additions, 14 deletions
manifests/core/update.pp
with
17 additions
and
14 deletions
manifests/core/update.pp
+
17
−
14
View file @
9531ec54
...
...
@@ -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"
],
notif
y
=>
Exec
[
'update external fact wordpress'
]
,
command
=>
"
${wpcli_bin}
--path=
${wp_root}
core update-db"
,
user
=>
$owner
,
subscribe
=>
Exec
[
"
${wp_servername}
> Update core wordpress"
],
refreshonl
y
=>
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'
],
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment