Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
poc_irods
poc-irods
Commits
4f6edb20
Commit
4f6edb20
authored
Nov 10, 2020
by
viscapi
Browse files
Added names to many actions
parent
74bdbe15
Changes
6
Hide whitespace changes
Inline
Side-by-side
postgresql/tasks/db_privs.yml
View file @
4f6edb20
---
-
postgresql_user
:
-
name
:
Create PostgreSQL iRODS user
postgresql_user
:
name
:
"
{{
database_user
}}"
state
:
present
password
:
"
{{
database_password
}}"
...
...
@@ -8,13 +9,15 @@
login_unix_socket
:
/tmp
# login_unix_socket mandatory (else looks it up in /var/run/postgresql)
-
postgresql_db
:
-
name
:
Create PostgreSQL iRODS database
postgresql_db
:
name
:
"
{{
database_name
}}"
state
:
present
login_user
:
postgres
login_unix_socket
:
/tmp
-
postgresql_privs
:
-
name
:
Set database privileges
postgresql_privs
:
database
:
"
{{
database_name
}}"
state
:
present
privs
:
ALL
...
...
postgresql/tasks/files.yml
View file @
4f6edb20
---
-
file
:
-
name
:
Create database directory
file
:
state
:
directory
path
:
"
{{path_to_icat}}"
owner
:
postgres
...
...
postgresql/tasks/pip.yml
View file @
4f6edb20
---
-
pip
:
-
name
:
Install Python modules
pip
:
name
:
-
pip
-
psycopg2-binary
...
...
postgresql/tasks/repos.yml
View file @
4f6edb20
---
-
name
:
Install PostgreSQL
9.6 packages
for CentOS
7
-
name
:
Install PostgreSQL
repository
for CentOS
7
yum
:
conf_file
:
'
/etc/yum.conf'
name
:
https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
...
...
postgresql/tasks/security.yml
View file @
4f6edb20
---
-
selinux
:
-
name
:
Set SELinux mode
selinux
:
policy
:
targeted
state
:
"
{{
selinux_mode
}}"
...
...
postgresql/tasks/users.yml
View file @
4f6edb20
...
...
@@ -13,7 +13,7 @@
group
:
irods
state
:
present
password
:
"
{{irods_unix_password}}"
#password:
voir
docs.ansible.com/ansible/latest/user_module.html
#password:
see
docs.ansible.com/ansible/latest/user_module.html
-
name
:
Create postgres user and group on CentOS
7
block
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment