Commit c2f52c64 authored by Noe Nieto's avatar Noe Nieto 💬

Install woocommerce-subscriptions and ldp-username-policy plugins to...

Install woocommerce-subscriptions and ldp-username-policy plugins to liberty_shop.yml playbook. Related to liberty/internal#73 and liberty/ldh_developer#13
parent 052ce3cc
......@@ -161,6 +161,7 @@ def run_playbook(hostname, playbook, retry_file=None):
inventory_file = vagrant_wd.joinpath('.vagrant', 'provisioners', 'ansible', 'inventory', 'vagrant_ansible_inventory')
_args = [
'ansible-playbook', '-u', 'vagrant', '-i', f'{inventory_file}',
'-e', f'shipwright_box_config_home={vagrant_wd}',
f'{XDG_PB_CONFIG_HOME.joinpath(playbook).resolve()}'
]
......
......@@ -57,6 +57,38 @@
extra_parameters: |
ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://127.0.0.1:9000/var/www/woops.puri.sm"
- name: Clone the woocommerce subscription plugin and create zipfile
hosts: localhost
connection: local
tasks:
- name: Git clone
git:
repo: git@source.puri.sm:liberty/limited/nda_woocommerce_subscriptions.git
dest: "{{ shipwright_box_config_home }}/nda_woocommerce_subscriptions"
version: master
accept_hostkey: yes
- name: Create zipfile
archive:
path: "{{ shipwright_box_config_home }}/nda_woocommerce_subscriptions/plugins/woocommerce-subscriptions/"
format: zip
dest: "{{ shipwright_box_config_home }}/woocommerce-subscriptions.zip"
- name: Clone the LDH username policy plugin for wordpress
hosts: localhost
connection: local
tasks:
- name: Git clone
git:
repo: git@source.puri.sm:liberty/ldh_wp_username_policy.git
dest: "{{ shipwright_box_config_home }}/ldh_wp_username_policy"
version: master
accept_hostkey: yes
- name: Create zipfile
archive:
path: "{{ shipwright_box_config_home }}/ldh_wp_username_policy/"
format: zip
dest: "{{ shipwright_box_config_home }}/ldh_wp_username_policy.zip"
- name: Create and setup a wordpress site with woocommerce
become: yes
hosts: all
......@@ -84,11 +116,14 @@
plugins:
- name: woocommerce
activate: true
- name: woocommerce-subscriptions
activate: true
zip: "{{ shipwright_box_config_home }}/woocommerce-subscriptions.zip"
- name: jwt-authentication-for-wp-rest-api
activate: true
- name: ldh-wp-username-policy
activate: true
url: https://source.puri.sm/liberty/ldh_wp_username_policy/-/archive/master/ldh_wp_username_policy-master.zip
zip: "{{ shipwright_box_config_home }}/ldh_wp_username_policy.zip"
users: {}
options:
- name: woocommerce_api_enabled
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment