Chassis / puppet-wp

This module enables the easy use of WP CLI to control your WordPress site through Puppet manifests
https://chassis.github.io/puppet-wp/
GNU Lesser General Public License v3.0
44 stars 39 forks source link

Theme and plugin manifest tweaks #34

Closed shadyvb closed 5 years ago

shadyvb commented 8 years ago

Related #33, ref: https://github.com/Chassis/Chassis/pull/210#discussion_r71981437

Changes:

Also

# Installs plugins, activates them, but only after installing, not after each provision
wp::plugin { $plugins:
    location => $location,
    ensure   => 'present',
    activate => true # default
    networkwide => false # default
}

# Installs themes, does not activate them
wp::theme { $themes:
    location => $location,
    ensure   => 'present',
    activate => false # default
}

# Installs a themes, activates it after installing only, not after each provision
wp::theme { $theme:
    location => $location,
    ensure   => 'present',
    activate => true
}

# Enables a theme network wide, does not install it
wp::theme { $theme:
    slug     => $theme,
    location => $location,
    ensure   => 'enabled',
    networkwide  => false # default
}

Note: I've tried to do it so it maintains backward compatibility, might need a fresh pair of eyes though to confirm.

shadyvb commented 8 years ago

@rmccue Excuse the poor syntax, this is my second time editing Puppet manifests, and the first was couple of hours ago as well.

Let me know what do you think.

BronsonQuick commented 5 years ago

Thanks for the PR Sir. I'm closing this as I added something similar during a recent refactoring.