First commit
parent
11a4d602e4
commit
f477ad7506
@ -1,2 +1,6 @@
|
||||
---
|
||||
# defaults file for ansible-role-template
|
||||
web_document_root: '/var/www//html'
|
||||
web_page_title: "D4Science Service"
|
||||
|
||||
#d4science_running_services: []
|
||||
# - { url: 'service', desc: 'service description' }
|
||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
@ -1,46 +1,37 @@
|
||||
galaxy_info:
|
||||
author: your name
|
||||
description: your description
|
||||
company: your company (optional)
|
||||
author: Andrea Dell'Amico
|
||||
description: Systems Architect
|
||||
company: ISTI-CNR
|
||||
|
||||
# If the issue tracker for your role is not on github, uncomment the
|
||||
# next line and provide a value
|
||||
issue_tracker_url: https://support.d4science.org/projects/automatic-provisioning/issues
|
||||
issue_tracker_url: https://redmine-s2i2s.isti.cnr.it/projects/provisioning
|
||||
|
||||
license: EUPL-1.2
|
||||
license: EUPL 1.2+
|
||||
|
||||
min_ansible_version: 2.8
|
||||
|
||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||
# min_ansible_container_version:
|
||||
|
||||
# Optionally specify the branch Galaxy will use when accessing the GitHub
|
||||
# repo for this role. During role install, if no tags are available,
|
||||
# Galaxy will use this branch. During import Galaxy will access files on
|
||||
# this branch. If Travis integration is configured, only notifications for this
|
||||
# branch will be accepted. Otherwise, in all cases, the repo's default branch
|
||||
# (usually master) will be used.
|
||||
#github_branch:
|
||||
|
||||
#
|
||||
# Provide a list of supported platforms, and for each platform a list of versions.
|
||||
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
|
||||
# To view available platforms and versions (or releases), visit:
|
||||
# https://galaxy.ansible.com/api/v1/platforms/
|
||||
#
|
||||
platforms:
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
- bionic
|
||||
|
||||
galaxy_tags: []
|
||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
||||
# remove the '[]' above, if you add tags to this list.
|
||||
#
|
||||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
||||
# Maximum 20 tags per role.
|
||||
|
||||
dependencies: []
|
||||
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
|
||||
# if you add dependencies to this list.
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
- bionic
|
||||
- name: EL
|
||||
versions:
|
||||
- 7
|
||||
- 8
|
||||
|
||||
galaxy_tags:
|
||||
- users
|
||||
|
||||
dependencies:
|
||||
- src: git+https://gitea-s2i2s.isti.cnr.it/ISTI-ansible-roles/ansible-role-nginx.git
|
||||
version: master
|
||||
name: nginx
|
||||
state: latest
|
||||
when: nginx_enabled is defined and nginx_enabled
|
||||
- src: git+https://gitea-s2i2s.isti.cnr.it/ISTI-ansible-roles/ansible-role-apache.git
|
||||
version: master
|
||||
name: apache
|
||||
state: latest
|
||||
when: apache_service_enabled is defined and apache_service_enabled
|
||||
|
@ -1,2 +1,15 @@
|
||||
---
|
||||
# tasks file for ansible-role-template
|
||||
- block:
|
||||
- name: Create the web document root if it does not exists
|
||||
file: dest={{ web_document_root }} state=directory
|
||||
|
||||
- name: Copy the CSS and images under the http server document web root in smartgears nodes
|
||||
copy: src={{ item }} dest={{ web_document_root }}/ force=yes owner=root group=root
|
||||
with_items:
|
||||
- images
|
||||
- css
|
||||
|
||||
- name: Install the index.html file
|
||||
template: src=index.html.j2 dest={{ web_document_root }}/index.html owner=root group=root mode=0644
|
||||
|
||||
tags: [ 'nginx', 'apache', 'web_document_index' ]
|
||||
|
@ -0,0 +1,125 @@
|
||||
{% raw %}
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<link rel="shortcut icon" type="image/png" href="favicon.ico" />
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="css/bootstrap.min.css">
|
||||
|
||||
{% endraw %}
|
||||
<title>{{ web_page_title }}</title>
|
||||
{% raw %}
|
||||
</head>
|
||||
<body>
|
||||
<div
|
||||
class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom box-shadow">
|
||||
<h5 class="my-0 mr-md-auto font-weight-normal">
|
||||
<img style="width: 65px;" alt="D4Science" src="images/_d4science.png">D4Science
|
||||
</h5>
|
||||
<nav class="my-2 my-md-0 mr-md-3">
|
||||
<a class="p-2 text-dark" href="#">Don't have a D4Science account?</a>
|
||||
</nav>
|
||||
<a class="btn btn-outline-primary"
|
||||
href="https://services.d4science.org/home?p_p_id=58&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=2&saveLastPath=false&_58_struts_action=%2Flogin%2Fcreate_account"
|
||||
target="_blank">Create one</a>
|
||||
</div>
|
||||
{% endraw %}
|
||||
|
||||
{% if d4science_running_services is defined %}
|
||||
{% for ctx in d4science_running_services %}
|
||||
<div
|
||||
class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
|
||||
<h1 class="display-4">{{ ctx.desc }}</h1>
|
||||
<p class="lead">Welcome to the
|
||||
<a class="text-muted"
|
||||
href="/{{ ctx.url }}"
|
||||
target="_blank">{{ ctx.desc }}</a>
|
||||
service hosted by D4Science.
|
||||
</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% if smartgears_tomcat_contexts is defined %}
|
||||
{% for ctx in smartgears_tomcat_contexts %}
|
||||
<div
|
||||
class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
|
||||
<h1 class="display-4">{{ ctx }}</h1>
|
||||
<p class="lead">Welcome to the
|
||||
<a class="text-muted"
|
||||
href="/{{ ctx }}"
|
||||
target="_blank">{{ ctx }}</a>
|
||||
service hosted by D4Science.
|
||||
</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% raw %}
|
||||
<div class="mx-auto text-center">
|
||||
<p class="lead">
|
||||
Could not find what you are looking for? Visit the <a
|
||||
href="https://dev.d4science.org/support" target="_blank">Help
|
||||
Forum</a> or <a href="https://www.d4science.org/contact-us"
|
||||
target="_blank">Contact us</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<footer class="pt-4 my-md-5 pt-md-5 border-top">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md">
|
||||
<small class="d-block mb-3 text-muted"> ©
|
||||
2017-2019</small>
|
||||
</div>
|
||||
<div class="col-6 col-md">
|
||||
<h5>Legal</h5>
|
||||
<ul class="list-unstyled text-small">
|
||||
<li><a class="text-muted"
|
||||
href="https://www.iubenda.com/privacy-policy/441050"
|
||||
target="_blank">Privacy</a></li>
|
||||
<li><a class="text-muted"
|
||||
href="https://services.d4science.org/terms-of-use" target="_blank">Terms
|
||||
of Use</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-6 col-md">
|
||||
<h5>About</h5>
|
||||
<ul class="list-unstyled text-small">
|
||||
<li><a class="text-muted"
|
||||
href="https://www.d4science.org/about-d4science" target="_blank">What
|
||||
is D4Science</a></li>
|
||||
<li><a class="text-muted"
|
||||
href="https://www.d4science.org/empowering" target="_blank">Supported
|
||||
Projects</a></li>
|
||||
<li><a class="text-muted" target="_blank"
|
||||
href="https://services.d4science.org/explore">Supported VREs</a></li>
|
||||
<li><a class="text-muted" target="_blank"
|
||||
href="https://services.d4science.org/catalogue">Resource
|
||||
Catalouge</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-6 col-md">
|
||||
<h5>Data Scientists</h5>
|
||||
<ul class="list-unstyled text-small">
|
||||
<li><a class="text-muted" href="https://dev.d4science.org"
|
||||
target="_blank">Available REST APIs</a></li>
|
||||
<li><a class="text-muted"
|
||||
href="https://dev.d4science.org/authorization/" target="_blank">Authorization
|
||||
Framework</a></li>
|
||||
<li><a class="text-muted" href="https://dev.d4science.org/"
|
||||
target="_blank">Data Analysis through Data Miner</a></li>
|
||||
<li><a class="text-muted" href="https://dev.d4science.org/"
|
||||
target="_blank">Spatial Data Infrastructure</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
{% endraw %}
|
Loading…
Reference in New Issue