-
Notifications
You must be signed in to change notification settings - Fork 0
/
provision.yml
45 lines (42 loc) · 1.51 KB
/
provision.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
- name: Provision instances
hosts: localhost
tasks:
- name: Enable CRX DE
wttech.aem.osgi_config:
command: save
pid: org.apache.sling.jcr.davex.impl.servlets.SlingDavExServlet
props:
alias: /crx/server
- name: Configure service user mapper
wttech.aem.osgi_config:
command: save
pid: org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended~aemc
props:
user.mapping: [com.wttech.aemc:config-writer=aemc-service-write, com.wttech.aemc:config-reader=aemc-service-read]
- name: Configure replication agent for publishing content
wttech.aem.repl_agent:
command: setup
instance_id: local_author
location: author
name: publish
props:
enabled: true
transportUri: "{{ aem_publish_http_url }}/bin/receive?sling:authRequestLogin=1"
transportUser: "{{ aem_instance_user }}"
transportPassword: "{{ aem_instance_password }}"
userId: "{{ aem_instance_user }}"
- name: Configure replication agent for flushing dispatcher cache
wttech.aem.repl_agent:
command: setup
instance_id: local_publish
location: publish
name: flush
props:
enabled: true
transportUri: "{{ aem_dispatcher_http_url }}/dispatcher/invalidate.cache"
protocolHTTPHeaders:
- "CQ-Action: {action}"
- "CQ-Handle: {path}"
- "CQ-Path: {path}"
- "Host: publish"