Skip to content

Commit

Permalink
#328 create minio service account
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Sizemore committed Dec 14, 2023
1 parent 2aedd15 commit 94a1ff7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 78 deletions.
71 changes: 0 additions & 71 deletions tasks/docker.yml

This file was deleted.

2 changes: 1 addition & 1 deletion tasks/localstack_create_bucket.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

- name: set Payara JVM options
become: yes
become_user: '{{ localstack.user }}'
become_user: '{{ dataverse.payara.user }}'
ansible.builtin.shell: '{{ payara_dir }}/bin/asadmin create-jvm-options "\-Ddataverse.files.{{ bucket_options.id }}.{{ inner.key }}={{ inner.value }}"'
loop: "{{ lookup('dict', jvm_options) }}"
loop_control:
Expand Down
12 changes: 7 additions & 5 deletions tasks/minio.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---

- ansible.builtin.import_tasks: docker.yml
- ansible.builtin.import_tasks: podman.yml

- name: ensure minio service account exists
ansible.builtin.user:
name: '{{ minio.user }}'

- name: STORAGE | Import assert.yml
ansible.builtin.import_tasks: minio_assert.yml
Expand Down Expand Up @@ -33,8 +37,7 @@
ansible.builtin.file:
path: "{{ minio.docker.project_location }}/data"
state: directory
owner: '{{ dataverse.payara.user }}'
group: '{{ dataverse.payara.group }}'
owner: '{{ minio.user }}'
mode: "0755"
recurse: true
when:
Expand All @@ -45,8 +48,7 @@
ansible.builtin.template:
src: minio_compose.j2
dest: "{{ minio.docker.project_location }}/minio_compose.yml"
owner: '{{ dataverse.payara.user }}'
group: '{{ dataverse.payara.group }}'
owner: '{{ minio.user }}'
mode: "0644"
lstrip_blocks: true
force: true
Expand Down
3 changes: 2 additions & 1 deletion tests/group_vars/jenkins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,14 @@ maven:

minio:
enabled: true
user: minio
docker:
version: "latest"
service_name: "minio"
network:
name: "minio"
external: false
project_location: "/home/dataverse/minio"
project_location: "/home/minio/minio"
timezone: "America/New_York"
user: dataverse
group: dataverse
Expand Down

0 comments on commit 94a1ff7

Please sign in to comment.