Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ansible_lza_rosetta_app
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_rosetta_app
Commits
f10b64d6
Commit
f10b64d6
authored
1 year ago
by
Jörg Sachse
Browse files
Options
Downloads
Patches
Plain Diff
feat: add HTTP BasicAuth config for Solr
parent
9c000a44
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/rosetta/configure_rosetta_prerequisites.yml
+23
-0
23 additions, 0 deletions
tasks/rosetta/configure_rosetta_prerequisites.yml
templates/exlibris/dps/d4_1/solr/server/solr/security.json.j2
+27
-0
27 additions, 0 deletions
...lates/exlibris/dps/d4_1/solr/server/solr/security.json.j2
with
50 additions
and
0 deletions
tasks/rosetta/configure_rosetta_prerequisites.yml
+
23
−
0
View file @
f10b64d6
...
@@ -82,3 +82,26 @@
...
@@ -82,3 +82,26 @@
dest
:
"
/exlibris/dps/d4_1/system.dir/conf/global.properties"
dest
:
"
/exlibris/dps/d4_1/system.dir/conf/global.properties"
state
:
link
state
:
link
when
:
ansible_hostname in "appdev"
when
:
ansible_hostname in "appdev"
-
name
:
create directory for Solr config file
ansible.builtin.file
:
path
:
"
/exlibris/dps/d4_1/solr/server/solr/"
state
:
directory
mode
:
"
0755"
owner
:
"
{{
vault_rosetta_user
}}"
group
:
"
{{
vault_rosetta_group
}}"
when
:
("-test" in ansible_hostname) or
("-mol" in ansible_hostname)
-
name
:
>
Deploy modified security.json file for Testsystem so CI/CD tests can be run
against Solr. Credentials are taken from an Ansible Vault.
ansible.builtin.template
:
src
:
"
exlibris/dps/d4_1/solr/server/solr/security.json.j2"
dest
:
"
/exlibris/dps/d4_1/solr/server/solr/security.json"
backup
:
true
mode
:
"
0664"
owner
:
"
{{
vault_rosetta_user
}}"
group
:
"
{{
vault_rosetta_group
}}"
when
:
("-test" in ansible_hostname) or
("-mol" in ansible_hostname)
This diff is collapsed.
Click to expand it.
templates/exlibris/dps/d4_1/solr/server/solr/security.json.j2
0 → 100644
+
27
−
0
View file @
f10b64d6
{
"authentication":{
"class":"solr.BasicAuthPlugin",
"blockUnknown":true,
"credentials":{
"slr":"{{ vault_solr_passwords.slr[ansible_hostname] }}",
"Test_WebServices":"{{ vault_solr_passwords.Test_WebServices }}",
"check_ie_sample": "{{ vault_solr_passwords.check_ie_sample }}"},
"":{"v":0}},
"authorization":{
"class":"solr.RuleBasedAuthorizationPlugin",
"user-role":{
"slr":"admin",
"Test_WebServices":["onlyareader"]},
"check_ie_sample":["onlyareader"]},
"permissions":[
{
"name":"read",
"role":[
"admin",
"onlyareader"],
"index":1},
{
"name":"all",
"role":["admin"],
"index":2}],
"":{"v":0}}}
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