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
Commits
c0ad22b6
Commit
c0ad22b6
authored
1 year ago
by
Jörg Sachse
Browse files
Options
Downloads
Patches
Plain Diff
style: use deb822 format and remove deprecated apt_key (resolves #2233 / ND-2723)
parent
65e2e26c
No related branches found
No related tags found
No related merge requests found
Pipeline
#6071
failed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
molecule/resources/playbooks/prepare.yml
+88
-24
88 additions, 24 deletions
molecule/resources/playbooks/prepare.yml
with
88 additions
and
24 deletions
molecule/resources/playbooks/prepare.yml
+
88
−
24
View file @
c0ad22b6
---
---
-
name
:
Prepare
-
name
:
Prepare
hosts
:
"
*"
hosts
:
"
*"
tasks
:
pre_tasks
:
-
name
:
install GPG
-
name
:
configure additional package repositories for Debian
ansible.builtin.apt
:
when
:
ansible_os_family == "Debian"
name
:
"
gnupg"
block
:
state
:
latest
-
name
:
install GPG
update_cache
:
true
ansible.builtin.apt
:
become
:
true
name
:
"
gnupg"
-
name
:
add non-free repos to be able to install libmath-random-perl from Debian public repo
state
:
latest
ansible.builtin.replace
:
update_cache
:
true
path
:
"
/etc/apt/sources.list"
become
:
true
regexp
:
'
^(.*)
main$'
-
name
:
modify package repo config
replace
:
'
\g<1>
main
non-free'
ansible.builtin.deb822_repository
:
become
:
true
architectures
:
"
amd64"
-
name
:
add GPG key for SLUB Debian repository
components
:
"
{{
item.components
|
default('main')
}}"
ansible.builtin.apt_key
:
enabled
:
"
{{
item.enabled
|
default(true)
}}"
# url: "https://sdvdebianrepo.slub-dresden.de/deb-repository/pub.gpg.key"
name
:
"
{{
item.name
}}"
url
:
"
http://bdv141.slub-dresden.de/deb-repository/pub.gpg.key"
pdiffs
:
true
state
:
present
signed_by
:
"
{{
item.signed_by
}}"
suites
:
"
{{
item.suites
|
default(ansible_lsb.codename)
}}"
uris
:
"
{{
item.uris
}}"
loop
:
# PC @steidl with local Debian repo for SubAp tests
-
name
:
"
bdv141"
signed_by
:
"
http://bdv141.slub-dresden.de/deb-repository/pub.gpg.key"
suites
:
"
lza-testing"
uris
:
"
http://bdv141.slub-dresden.de/deb-repository"
# on-prem Debian Repo
-
name
:
"
slub"
signed_by
:
"
https://sdvdebianrepo.slub-dresden.de/deb-repository/pub.gpg.key"
uris
:
"
https://sdvdebianrepo.slub-dresden.de/deb-repository"
# add non-free repos to be able to install libmath-random-perl from official Debian public repo
-
name
:
"
debian"
components
:
[
"
main"
,
"
non-free"
]
signed_by
:
"
/usr/share/keyrings/debian-archive-keyring.gpg"
suites
:
[
"
{{
ansible_lsb.codename
}}"
,
"
{{
ansible_lsb.codename
}}-updates"
]
uris
:
"
http://deb.debian.org/debian"
notify
:
update package cache
become
:
true
-
name
:
configure additional package repositories for RedHat
when
:
ansible_os_family == "RedHat"
block
:
-
name
:
add custom repositories
ansible.builtin.yum_repository
:
name
:
"
{{
item.name
}}"
description
:
"
{{
item.description
}}"
baseurl
:
"
{{
item.baseurl
}}"
gpgcheck
:
"
{{
item.gpgcheck
|
default('true')
}}"
gpgkey
:
"
{{
item.gpgkey
|
default(omit)
}}"
loop
:
-
name
:
"
epel"
description
:
EPEL YUM repo
baseurl
:
"
https://download.fedoraproject.org/pub/epel/{{
ansible_distribution_major_version
}}/x86_64/"
gpgkey
:
"
https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{
ansible_distribution_major_version
}}"
-
name
:
"
slub"
description
:
SLUB YUM repo
baseurl
:
"
https://sdvrhelrepo.slub-dresden.de/"
gpgcheck
:
"
false"
notify
:
update package cache
-
name
:
remove legacy repo configuration to avoid double configuration for SLUB repo
ansible.builtin.file
:
path
:
"
/etc/yum.repos.d/SLUB.repo"
state
:
absent
notify
:
update package cache
# Ansible roles can install a multitude of firewall rules, some of which
# will lock us out of our Molecule test VM if we don't take precautions.
# As Molecule itself uses SSH just like Ansible, we need to open port
# tcp/22 to the private /24 subnet that Vagrant uses when provisioning the
# VM. As we don't know for sure what the address for this subnet is and it
# can change across servers/platforms, we gather this information
# dynamically and filter it through `ipaddr` to get the address of the
# whole subnet. The rule is inserted right on top of the list to make sure
# we always get access.
-
name
:
add firewall rule to allow access from Molecule host into testing VM
ansible.builtin.iptables
:
action
:
insert
rule_num
:
1
chain
:
INPUT
comment
:
"
molecule
access"
jump
:
"
ACCEPT"
protocol
:
tcp
source
:
"
{{
ansible_default_ipv4.address
|
ansible.utils.ipaddr('network')
}}/24"
destination_port
:
"
22"
become
:
true
become
:
true
-
name
:
add repo URL to sources.list
ansible.builtin.apt_repository
:
handlers
:
# repo: "deb https://sdvdebianrepo.slub-dresden.de/deb-repository bullseye main"
-
name
:
update package cache
repo
:
"
deb
http://bdv141.slub-dresden.de/deb-repository
lza-testing
main"
ansible.builtin.package
:
state
:
present
update_cache
:
true
update_cache
:
true
mode
:
"
0644"
become
:
true
become
:
true
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment