forked from ISTI-ansible-roles/ansible-roles
library/roles/smartgears/r_connector: Install the adduser script, really.
library/roles/smartgears/smartgears/templates/container.xml.j2: The VO can be a list. Change the default and the template.
This commit is contained in:
parent
bd1808560c
commit
31c6288e85
|
@ -9,20 +9,25 @@
|
|||
when: smartgears_upgrade or not r_connector_install
|
||||
|
||||
- name: Get the R connector war file
|
||||
get_url: url={{ ckan_connector_url }} dest={{ smartgears_instance_path }}/webapps/{{ ckan_connector_war_file }}
|
||||
get_url: url={{ r_connector_url }} dest={{ smartgears_instance_path }}/webapps/{{ r_connector_war_file }}
|
||||
|
||||
- name: Unpack the R connector war file
|
||||
shell: mkdir {{ smartgears_instance_path }}/webapps/r-connector ; cd {{ smartgears_instance_path }}/webapps/r-connector ; jar xf {{ smartgears_instance_path }}/webapps/{{ ckan_connector_war_file }}
|
||||
shell: mkdir {{ smartgears_instance_path }}/webapps/r-connector ; cd {{ smartgears_instance_path }}/webapps/r-connector ; jar xf {{ smartgears_instance_path }}/webapps/{{ r_connector_war_file }}
|
||||
args:
|
||||
creates: '{{ smartgears_instance_path }}/webapps/r-connector/WEB-INF/web.xml'
|
||||
|
||||
- name: Obtain the permission to read the Rstudio secure cookie key
|
||||
become: False
|
||||
file: dest={{ r_connector_rstudio_cookie_key }} mode=640 group={{ smartgears_user }}
|
||||
|
||||
- name: Install the R connector web.xml template
|
||||
template: src=r-web.xml.j2 dest={{ smartgears_instance_path }}/webapps/r-connector/WEB-INF/web.xml mode=0440
|
||||
notify: Restart smartgears
|
||||
|
||||
- name: Install the R add users script
|
||||
become: False
|
||||
template: src=rusersadd.j2 dest={{ r_connector_adduserscript }} owner=root group=root mode=0555
|
||||
|
||||
become: True
|
||||
become_user: '{{ smartgears_user }}'
|
||||
when: r_connector_install
|
||||
|
|
|
@ -19,10 +19,12 @@ smartgears_distribution_version: 1.2.8-4.0.0-129615
|
|||
smartgears_file: 'smartgears-distribution-{{ smartgears_distribution_version }}.tar.gz'
|
||||
smartgears_url: 'http://maven.research-infrastructures.eu/nexus/content/repositories/{{ gcube_repository }}/org/gcube/distribution/smartgears-distribution/{{ smartgears_distribution_version }}/{{ smartgears_file }}'
|
||||
smartgears_mode: online
|
||||
smartgears_application_mode: online
|
||||
# Production infra and VO
|
||||
smartgears_infrastructure_name: "d4science.research-infrastructures.eu"
|
||||
smartgears_vo: True
|
||||
smartgears_vo_name: gCubeApps
|
||||
smartgears_vo_name:
|
||||
- gCubeApps
|
||||
smartgears_hostname: '{{ ansible_fqdn }}'
|
||||
smartgears_country: it
|
||||
smartgears_location: pisa
|
||||
|
|
|
@ -12,7 +12,9 @@
|
|||
{% endif %}
|
||||
<infrastructure>{{ smartgears_infrastructure_name }}</infrastructure>
|
||||
{% if smartgears_vo %}
|
||||
<vo>{{ smartgears_vo_name }}</vo>
|
||||
{% for vo_n in smartgears_vo_name %}
|
||||
<vo>{{ vo_n }}</vo>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<site>
|
||||
|
@ -25,13 +27,15 @@
|
|||
<property name='SmartGearsDistributionBundle' value='UnBundled' />
|
||||
<property name='SmartGearsDistribution' value='{{ smartgears_distribution_version }}' />
|
||||
<publication-frequency>60</publication-frequency>
|
||||
{% if smartgears_define_context_vo %}
|
||||
|
||||
<application mode="{{ smartgears_mode }}" context="{{ smartgears_context }}">
|
||||
{% if smartgears_define_context_vo %}
|
||||
<application mode="{{ smartgears_application_mode }}" context="{{ smartgears_context }}">
|
||||
{% for vo_n in smartgears_vo_name %}
|
||||
{% for context in smartgears_contexts_list %}
|
||||
<scope>/{{ smartgears_infrastructure_name }}/{{ smartgears_vo_name }}{{ context }}</scope>
|
||||
<scope>/{{ smartgears_infrastructure_name }}/{{ vo_n }}{{ context }}</scope>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</application>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
</container>
|
||||
|
|
Loading…
Reference in New Issue