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
0a2b5961
Commit
0a2b5961
authored
6 years ago
by
Fabien Combernous
Browse files
Options
Downloads
Plain Diff
Merge branch '15-fix-plugins-are-installed-but-not-activated' into 'master'
Resolve "fix plugins are installed but not activated" Closes
#15
See merge request
!16
parents
8b042581
6ea540f1
No related branches found
Branches containing commit
Tags
1.3.2
Tags containing commit
1 merge request
!16
Resolve "fix plugins are installed but not activated"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+6
-6
6 additions, 6 deletions
CHANGELOG.md
manifests/resource.pp
+1
-1
1 addition, 1 deletion
manifests/resource.pp
spec/acceptance/wordpress_spec.rb
+10
-19
10 additions, 19 deletions
spec/acceptance/wordpress_spec.rb
with
17 additions
and
26 deletions
CHANGELOG.md
+
6
−
6
View file @
0a2b5961
...
...
@@ -9,13 +9,13 @@ All notable changes to this project will be documented in this file.
**Bugfixes**
*
#5 Permit to modify hour of update for external_fact.
*
#15 Fix plugins are installed but not activated.
*
#16 Set
`default_locale`
to
`en_US`
.
*
#17 In README add subtitles for different examples of usage.
**Known Issues**
*
#1 Fix attribute ensure set to latest from scratch with resources management.
*
#15 Fix plugins are installed but not activated.
*
#1 Fix resources attribute ensure set to latest from scratch.
## Release 1.0.3
...
...
@@ -45,7 +45,7 @@ All notable changes to this project will be documented in this file.
**Known Issues**
*
#1 Fix attribute ensure set to latest from scratch
with resources management
.
*
#1 Fix
resources
attribute ensure set to latest from scratch.
*
#5 Permit to modify hour of update for external_fact.
## Release 1.0.1
...
...
@@ -59,7 +59,7 @@ All notable changes to this project will be documented in this file.
**Known Issues**
*
#1 Fix attribute ensure set to latest from scratch
with resources management
.
*
#1 Fix
resources
attribute ensure set to latest from scratch.
*
#5 Permit to modify hour of update for external_fact.
## Release 1.0.0
...
...
@@ -72,7 +72,7 @@ All notable changes to this project will be documented in this file.
**Known Issues**
*
#1 Fix attribute ensure set to latest from scratch
with resources management
.
*
#1 Fix
resources
attribute ensure set to latest from scratch.
*
#5 Permit to modify hour of update for external_fact.
## Release 0.2.0
...
...
@@ -87,5 +87,5 @@ All notable changes to this project will be documented in this file.
**Known Issues**
*
#1 Fix attribute ensure set to latest from scratch
with resources management
.
*
#1 Fix
resources
attribute ensure set to latest from scratch.
*
#5 Permit to modify hour of update for external_fact.
This diff is collapsed.
Click to expand it.
manifests/resource.pp
+
1
−
1
View file @
0a2b5961
...
...
@@ -47,7 +47,7 @@ class wordpress::resource (
command
=>
"
${wpcli_bin}
--allow-root --path=
${_wp_root}
${_wp_resource_type}
activate
${_wp_resource_name}
"
,
onlyif
=>
[
"
${wpcli_bin}
--allow-root --path=
${_wp_root}
${_wp_resource_type}
is-installed
${_wp_resource_name}
"
,
"
${wpcli_bin}
--allow-root --format=csv --path=
${_wp_root}
--fields=name,status
theme
list | grep -qP '^
${_wp_resource_name}
,inactive'"
,
"
${wpcli_bin}
--allow-root --format=csv --path=
${_wp_root}
--fields=name,status
${_wp_resource_type}
list | grep -qP '^
${_wp_resource_name}
,inactive'"
,
]
,
user
=>
$_owner
,
notify
=>
Exec
[
'update external fact wordpress'
],
...
...
This diff is collapsed.
Click to expand it.
spec/acceptance/wordpress_spec.rb
+
10
−
19
View file @
0a2b5961
...
...
@@ -170,33 +170,24 @@ describe 'wordpress class' do
its
(
:stdout
)
{
should
match
/.*hola this wordpress instance is installed by puppet.*/
}
end
describe
file
(
"
#{
$wp_root
}
/wp-content/plugins/akismet"
)
do
it
{
should
be_directory
}
it
{
should
be_owned_by
'wp'
}
it
{
should
be_grouped_into
'wp'
}
it
{
should
be_mode
755
}
describe
command
(
"/usr/local/bin/wp --allow-root --format=csv --path=
#{
$wp_root
}
--fields=name,status plugin list"
)
do
its
(
:stdout
)
{
should
match
/.*akismet,active.*/
}
end
describe
file
(
"
#{
$wp_root
}
/wp-content/plugins/wp-piwik"
)
do
it
{
should
be_directory
}
it
{
should
be_owned_by
'wp'
}
it
{
should
be_grouped_into
'wp'
}
it
{
should
be_mode
755
}
describe
command
(
"/usr/local/bin/wp --allow-root --format=csv --path=
#{
$wp_root
}
--fields=name,status plugin list"
)
do
its
(
:stdout
)
{
should
match
/.*wp-piwik,active.*/
}
end
describe
file
(
"
#{
$wp_root
}
/wp-content/plugins/hello.php
"
)
do
it
{
should_not
exist
}
describe
command
(
"/usr/local/bin/wp --allow-root --format=csv --path=
#{
$wp_root
}
--fields=name,status plugin list
"
)
do
it
s
(
:stdout
)
{
should_not
match
/.*hello,.*/
}
end
describe
file
(
"
#{
$wp_root
}
/wp-content/themes/twentyseventeen"
)
do
it
{
should
be_directory
}
it
{
should
be_owned_by
'wp'
}
it
{
should
be_grouped_into
'wp'
}
it
{
should
be_mode
755
}
describe
command
(
"/usr/local/bin/wp --allow-root --format=csv --path=
#{
$wp_root
}
--fields=name,status theme list"
)
do
its
(
:stdout
)
{
should
match
/.*twentyseventeen,active.*/
}
end
describe
file
(
"
#{
$wp_root
}
/wp-content/themes/twentysixteen
"
)
do
it
{
should_not
exist
}
describe
command
(
"/usr/local/bin/wp --allow-root --format=csv --path=
#{
$wp_root
}
--fields=name,status theme list
"
)
do
it
s
(
:stdout
)
{
should_not
match
/.*twentysixteen,active.*/
}
end
end
...
...
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