Skip to content

Commit

Permalink
Merge branch 'master' into feature/redhat
Browse files Browse the repository at this point in the history
  • Loading branch information
xRTRx committed Nov 23, 2023
2 parents 4b5a5cf + e59e0b3 commit 1ace242
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
pre_tasks:
- name: Install en_US.UTF-8 locale
ansible.builtin.yum:
name: langpacks-en
name: glibc-langpack-en
state: present
when: ansible_distribution == 'Rocky'
- name: Set locale to en_US.UTF-8
Expand Down
28 changes: 28 additions & 0 deletions tasks/RedHat_post.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
- name: Initialize onlyoffice-documentserver (non free package)
ansible.builtin.shell: |
set -o pipefail
echo -e "{{ db_server_host }}\n{{ db_server_name }}\n{{ db_server_user }}\n{{ db_server_pass }}\n{{ redis_server_host }}\n{{ rabbitmq_server_host }}\n{{ rabbitmq_server_user }}\n{{ rabbitmq_server_pass }}" | bash documentserver-configure.sh
environment:
CLUSTER_MODE: "{{ cluster_mode }}"
JWT_ENABLED: "{{ jwt_enabled }}"
JWT_SECRET: "{{ jwt_secret }}"
JWT_HEADER: "{{ jwt_header }}"
when: is_nonfree_package | bool

- name: Initialize onlyoffice-documentserver (free package)
ansible.builtin.shell: |
set -o pipefail
echo -e "{{ db_server_host }}\n{{ db_server_name }}\n{{ db_server_user }}\n{{ db_server_pass }}\n{{ rabbitmq_server_host }}\n{{ rabbitmq_server_user }}\n{{ rabbitmq_server_pass }}" | bash documentserver-configure.sh
environment:
CLUSTER_MODE: "{{ cluster_mode }}"
JWT_ENABLED: "{{ jwt_enabled }}"
JWT_SECRET: "{{ jwt_secret }}"
JWT_HEADER: "{{ jwt_header }}"
when: not is_nonfree_package | bool

- name: Start example service
ansible.builtin.systemd:
name: ds-example
state: started
when: start_example | bool

0 comments on commit 1ace242

Please sign in to comment.