This repository has been archived by the owner on Nov 1, 2018. It is now read-only.
forked from cyverse-archive/DE
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#8 pushing irods-config role. gets odum back to errors previously enc…
…ountered, should fix RENCI.
- Loading branch information
1 parent
4943b19
commit 9ad27d4
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
|
||
# ignore_errors in case user is like don and picks 'rodsadmin' as an admin name | ||
- name: create DE/services irods user | ||
sudo: yes | ||
sudo_user: irods | ||
shell: "iadmin mkuser {{ irods_user }}#{{ irods_zone }} rodsadmin" | ||
ignore_errors: true | ||
|
||
- name: if DE/services user already exists, ensure it's an admin | ||
sudo: yes | ||
sudo_user: irods | ||
shell: "iadmin moduser {{ irods_user }}#{{ irods_zone }} type rodsadmin" | ||
|
||
- name: set DE/services user password | ||
sudo: yes | ||
sudo_user: irods | ||
shell: "iadmin moduser {{ irods_user }}#{{ irods_zone }} password {{ irods_password }}" | ||
|
||
- name: /zone/home must be globally readable | ||
sudo: yes | ||
sudo_user: irods | ||
shell: "ichmod read public /{{ irods_zone }}/home" | ||
|
||
- name: ensure /zone/home/shared exists | ||
sudo: yes | ||
sudo_user: irods | ||
shell: "imkdir /{{ irods_zone }}/home/shared" | ||
ignore_errors: true | ||
|
||
- name: make /zone/home/shared public writable | ||
sudo: yes | ||
sudo_user: irods | ||
shell: "ichmod -r write public /{{ irods_zone }}/home/shared" | ||
|
||
- name: with inheritance | ||
sudo: yes | ||
sudo_user: irods | ||
shell: "ichmod inherit /{{ irods_zone }}/home/shared" | ||
|
||
- name: DE wants /OdumDEZone/trash/home/rodsadmin to exist | ||
sudo: yes | ||
sudo_user: irods | ||
shell: "imkdir -p /{{ irods_zone }}/trash/home/{{ irods_user }}" | ||
ignore_errors: true | ||
|
||
- name: DE wants world-writable trash | ||
sudo: yes | ||
sudo_user: irods | ||
shell: "ichmod -r own public /{{ irods_zone }}/trash" | ||
|
||
- name: with inheritance | ||
sudo: yes | ||
sudo_user: irods | ||
shell: "ichmod inherit /{{ irods_zone }}/trash" |