Loading ansible/roles/oeg/defaults/main.yml +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ oeg_service_node_port: 32263 oeg_mongodb_enabled: true oeg_mongodb_name: oegmongo oeg_mongodb_image_repository: mongo oeg_mongodb_image_tag: latest oeg_mongodb_image_tag: 7.0 oeg_mongodb_image_pull_policy: IfNotPresent oeg_mongodb_service_type: ClusterIP oeg_mongodb_service_port: 27017 Loading ansible/roles/oeg/tasks/deploy.yml +27 −0 Original line number Diff line number Diff line --- # Deploy OEG (Open Exposure Gateway) - name: Delete existing MongoDB OEG deployment if exists (prevent lock file issues) kubernetes.core.k8s: api_version: apps/v1 kind: Deployment name: "{{ oeg_mongodb_name }}" namespace: "{{ oeg_namespace }}" state: absent kubeconfig: "{{ oeg_kubeconfig }}" wait: yes wait_timeout: 60 when: oeg_mongodb_persistence_enabled ignore_errors: true - name: Wait for MongoDB pods to terminate ansible.builtin.pause: seconds: 5 when: oeg_mongodb_persistence_enabled - name: Clean MongoDB OEG storage directory (prevent lock file issues) ansible.builtin.shell: | docker exec {{ kind_cluster_name }}-control-plane sh -c 'rm -rf {{ oeg_mongodb_persistence_host_path }}/* || true' args: executable: /bin/bash when: oeg_mongodb_persistence_enabled ignore_errors: true changed_when: false - name: Create OEG namespace kubernetes.core.k8s: name: "{{ oeg_namespace }}" Loading ansible/roles/srm/defaults/main.yml +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ srm_artifact_manager_service_node_port: 30080 srm_mongodb_enabled: true srm_mongodb_name: mongosrm srm_mongodb_image_repository: mongo srm_mongodb_image_tag: latest srm_mongodb_image_tag: 7.0 srm_mongodb_image_pull_policy: IfNotPresent srm_mongodb_service_type: ClusterIP srm_mongodb_service_port: 27017 Loading ansible/roles/srm/tasks/deploy.yml +27 −0 Original line number Diff line number Diff line --- # Deploy SRM (Service Resource Manager) - name: Delete existing MongoDB SRM deployment if exists (prevent lock file issues) kubernetes.core.k8s: api_version: apps/v1 kind: Deployment name: "{{ srm_mongodb_name }}" namespace: "{{ srm_namespace }}" state: absent kubeconfig: "{{ srm_kubeconfig }}" wait: yes wait_timeout: 60 when: srm_mongodb_persistence_enabled ignore_errors: true - name: Wait for MongoDB pods to terminate ansible.builtin.pause: seconds: 5 when: srm_mongodb_persistence_enabled - name: Clean MongoDB SRM storage directory (prevent lock file issues) ansible.builtin.shell: | docker exec {{ kind_cluster_name }}-control-plane sh -c 'rm -rf {{ srm_mongodb_persistence_host_path }}/* || true' args: executable: /bin/bash when: srm_mongodb_persistence_enabled ignore_errors: true changed_when: false - name: Create SRM namespace kubernetes.core.k8s: name: "{{ srm_namespace }}" Loading Loading
ansible/roles/oeg/defaults/main.yml +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ oeg_service_node_port: 32263 oeg_mongodb_enabled: true oeg_mongodb_name: oegmongo oeg_mongodb_image_repository: mongo oeg_mongodb_image_tag: latest oeg_mongodb_image_tag: 7.0 oeg_mongodb_image_pull_policy: IfNotPresent oeg_mongodb_service_type: ClusterIP oeg_mongodb_service_port: 27017 Loading
ansible/roles/oeg/tasks/deploy.yml +27 −0 Original line number Diff line number Diff line --- # Deploy OEG (Open Exposure Gateway) - name: Delete existing MongoDB OEG deployment if exists (prevent lock file issues) kubernetes.core.k8s: api_version: apps/v1 kind: Deployment name: "{{ oeg_mongodb_name }}" namespace: "{{ oeg_namespace }}" state: absent kubeconfig: "{{ oeg_kubeconfig }}" wait: yes wait_timeout: 60 when: oeg_mongodb_persistence_enabled ignore_errors: true - name: Wait for MongoDB pods to terminate ansible.builtin.pause: seconds: 5 when: oeg_mongodb_persistence_enabled - name: Clean MongoDB OEG storage directory (prevent lock file issues) ansible.builtin.shell: | docker exec {{ kind_cluster_name }}-control-plane sh -c 'rm -rf {{ oeg_mongodb_persistence_host_path }}/* || true' args: executable: /bin/bash when: oeg_mongodb_persistence_enabled ignore_errors: true changed_when: false - name: Create OEG namespace kubernetes.core.k8s: name: "{{ oeg_namespace }}" Loading
ansible/roles/srm/defaults/main.yml +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ srm_artifact_manager_service_node_port: 30080 srm_mongodb_enabled: true srm_mongodb_name: mongosrm srm_mongodb_image_repository: mongo srm_mongodb_image_tag: latest srm_mongodb_image_tag: 7.0 srm_mongodb_image_pull_policy: IfNotPresent srm_mongodb_service_type: ClusterIP srm_mongodb_service_port: 27017 Loading
ansible/roles/srm/tasks/deploy.yml +27 −0 Original line number Diff line number Diff line --- # Deploy SRM (Service Resource Manager) - name: Delete existing MongoDB SRM deployment if exists (prevent lock file issues) kubernetes.core.k8s: api_version: apps/v1 kind: Deployment name: "{{ srm_mongodb_name }}" namespace: "{{ srm_namespace }}" state: absent kubeconfig: "{{ srm_kubeconfig }}" wait: yes wait_timeout: 60 when: srm_mongodb_persistence_enabled ignore_errors: true - name: Wait for MongoDB pods to terminate ansible.builtin.pause: seconds: 5 when: srm_mongodb_persistence_enabled - name: Clean MongoDB SRM storage directory (prevent lock file issues) ansible.builtin.shell: | docker exec {{ kind_cluster_name }}-control-plane sh -c 'rm -rf {{ srm_mongodb_persistence_host_path }}/* || true' args: executable: /bin/bash when: srm_mongodb_persistence_enabled ignore_errors: true changed_when: false - name: Create SRM namespace kubernetes.core.k8s: name: "{{ srm_namespace }}" Loading