Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible_lza_ingest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
ansible_lza_ingest
Compare revisions
2aacc85de99cc0398850bab2cb1ff25d4ed8b308 to 5c9a5229f4470a873a7e231b0d41e5de64876101
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
digital-preservation/ansible_lza_ingest
Select target project
No results found
5c9a5229f4470a873a7e231b0d41e5de64876101
Select Git revision
Branches
archivematica_support
extended_maintenance
fix_autocomplete
master
4 results
Swap
Target
digital-preservation/ansible_lza_ingest
Select target project
digital-preservation/ansible_lza_ingest
1 result
2aacc85de99cc0398850bab2cb1ff25d4ed8b308
Select Git revision
Branches
archivematica_support
extended_maintenance
fix_autocomplete
master
4 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (6)
chore: updated task name
· 5e3a4317
Jens Steidl
authored
2 weeks ago
5e3a4317
fix: new package names
· d1626260
Jens Steidl
authored
2 weeks ago
d1626260
chore: added TODO
· 4b5fd263
Jens Steidl
authored
2 weeks ago
4b5fd263
chore: paths now static for every host
· cdb26920
Jens Steidl
authored
2 weeks ago
cdb26920
chore: obsolete dir
· 792540db
Jens Steidl
authored
2 weeks ago
792540db
feat: added TransferApp related mounts
· 5c9a5229
Jens Steidl
authored
2 weeks ago
5c9a5229
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tasks/configure_nfs_mounts.yml
+34
-10
34 additions, 10 deletions
tasks/configure_nfs_mounts.yml
tasks/install_subapp.yml
+3
-3
3 additions, 3 deletions
tasks/install_subapp.yml
tasks/main.yml
+1
-0
1 addition, 0 deletions
tasks/main.yml
with
38 additions
and
13 deletions
tasks/configure_nfs_mounts.yml
View file @
5c9a5229
...
...
@@ -8,14 +8,17 @@
ansible.builtin.stat
:
path
:
"
{{
item
}}"
loop
:
-
"
{{
nfs_mounts_subapp.hosts[ansible_hostname]['access']['path']
|
default('/mnt/'
+
ansible_hostname
+
'_access')
}}"
-
"
{{
nfs_mounts_subapp.hosts[ansible_hostname]['ingest']['path']
|
default('/mnt/'
+
ansible_hostname
+
'_ingest')
}}"
-
"
{{
nfs_mounts_subapp.hosts[ansible_hostname]['import']['path']
|
default('/mnt/import')
}}"
-
"
{{
nfs_mounts_subapp.hosts[ansible_hostname]['sftp_upload']['path']
|
default('/home/import/upload')
}}"
-
"
{{
nfs_mounts_subapp.hosts[ansible_hostname]['sftp_download']['path']
|
default('/home/import/download')
}}"
-
"
{{
paths.access.mountpoint
}}"
-
"
{{
paths.ingest.mountpoint
}}"
-
"
{{
paths.ingest_transfer.mountpoint
}}"
-
"
{{
paths.import.mountpoint
}}"
-
"
{{
paths.import_transfer.mountpoint
}}"
-
"
{{
paths.sftp_upload.mountpoint
}}"
-
"
{{
paths.sftp_download.mountpoint
}}"
-
"
{{
paths.log_disapp.mountpoint
}}"
-
"
{{
paths.log_subapp.mountpoint
}}"
-
"
{{
paths.log_subapp_ws.mountpoint
}}"
-
"
{{
paths.log_transferapp.mountpoint
}}"
register
:
stat_result
-
name
:
if dir doesn't exist, create it with correct permissions
ansible.builtin.file
:
...
...
@@ -27,7 +30,7 @@
loop
:
"
{{
stat_result.results
}}"
when
:
not item.stat.exists
-
name
:
Mounts für SubApp-Shares & Logs
NEW
-
name
:
Mounts für SubApp-Shares & Logs
ansible.posix.mount
:
path
:
"
{{
item.path
}}"
src
:
"
{{
item.src
|
default(omit)
}}"
...
...
@@ -53,6 +56,13 @@
-
path
:
"
{{
paths.sftp_upload.mountpoint
}}"
src
:
"
{{
nfs_mounts_subapp.hosts[ansible_hostname]['sftp_upload']['nfs_share']
}}"
opts
:
"
{{
nfs_mounts_subapp.hosts[ansible_hostname]['sftp_upload']['nfs_opts']
}}"
# TransferApp
-
path
:
"
{{
paths.ingest_transfer.mountpoint
}}"
src
:
"
{{
nfs_mounts_subapp.hosts[ansible_hostname]['ingest_transfer']['nfs_share']
}}"
opts
:
"
{{
nfs_mounts_subapp.hosts[ansible_hostname]['ingest_transfer']['nfs_opts']
}}"
-
path
:
"
{{
paths.import_transfer.mountpoint
}}"
src
:
"
{{
nfs_mounts_subapp.hosts[ansible_hostname]['import_transfer']['nfs_share']
}}"
opts
:
"
{{
nfs_mounts_subapp.hosts[ansible_hostname]['import_transfer']['nfs_opts']
}}"
tags
:
[
notest
]
-
name
:
create subdirectories in Shares before mounting them...
ansible.builtin.file
:
...
...
@@ -65,6 +75,7 @@
-
path
:
"
/mnt/logs/disapp/"
-
path
:
"
/mnt/logs/subapp/"
-
path
:
"
/mnt/logs/subapp_ws/"
-
path
:
"
/mnt/logs/transferapp/"
# tags: [notest]
-
name
:
... and now mount them
ansible.posix.mount
:
...
...
@@ -89,6 +100,11 @@
src
:
"
/mnt/logs/subapp_ws/"
opts
:
"
bind,_netdev,x-systemd.requires-mounts-for=/mnt/logs/"
fstype
:
none
# TransferApp
-
path
:
"
{{
paths.log_transferapp.mountpoint
}}"
src
:
"
/mnt/logs/transferapp/"
opts
:
"
bind,_netdev,x-systemd.requires-mounts-for=/mnt/logs/"
fstype
:
none
# SFTP
-
path
:
"
{{
paths.sftp_download.mountpoint
}}"
src
:
"
{{
nfs_mounts_subapp.hosts[ansible_hostname]['sftp_download']['nfs_share']
}}"
...
...
@@ -112,6 +128,10 @@
owner
:
"
{{
paths.log_subapp.owner
}}"
group
:
"
{{
paths.log_subapp.group
}}"
mode
:
"
{{
paths.log_subapp.mode
}}"
-
path
:
"
{{
paths.log_transferapp.mountpoint
}}"
owner
:
"
{{
paths.log_transferapp.owner
}}"
group
:
"
{{
paths.log_transferapp.group
}}"
mode
:
"
{{
paths.log_transferapp.mode
}}"
-
path
:
"
{{
paths.log_subapp_ws.mountpoint
}}"
owner
:
"
{{
paths.log_subapp_ws.owner
}}"
group
:
"
{{
paths.log_subapp_ws.group
}}"
...
...
@@ -128,10 +148,6 @@
owner
:
"
{{
vault_sftp_upload_user
}}"
group
:
"
{{
vault_sftp_upload_group
}}"
mode
:
"
{{
paths.access.mode
}}"
-
path
:
"
{{
paths.access.mountpoint
}}/rosetta_export/"
owner
:
"
{{
paths.access.owner
}}"
group
:
"
{{
paths.access.group
}}"
mode
:
"
{{
paths.access.mode
}}"
-
path
:
"
{{
paths.sftp_download.mountpoint
}}"
owner
:
"
{{
paths.sftp_download.owner
}}"
group
:
"
{{
paths.sftp_download.group
}}"
...
...
@@ -144,10 +160,18 @@
owner
:
"
{{
paths.ingest.owner
}}"
group
:
"
{{
paths.ingest.group
}}"
mode
:
"
{{
paths.ingest.mode
}}"
-
path
:
"
{{
paths.ingest_transfer.mountpoint
}}"
owner
:
"
{{
paths.ingest_transfer.owner
}}"
group
:
"
{{
paths.ingest_transfer.group
}}"
mode
:
"
{{
paths.ingest_transfer.mode
}}"
-
path
:
"
{{
paths.import.mountpoint
}}"
owner
:
"
{{
paths.import.owner
}}"
group
:
"
{{
paths.import.group
}}"
mode
:
"
{{
paths.import.mode
}}"
-
path
:
"
{{
paths.import_transfer.mountpoint
}}"
owner
:
"
{{
paths.import_transfer.owner
}}"
group
:
"
{{
paths.import_transfer.group
}}"
mode
:
"
{{
paths.import_transfer.mode
}}"
-
path
:
"
{{
paths.sftp_upload.mountpoint
}}"
owner
:
"
{{
paths.sftp_upload.owner
}}"
group
:
"
{{
paths.sftp_upload.group
}}"
...
...
This diff is collapsed.
Click to expand it.
tasks/install_subapp.yml
View file @
5c9a5229
...
...
@@ -33,9 +33,9 @@
-
name
:
Submission / Dissemination Application installieren
ansible.builtin.apt
:
name
:
[
"
common-application4
rosett
a"
,
"
dissemination-application4
rosett
a"
,
"
submission-application4
rosett
a"
,
"
common-application4
archivematic
a"
,
"
dissemination-application4
archivematic
a"
,
"
submission-application4
archivematic
a"
,
]
state
:
latest
allow_unauthenticated
:
"
true"
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
View file @
5c9a5229
...
...
@@ -81,6 +81,7 @@
ansible.builtin.import_tasks
:
"
install_move_logs.yml"
tags
:
[
log
,
cleanup
]
# TODO: to be double checked with other roles & removed, highly likely all tasks are outdated
-
name
:
cleanup remainders of METS-based SubApp
ansible.builtin.import_tasks
:
"
cleanup_legacy.yml"
tags
:
[
cleanup
]
This diff is collapsed.
Click to expand it.