Sfoglia il codice sorgente

Fix group ownership of Dimension base path and config

Ansible will migrate the ownership of the base path and config path, but
manual intervention will be required in order to migrate the ownership
of files in those directories (i.e. dimension.db).

Stop the services:

  (local)$ ansible-playbook -i inventory/hosts setup.yml --tags=stop

Fix the permissions on the server:

  (server)# chown -Rv "{{ matrix_user_username }}:{{ matrix_user_username }}" "{{ matrix_dimension_base_path }}"

which would typically look like:

  (server)# chown -Rv matrix:matrix /matrix/dimension/

Reconfigure Dimension and start the services:

  (local)$ ansible-playbook -i inventory/hosts setup.yml --tags=setup-dimension,start
pull/485/head
Chris van Dijk 6 anni fa
parent
commit
741064a178
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      roles/matrix-dimension/tasks/setup_dimension.yml

+ 2
- 2
roles/matrix-dimension/tasks/setup_dimension.yml Vedi File

@@ -10,7 +10,7 @@
state: directory state: directory
mode: 0770 mode: 0770
owner: "{{ matrix_user_username }}" owner: "{{ matrix_user_username }}"
group: "{{ matrix_dimension_user_gid }}"
group: "{{ matrix_user_username }}"
when: matrix_dimension_enabled|bool when: matrix_dimension_enabled|bool


- name: Ensure Dimension config installed - name: Ensure Dimension config installed
@@ -19,7 +19,7 @@
dest: "{{ matrix_dimension_base_path }}/config.yaml" dest: "{{ matrix_dimension_base_path }}/config.yaml"
mode: 0640 mode: 0640
owner: "{{ matrix_user_username }}" owner: "{{ matrix_user_username }}"
group: "{{ matrix_dimension_user_gid }}"
group: "{{ matrix_user_username }}"
when: matrix_dimension_enabled|bool when: matrix_dimension_enabled|bool


- name: Ensure Dimension image is pulled - name: Ensure Dimension image is pulled


Caricamento…
Annulla
Salva