Commit 360eddf6 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

update role

parent c96499e8
- name: "Run make new deploy if clarin_dspace_new_deploy is true"
make:
target: "new_deploy"
chdir: "{{ script_dir }}"
become: true
when: "clarin_dspace_new_deploy | default(false) | bool"
- name: " Run make deploy, with Yes set"
expect:
timeout: "300"
chdir: "{{ script_dir }}"
command: "make deploy"
responses:
for Yes type Yes: "Yes"
become: yes
......@@ -10,6 +10,11 @@
workspace_dir: "{{ clarin_dspace_workspace_dir | default(clarin_home + '/workspace') }}"
log_dir: "{{ clarin_dspace_log_dir | default(clarin_home + '/log')}}"
- name: "install pexpect from pip (requirement for using ansible expect module, to automate prompting.)"
pip:
name: "pexpect"
become: true
- name: "create directory for CLARINO"
file:
state: "directory"
......@@ -28,36 +33,27 @@
version: "{{ clarin_dspace_version | default('master') }}"
accept_hostkey: "yes"
- name: "create symbolic link from python2 to python"
- name: "create symbolic link from python2 to python (python scripts in makefile uses python)"
file:
src: "/usr/bin/python2"
dest: "/usr/bin/python"
state: "link"
become: true
- name: "tempate config to server"
- name: "template config to server"
template:
src: "local.conf.j2"
dest: "/dspace/clarino/source/local.properties"
dest: "{{ src_dir }}/local.properties"
become: true
- name: "copy variables.makefile to server"
copy:
src: "files/variables.makefile"
dest: "/dspace/clarino/source/utilities/project_helpers/config/variable.makefile"
template:
src: "variables.makefile.j2"
dest: "{{ src_dir }}/utilities/project_helpers/config/variable.makefile"
become: true
- name: "install prerequisites not in maven"
shell: "make install_libs"
args:
make:
target: "install_libs"
chdir: "{{ script_dir }}"
become: true
- name: " Run make deploy, with Yes set"
expect:
timeout: "300"
chdir: "{{ script_dir }}"
command: "make deploy"
responses:
for Yes type Yes: "Yes"
become: yes
......@@ -5,4 +5,6 @@
name: "pexpect"
become: true
- import_tasks: "build-clarin.yml"
- import_tasks: "configure.yml"
- import_tasks: "build.yml"
# Ansible managed
#############################
# Local config modification #
#############################
# PID service
# type o service; for now only epic and epic2 are supported
lr.pid.service.type = epic2
lr.pid.service.url =
lr.pid.service.user =
lr.pid.service.pass =
# test pid which should have been created with the above credentials
lr.pid.service.testPid =
# per community pid configurations for pid prefixes of the format:
# community=<community ID>,prefix=<prefix>,alternative_prefixes=<pipeline separated list of alternative prefixes>,type=<local|epic>,canonical_prefix=<URL of handle>,subprefix=<subprefix>
# multiple configurations can be given separated by semicolon
# default configuration should have asterisk as the community ID
# subprefix is only used for local handles
lr.pid.community.configurations = community=*,prefix=11509,type=local,canonical_prefix=http://hdl.handle.net/
# if true, PID metadata will be filled with object metadata like title
lr.pid.resolvemetadata = false
# UFAL mounted assetstore for restricted item harvesting. Please mind the trailing slash
lr.harvestable.assetstore =
# DSpace host name - should match base URL. Do not include protocol i.e. http or https and do not include port, this is only the name of server.
# Also do not use localhost because using this property some external links will be generated.
dspace.hostname = {{ clarin_dspace_hostname }}
# DSpace base URL, the full url of the instance
{# set dspace_baseurl_trail = dspace_baseurl | regex_search('[^/]$') | mandatory('dspace_baseurl must not contain trailing slash') #}
# !!! URL must NOT contain trailing slash
dspace.baseUrl = {{ clarin_dspace_baseurl | default('https://' + dspace_hostname) }}
# OAI webapp url without context (eg. /request) use http
# in theory ${dspace.baseUrl}/oai except for the http requirement
dspace.oai.url = {{ clarin_dspace_oai_url | default('${dspace.baseUrl}/oai') }}
# DSpace URL, usually ending with /xmlui
# DSpace base URL. Include port number etc., but NOT trailing slash
dspace.url = {{ clarin_dspace_url | default('${dspace.baseUrl}/xmlui') }}
# Google analytics key
xmlui.google.analytics.key =
# Database settings ########################
# This is not the name of the database you are using. Instead the name of the RDBMS used e.g. postgres or oracle.
# This is required for database creation scripts.
db.name = {{ clarin_dspace_rdbms | default('postgres') }}
# The name of the database that you will use for your dspace instance.
# If the database is not created yet, this name will be used to create the new database.
# Be careful with the trailing spaces in the name!
lr.database = {{ clarin_dspace_db_name }}
lr.database.port = 5432
# Connection URL of the database. Make sure you are using the correct port and if you are connecting to remote server,
# verify that the port is accessible. Do not change the ${lr.database}, the database name will be substituted from above property.
db.url = jdbc:postgresql://localhost:${lr.database.port}/${lr.database}
# The database driver you are using. Make sure that the required jars are available.
db.driver = org.postgresql.Driver
# Credentials for the database user. The user should have read/write permissions on your database.
db.username = {{ clarin_dspace_db_user }}
db.password = {{ clarin_dspace_db_user_password }}
# UFAL Utilities database name.
lr.utilities.database = {{ clarin_dspace_db_licenses_name }}
# Connection URL for the Utilities database.
lr.utilities.db.url = jdbc:postgresql://localhost:${lr.database.port}/${lr.utilities.database}
# Functionality Manager facade for Utilities API
lr.utilities.functionalityManager.class = cz.cuni.mff.ufal.lindat.utilities.HibernateFunctionalityManager
############################################
# DSpace general settings ##################
# You can use this value to append version with other values.
lr.dspace.version = lindat-dspace5.6
# The installation directory of your instance.
# THIS IS USED IN THE VARIABLES/MAKEFILE so don't use variables(${*}) here
dspace.install.dir = /dspace/{{ clarin_dspace_name }}/build
# A description of your dspace instance. It will be used as a description of your dspace instance for other services
dspace.name = Common Language Resources and Technology Infrastructure Norway (CLARINO) Bergen Repository
# Used in email templates
lr.dspace.name.short = {{ clarin_dspace_short_name | default('UiB/CLARINO)' }}
############################################
# Mail settings ############################
# Mail server address. you can use 127.0.0.1, if configured on localhost.
mail.server = {{ clarin_dspace_mail_server }}
# Mail server disabled?
mail.server.disabled = false
# UFAL: Contact information
lr.help.mail = {{ clarin_dspace_help_mail | default('post@ub.uib.no') }}
lr.help.phone =
mail.from.address = {{ clarin_dspace_from_mail_adress | default('no-reply@clarino.uib.no') }}
mail.feedback.recipient = {{ clarin_dspace_feedback_recipient |default('hemed.ruwehy@uib.no' }}
info.recipient = {{clarin_dspace_info_recipient | default(clarin_dspace_help_mail) }}
mail.alert.recipient = ${mail.admin}
mail.registration.notify = ${mail.admin}
# General site administration (Webmaster) e-mail
mail.admin = ${mail.feedback.recipient}
# solr server address that your instance is using.
solr.server = {{ clarin_dspace_solr | default('http://localhost:8080/solr') }}
# Google Analytics
# NOTE: Copy appropriate Google Analytics API key file to the location specified
# below upon first installation
# Be sure to choose location that is not deleted/overwritten upon deployment
# (the default value is safe)
lr.ga.analytics.key.file =
lr.ga.analytics.profile.id =
lr.ga.analytics.account.email =
# Path of the sources folder that is used for the compilation of this dspace instance.
lr.dspace.source.dir = {{ src_dir }}
# Backup Configurations ####################
# which files/directories needs backup
lr.backup.source =
# (/installations/dspace/dspace-1.8.2/ /installations/dspace/database/ /sources/dspace-1.8.2/ /etc/apache2 /etc/libapache2-mod-jk /opt/shibboleth-sp/etc/shibboleth /etc/tomcat6/ /etc/cron.d/dspace)
# where the backup should be stored
lr.backup.target =
#"/home/backup/"
# the following settings are good to keep one month of restorable backup
# with differential backup every day and full backup every week
# max levels of differential backups
backup2l.max.level = 1
# how many differential backups per level before new level
backup2l.max.per.level = 6
# how many full backups to keep
backup2l.max.full = 4
# number of generations to keep per level
backup2l.generations = 4
############################################
# iRods specific for EUDAT
lr.replication.eudat.on=false
lr.replication.eudat.protocol=irods
lr.replication.eudat.host=
lr.replication.eudat.port=
lr.replication.eudat.username=
lr.replication.eudat.password=
lr.replication.eudat.homedirectory=
# directory in homedirectory where to put replicas for this instance
lr.replication.eudat.replicadirectory=
lr.replication.eudat.zone=
lr.replication.eudat.defaultstorage=
lr.replication.eudat.id=
lr.replication.eudat.notification_email=${info.recipient}
lr.replication.eudat.retrievetopath=
# default is not set
lr.replication.jargon.numThreads=
# default 32 * 1024 * 1024
lr.replication.jargon.MAX_SZ_FOR_SINGLE_BUF=
# default 65535
lr.replication.jargon.BUFFER_SIZE=
# log progress after count of iterations (depends on buffer_size)
lr.replication.jargon.PUT_LOG_AFTER=
# Email where errors will be sent (from specific classes)
lr.errors.email=
# Selenium Testing #########################
# URLs that are required for test cases
selenium.test.home.url = /xmlui
selenium.test.browse.url = /xmlui/browse
selenium.test.search.url = /xmlui/discover
selenium.test.submission.url = /xmlui/submissions
selenium.test.submit.url = /xmlui/submit
selenium.test.local.login = /xmlui/password-login
selenium.test.oai.url = /oai
# default User for testing ... UserName should be the name that is supposed to appear on the home page after login.
selenium.test.user.id =
selenium.test.user.password =
selenium.test.user.name =
# admin User
selenium.test.admin.id =
selenium.test.admin.password =
selenium.test.admin.name =
# more users can be added by replacing *.user.* in the above credential settings
# the user will be used in testng.xml file to refer that user.
############################################
# Location for common lindat theme
# This location will be used to create a symlink in xmlui webapp to always point the latest common header and footer
lr.common.theme = /opt/lindat-common
# Metadata quality ########################
# you should map the solr (if it is not public which it should not)
# url (or any other) into publicly accessible e.g., in apache conf
# using mod_rewrite:
#
# RewriteRule ^/jm/repository/JSON/solr/(.*)$ http://localhost:8080/jm/solr/search/select/?q=*:*&rows=0&facet=on&wt=json&indent=true&facet.field=$1 [P,L]
#
# There are more ways in DSpace how to restrict metadata values (authority manager,
# value pairs, specific js code and this)
#
lr.autocomplete.on=true
lr.autocomplete.solr.url=${dspace.url}/JSON/solr/
lr.autocomplete.json_static.url=${dspace.url}/static/json/
lr.allow.edit.metadata = UIB CLARINO / CLARIN Data & Tools, LRT + Open Submissions Data & Tools
############################################
#
# File download options
#
# minimum number of files for enabling zipped download:
lr.download.all.limit.min.file.count = 1
# maximum total size of files for enabling zipped download:
lr.download.all.limit.max.file.size = 1073741824
# minimum total size of files for enabling download alert:
lr.download.all.alert.min.file.size = 10485760
############################################
#
# File upload options
#
# maximum size of file for enabling upload alert
lr.upload.file.alert.max.file.size = 2147483648
#######
#
# Shibboleth
#
lr.shibboleth.log.path = /opt/shibboleth-sp/var/log/shibboleth
lr.shibboleth.log.defaultName = shibd.log
#the place where you run shibboleth's discoFeed handler ("https://"+hostname+"/Shibboleth.sso/DiscoFeed")
#lr.shibboleth.discofeed.url = https://repo.clarino.uib.no/Shibboleth.sso/DiscoFeed
lr.shibboleth.discofeed.url = https://repo.clarino.uib.no/Shibboleth.sso/DiscoFeed
####
#
# discojuice/aai url, without trailing slash
# don't change this on ufal-point-dev!
lr.aai.url = https://repo.clarino.uib.no/aai
# https://lindat.mff.cuni.cz/aai
# oai path including /request
# if you want the URL to be extracted from HttpRequest then remove OAIHandler.baseURL=${oai.baseURL} from oaicat.properties
lr.oai.baseUrl = ${dspace.baseUrl}/oai/request
# For reports
harvesterInfo.url = http://catalog.clarin.eu/oai-harvester/
############################################
#
# User profile options
#
# whether to show language field in user profile
lr.xmlui.user.showlanguage = false
#mind the documentation for oai/cite and the respective apache rewrite
lr.repository.identifier = repo.clarino.uib.no
lr.repository.sampleIdentifier = oai:repo.clarino.uib.no:11591/1
####
#
# description-olac.xml
####
lr.description.archiveURL = http://clarino.uib.no
lr.description.participant.name = Karin Rydving
lr.description.institution = University of Bergen Library
lr.description.institutionURL = http://uib.no/ub/
lr.description.shortLocation = Bergen, Norway
lr.description.location = Hakon sheteligsplass 7
lr.description.synopsis = http://clarino.uib.no
lr.desription.access = https://repo.clarino.uib.no/xmlui/page/about
lr.description.archivalSubmissionPolicy = https://repo.clarino.uib.no/xmlui/page/about
############################################
#
# Tracker configuration
#
# Enable or disable tracker
#lr.tracker.enabled = true
#
## Type of the tracker. Currently only the Piwik tracker is supported
#lr.tracker.type = piwik
#
# Tracker API URL to which tracking information is being sent
#lr.tracker.api.url = https://host/piwik/piwik.php
#
# Tracker API authentication token
#lr.tracker.api.auth.token =
#
# Site ID under which OAI requests are filed
#lr.tracker.oai.site_id = 5
#
# Site ID under which Bitstream downloads are filed
#lr.tracker.bitstream.site_id = 5
#
############################################
lr.tracker.enabled = {{ clarin_dspace_tracker_enabled | default('false') }}
lr.tracker.type = piwik
lr.tracker.api.url = {{ clarin_dspace_tracker_api_url | default('') }}
lr.tracker.api.auth.token = {{ clarino_tracker_api_token | default('') }}
lr.tracker.oai.site_id = {{ clarin_dspace_tracker_site_id | default('') }}
lr.tracker.bitstream.site_id = {{ clarin_dspace_tracker_bistream_site_id |default(clarin_dspace_site_id) }}
lr.statistics.api.url = {{ clarin_dspace_tracker_url default('https://stats.uib.no/piwik.php') }}
lr.statistics.report.path = ${dspace.dir}/piwik_reports
lr.statistics.show_last_n = 7
lr.lindat.logo.mono = {{ clarin_dspace_lindat_logo_mono default('${dspace.dir}/webapps/xmlui/themes/CLARINO/images/lindat/lindat-logo-mono.png') }}
############################################
#
# Curation
#
############################################
# Space separated metadata patterns (regular expression)
# that should be ignored while checking for required metadata.
# Leave it empty if you want to check everything.
lr.curation.metadata.checkrequired.ignore = metashare.*
############################################
#
# Link checker
#
# User Agent string for link checker
#lr.link.checker.user.agent = "DSpace Link Validator"
#
# Connection timeout for link checker (in milliseconds)
#lr.link.checker.connect.timeout = 2000
#
# Read timeout for link checker (in milliseconds)
#lr.link.checker.read.timeout = 3000
#
############################################
lr.link.checker.user.agent = "DSpace Link Validator"
lr.link.checker.connect.timeout = 2000
lr.link.checker.read.timeout = 3000
###
supported.locales = en
###
mail.server.username =
mail.server.password =
mail.server.port = 25
default.language = en_US
db.maxidle = -1
db.schema =
db.maxwait = 5000
db.maxconnections = 30
db.statementpool = true
db.poolname = dspacepool
http.proxy.host =
http.proxy.port =
handle.canonical.prefix = http://hdl.handle.net/
handle.prefix = {{ clarin_dspace_handle_prefix }}
handle.resolvemetadata = false
loglevel.other=INFO
loglevel.dspace=INFO
handle.dir=${dspace.dir}/handle-server
lr.compile.time=Tue Mar 17 11:02:15 CET 2020
# Ansible managed
Makefile for this project
# by LINDAT/CLARIN dev team
#
# Note: If you want to change this file, copy it to project/config
#
# lindat settings
LINDAT_COMMON_THEME_BRANCH={{ clarin_dspace_lindat_common_theme_branch | default('bootstrap3') }}
LINDAT_COMMON_THEME_FETCH={{ clarin_dspace_lindat_common_theme_fetch | default('git checkout -f bootstrap3 && git pull') }}
# tomcat
TOMCAT_VERSION={{ clarin_dspace_tomcat_version | default('9') }}
TOMCAT_USER:={{ clarin_dspace_tomcat_user | default('tomcat') }}
TOMCAT_GROUP:={{ clarin_dspace_tomcat_group | default('tomcat') }}
TOMCAT_CONF:={{ clarin_dspace_tomcat_conf | default('/opt/tomcat/conf' }}
# dspace
DSPACE_USER:=postgres
# tool directories, not in use for CLARINO
DIRECTORY_POSTGRESQL:=/var/lib/pgsql
APACHE:=/etc/init.d/httpd
SHIB:=/etc/init.d/shibd
TOMCAT:=/etc/init.d/tomcat
HANDLE_SERVER:=/etc/init.d/handle-server
#BACKUP2l:=/usr/sbin/backup2l
# database settings - mostly for recovering
RESTORE_FROM_DATABASE=prod-dspace-1.8
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment