Be able to purge unmanaged resources
With the current version of the module, resources (plugins and themes) not defined in wpresources
are not modified by puppet.
It should be interesting to be able to uninstall all resources not defined in wpresources
, as an optional parameter.
Something like :
class { 'wordpress' :
...
wpresources => {
plugin => [
{ 'purge' => true },
{ 'name' => 'plugin1' },
{ 'name' => 'plugin2' },
],
theme => [
{ 'name' => 'newtheme' },
{ 'name' => 'olwtheme', ensure => 'absent' },
]
},
}
Question is choice of default value about purge
: true
or false
.
With defaults true, probably the wpresources
hash will be simpler.