Commit 1907dfee authored by Paschalis Korosoglou's avatar Paschalis Korosoglou
Browse files

ARGO-242 Changes needed for production web ui deployment

parent af037450
......@@ -7,9 +7,14 @@ services:
lavoisier_home: /var/www/lavoisier
branch_name: master
argo_web: argo-egi-web
argo_api_host: example.com
argo_api_key: some_api_key
contact_email: foo@example.com
gocdb_endpoint: goc.egi.eu
gocdb_production: Production
gocdb_certification: Certified
cert_dir: /etc/grid-security
cert_path: /etc/grid-security/hostcert.pem
key_path: /etc/grid-security/hostkey.pem
......
......@@ -44,68 +44,16 @@
chdir={{ lavoisier_home }}
when: download_out is defined and download_out.changed
- name: Configure etc/lavoisier-hidden.properties step 1
lineinfile: dest={{ lavoisier_home }}/{{ argo_web }}-{{ branch_name }}/etc/lavoisier-hidden.properties
line='certificate.password={{ certificate_password }}'
regexp='^certificate.password'
state=present
notify: restart webui
- name: Configure etc/lavoisier-hidden.properties step 2
lineinfile: dest={{ lavoisier_home }}/{{ argo_web }}-{{ branch_name }}/etc/lavoisier-hidden.properties
line='certificate.path={{ certificate_path }}'
regexp='^certificate.path'
state=present
notify: restart webui
- name: Configure etc/lavoisier-hidden.properties step 3
lineinfile: dest={{ lavoisier_home }}/{{ argo_web }}-{{ branch_name }}/etc/lavoisier-hidden.properties
line='cache.baseDirectory={{ cache_directory }}'
regexp='^cache.baseDirectory='
state=present
insertafter='^#cache.baseDirectory'
notify: restart webui
- name: Configure etc/lavoisier-hidden.properties step 4
lineinfile: dest={{ lavoisier_home }}/{{ argo_web }}-{{ branch_name }}/etc/lavoisier-hidden.properties
line='server.baseUrl=http://{{ inventory_hostname }}'
regexp='^server.baseUrl'
state=present
notify: restart webui
- name: Configure etc/lavoisier-hidden.properties step 5
lineinfile: dest={{ lavoisier_home }}/{{ argo_web }}-{{ branch_name }}/etc/lavoisier-hidden.properties
line='lavoisier.ssl.trustStore={{ truststore_path }}'
regexp='^lavoisier.ssl.trustStore='
state=present
notify: restart webui
- name: Configure etc/lavoisier-hidden.properties step 6
lineinfile: dest={{ lavoisier_home }}/{{ argo_web }}-{{ branch_name }}/etc/lavoisier-hidden.properties
line='lavoisier.ssl.keyStore={{ keystore_path }}'
regexp='^lavoisier.ssl.keyStore='
state=present
notify: restart webui
- name: Configure etc/lavoisier-hidden.properties step 7
lineinfile: dest={{ lavoisier_home }}/{{ argo_web }}-{{ branch_name }}/etc/lavoisier-hidden.properties
line='lavoisier.ssl.keyStorePassword={{ keystore_password }}'
regexp='^lavoisier.ssl.keyStorePassword='
state=present
notify: restart webui
- name: Configure etc/lavoisier-hidden.properties step 8
lineinfile: dest={{ lavoisier_home }}/{{ argo_web }}-{{ branch_name }}/etc/lavoisier-hidden.properties
line='argo.api.key={{ argo_api_key }}'
regexp='^argo.api.key='
state=present
- name: Copy etc/lavoisier-hidden.properties file
template: src=lavoisier-hidden.properties.j2
dest={{ lavoisier_home }}/{{ argo_web }}-{{ branch_name }}/etc/lavoisier-hidden.properties
owner=root group=root mode=0644
notify: restart webui
- name: Configure etc/lavoisier-hidden.properties step 9
lineinfile: dest={{ lavoisier_home }}/{{ argo_web }}-{{ branch_name }}/etc/lavoisier-hidden.properties
line='contact.email={{ contact_email }}'
regexp='^contact.email='
state=present
- name: Copy etc/argo-config.properties file
template: src=argo-config.properties.j2
dest={{ lavoisier_home }}/{{ argo_web }}-{{ branch_name }}/etc/argo-config.properties
owner=root group=root mode=0644
notify: restart webui
- name: Configure etc/security/passwords.properties
......
############################################
# Okeanos API methods
###########################################
# Base.Prod.Api=https://{{ argo_api_host }}/api/v1/
# Base.Test.Api=https://{{ argo_api_host }}/api/v2/
### Generic Url Availability
api.group.availability=https://{{ argo_api_host }}/api/v2/results/
api.service.availability=https://{{ argo_api_host }}/api/v2/results/
api.output.details=https://{{ argo_api_host }}/api/v2/metric_result/
###Generic Url STATUS
api.status.url=https://{{ argo_api_host }}/api/v2/status/
### Factors
api.custom.factors=https://{{ argo_api_host }}/api/v2/factors
### RECOMPUTATION
api.recomputation.url=https://{{ argo_api_host }}/api/v2/recalculate
api.recomputation.history.url=https://{{ argo_api_host }}/api/v2/get_recalculation_requests
### PROFILES
api.availabilities.profiles=http://argo.egi.eu/lavoisier/listProfilesRaw?accept=xml
api.aggregation_profiles=https://{{ argo_api_host }}/api/v2/aggregation_profiles
api.reports=https://{{ argo_api_host }}/api/v2/reports
####################
# MON.EGI.EU
#####################
api.monthly.sites.cern=http://mon.egi.eu/mywlcg/sam-pi/group_availability_in_profile/?profile_name=ROC_CRITICAL&vo_name=ops&group_type=Site&start_time=2014-05-01T00:00:00Z&end_time=2016-01-01T00:00:00Z&type=MONTHLY&output=xml
api.monthly.sites.argo=https://{{ argo_api_host }}/api/v2/group_availability?group_type=site&start_time=2014-05-01T10:00:00Z&end_time=2016-10-02T10:00:00Z&granularity=MONTHLY&output=XML&availability_profile=test-ap1
api.monthly.sites.cern.cloud=http://mon.egi.eu/mywlcg/sam-pi/group_availability_in_profile/?profile_name=CLOUD-MON&vo_name=ops&group_type=Site&start_time=2014-05-01T00:00:00Z&end_time=2016-01-01T00:00:00Z&type=MONTHLY&output=xml
api.monthly.sites.argo.cloud=https://{{ argo_api_host }}/api/v2/group_availability?group_type=site&start_time=2014-05-01T10:00:00Z&end_time=2016-10-02T10:00:00Z&granularity=MONTHLY&output=XML&availability_profile=egi-fedcloud
########################
# GOC DB
######################
goc.siteList=https://{{ gocdb_endpoint }}/gocdbpi/private/?method=get_site&certification_status={{ gocdb_certification }}&production_status={{ gocdb_production }}
goc.ngiContactsList=https://{{ gocdb_endpoint }}/gocdbpi/private/?method=get_roc_contacts
goc.serviceFlavours=https://{{ gocdb_endpoint }}/gocdbpi/public/?method=get_service_types
goc.hostList=https://{{ gocdb_endpoint }}/gocdbpi/public/?method=get_service
# location of the caches for the data
cache.baseDirectory={{ cache_directory }}
# Certificate path and associated password (accepted formats p12 and pem)
certificate.password={{ certificate_password }}
certificate.path={{ certificate_path }}
# Path to the CA , used for ssl authentication
lavoisier.ssl.trustStore={{ truststore_path }}
# Path to the host certificate for the trusted authentication , could be the same value than certificate
lavoisier.ssl.keyStore={{ keystore_path }}
lavoisier.ssl.keyStorePassword={{ keystore_password }}
# Key used to interact with the ARGO API
argo.api.key={{ argo_api_key }}
# Host of the service, used to generate relative urls
server.baseUrl=http://{{ inventory_hostname }}
# Email contact used to send emails for recomputation
contact.email={{ contact_email }}
---
certificate_password: change_me
keystore_password: change_me
\ No newline at end of file
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