trellis_wordfence_kinsta
trellis-wordfence-kinsta
Ensure required WordfFence files exist in shared directory.
- Requirements
- Installation
- Role Variables
- Usage
- FAQs
- Testing
- Author Information
- Feedback
- Change log
- License
Requirements
- Trellis 6b40320 or later
- Ansible v2.6 or later
- Bedrock
- WordFence
Installation
Add this role to galaxy.yml
:
# galaxy.yml
- src: https://github.com/ItinerisLtd/trellis-wordfence-kinsta
version: x.x.x # Check for latest version!
Run the command:
trellis galaxy install
# Alternatively
ansible-galaxy install -r galaxy.yml --force
Role Variables
- Add this role to the
deploy_after
hook:# group_vars/all/deploy-hooks.yml # Learn more on https://roots.io/trellis/docs/deploys/#hooks deploy_after: - "{{ playbook_dir }}/vendor/roles/itinerisltd.trellis-wordfence-kinsta/tasks/main.yml"
Usage
- Add a shared_children entry to Trellis that points to the new
wordfence-waf.php
fileproject_shared_children: - path: web/wp/wordfence-waf.php src: wordfence-waf.php type: file
- Deploy
- Tell Kinsta to add the
auto_prepend_file
variable that points to{{ deploy_helper.current_path }}/web/wp/wordfence-waf.php
deploy_helper.shared_path
can differ between Trellis setups. Check for final path before asking Kinsta.- This is usually where the uploads are stored.
- E.g.
auto_prepend_file = '/www/kinstauser_123/public/current/web/wp/wordfence-waf.php'
FAQs
WordFence still complains that the firewall is not configured!
Do not forget to tell Kinsta to add the auto_prepend_file
variable.
Testing
Syntax Check
➜ ansible-playbook -i 'localhost,' --syntax-check tests/test.yml
Author Information
trellis-wordfence-kinsta is an Itineris Limited project created by Lee Hanbury-Pickett.
Special thanks to the Roots team whose Trellis make this project possible.
Full list of contributors can be found here.
Feedback
Please provide feedback! We want to make this library useful in as many projects as possible. Please submit an issue and point out what you do and don't like, or fork the project and make suggestions. No issue is too small.
Change log
Please see CHANGELOG for more information on what has changed recently.
License
trellis-wordfence-kinsta is released under the MIT License.
About
Ensure required WordfFence files exist in shared directory
Install
ansible-galaxy install ItinerisLtd/trellis-wordfence-kinsta
License
mit
Downloads
53
Owner
We’re a full-service digital marketing agency that partners with ambitious clients to help them grow