From 793abde45636a2d32686094120cff8e06dcefc4f Mon Sep 17 00:00:00 2001 From: Loic Baron Date: Thu, 14 Apr 2016 22:59:39 +0200 Subject: [PATCH] OneLab templates: documentation link on the dashboard & changed port for manual delegation doc --- portal/templates/onelab/onelab_home-view.html | 151 ++++++++++++++++++ .../onelab/onelab_manual-delegation.html | 102 ++++++++++++ 2 files changed, 253 insertions(+) create mode 100644 portal/templates/onelab/onelab_home-view.html create mode 100644 portal/templates/onelab/onelab_manual-delegation.html diff --git a/portal/templates/onelab/onelab_home-view.html b/portal/templates/onelab/onelab_home-view.html new file mode 100644 index 00000000..c98ee918 --- /dev/null +++ b/portal/templates/onelab/onelab_home-view.html @@ -0,0 +1,151 @@ +{% extends "layout_base.html" %} +{% load portal_filters %} + +{% block content %} + +{% if username %} + +{% block head %} + +{% endblock head %} + +{% widget "_widget-no_credentials.html" %} +
+
+ +
+
+
+

+ EXPERIMENT +

+
+ Create/Join project +
+ +
+ Your projects and slices +   + +
Loading projects
+
+ {% include theme|add:"_jfed_button.html" %} +
+
+
+
+

+ ACCOUNT +

+ {% if person.last_name %} +

+ {{person.first_name}} {{person.last_name}} +

+ {% endif %} +

+ {{person.email}} +

+
+
+
+
+

+ MANAGEMENT +

+ + +
+
+
+
+
+
+

+ SUPPORT +

+

+ Contact +

+

+ Documentation & Tutorials +

+ {% include theme|add:"_dashboard_links.html" %} +
+
+
+
+
+{% else %} +
+
+
+ {% widget '_slogan.html' %} +
+
+ {% widget '_widget-login-user.html' %} +
+
+
+
+
+ + + +{% endif %} + + + + + + + + +{% if theme == 'onelab' %} +{% widget "_widget-monitor.html" %} +{% endif %} +{% endblock %} diff --git a/portal/templates/onelab/onelab_manual-delegation.html b/portal/templates/onelab/onelab_manual-delegation.html new file mode 100644 index 00000000..f0d479cd --- /dev/null +++ b/portal/templates/onelab/onelab_manual-delegation.html @@ -0,0 +1,102 @@ +{% extends "layout.html" %} + +{% block content %} + +
+
+

Manual Delegation

+

Install SFA

+ +

+ In order to delegate your credentials to the OneLab portal, you need to install SFA tools.
+

+

+ [Requirement: python 2.7 or higher] +

+

For Mac and Linux

+

+ $ sudo easy_install pip
+ $ sudo pip install sfa +

+

For Windows

+

Please download get-pip.py

+

+ $ python get-pip.py
+ $ pip install sfa +

+ +

+ To get more information about pip, please visit: https://pip.pypa.io/en/latest/installing.html +

+

+ More details about SFA is available at the following address: + Installing SFA +

+ +

Configuring SFA

+ +

+ Once SFA tools are successfully installed, you need to configure the SFA client aka SFI +

+

+ $ mkdir ~/.sfi
+ $ cd ~/.sfi
+ $ cp ~/.ssh/id_rsa ~/.sfi/user-hrn.pkey +

+ +

+ Here, 'user-hrn' is your SFA hrn. If e.g., your OneLab account email is mohammed-yasin.rahman at upmc.fr, then your user-hrn is 'onelab.upmc.mohammed-yasin_rahman'.

+

+ In this example, a user-hrn is built using the root authority i.e, 'onelab' followed by a '.' then the sub authority i.e., 'upmc' + followed by a '.' and then the last fragment in the hrn is made of the local part of your email adress i.e., 'mohammed-yasin_rahman' + (with dots replaced with underscores). +

+ +

+ Next, you will setup your ~/.sfi/sfi_config. The following represents the sfi_config file for a OneLab user: +

+ +

+ [sfi]
+ auth = onelab.upmc
+ user = onelab.upmc.mohammed-yasin_rahman
+ registry = http://portal.onelab.eu:6080/
+ sm = http://sfa3.planet-lab.eu:12346/
+

+ +

+ Here again, 'user' is your user-hrn, and 'auth' is the authority that you belong to, in most cases you should just drop the last part of your hrn. +

+

+ Add the the following to sfi_config for delegating credentials to OneLab portal: +

+

+ [myslice]
+
+ backend = http://portal.onelab.eu:7080
+ delegate = onelab.myslice
+ platform = myslice
+ username = mohammed-yasin.rahman@lip6.fr +

+

+ Test the SFA layer: +

+

+ $ sfi.py version +

+

+ And finally delegate your credentials to the portal +

+

+ $ sfi.py myslice +

+

+ The complete tutorial is available at the following address: + http://trac.myslice.info/wiki/InstallSfa +

+ +
+ +
+{% endblock %} + -- 2.43.0