mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	XWiki: two-phase bootstrap + extension install before enabling auth; add XOR validation
- Add 02_validation.yml to prevent OIDC+LDAP enabled simultaneously - Introduce _flush_config.yml with switches (OIDC/LDAP/superadmin) - Bootstrap with native+superadmin → create admin → install extensions (superadmin) → enable final auth - Refactor REST vars (XWIKI_REST_BASE, XWIKI_REST_XWIKI, XWIKI_REST_EXTENSION_INSTALL) - Update templates to use switch vars; gate OIDC block in properties - Idempotent REST readiness waits Conversation: https://chatgpt.com/share/68c40c1e-2b3c-800f-b59f-8d37baa9ebb2
This commit is contained in:
		
							
								
								
									
										25
									
								
								roles/web-app-xwiki/tasks/_flush_config.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								roles/web-app-xwiki/tasks/_flush_config.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| - name: "Render xwiki.cfg" | ||||
|   template: | ||||
|     src: "xwiki.cfg.j2" | ||||
|     dest: "{{ XWIKI_HOST_CONF_PATH }}" | ||||
|   notify: docker compose up | ||||
|  | ||||
| - name: "Deploy xwiki.properties" | ||||
|   template: | ||||
|     src: "xwiki.properties.j2" | ||||
|     dest: "{{ XWIKI_HOST_PROPERTIES_PATH }}" | ||||
|   notify: docker compose up | ||||
|  | ||||
| - name: "flush docker compose for '{{ application_id }}'" | ||||
|   meta: flush_handlers | ||||
|  | ||||
| - name: "Wait until XWiki REST is ready" | ||||
|   uri: | ||||
|     url: "{{ XWIKI_REST_BASE }}" | ||||
|     status_code: [200, 401, 302] | ||||
|     return_content: no | ||||
|   changed_when: false | ||||
|   register: xwiki_rest_up | ||||
|   retries: 60 | ||||
|   delay: 5 | ||||
|   until: xwiki_rest_up is succeeded | ||||
		Reference in New Issue
	
	Block a user