From 9d5489c82e4ca730d242c1d13893a11b45cacae1 Mon Sep 17 00:00:00 2001 From: Sandrine Avakian Date: Wed, 18 Jul 2012 11:29:12 +0200 Subject: [PATCH] Modified bash_nukem to handle the different configs of our 2 sfa vm (senslab and senslab2). Added configuration files for sfa-vm (NT's vm) and created folder to hold each different configuration fiels. --- sfa/senslab/config/bash_nukem | 40 ++- sfa/senslab/config/senslab/default_config.xml | 324 ++++++++++++++++++ sfa/senslab/config/senslab/sfa_config | 151 ++++++++ sfa/senslab/config/senslab/sfa_config.xml | 253 ++++++++++++++ sfa/senslab/config/senslab/site.xml | 86 +++++ .../config/senslab2/default_config.xml | 324 ++++++++++++++++++ sfa/senslab/config/senslab2/sfa_config | 151 ++++++++ sfa/senslab/config/senslab2/sfa_config.xml | 253 ++++++++++++++ sfa/senslab/config/senslab2/site.xml | 86 +++++ 9 files changed, 1660 insertions(+), 8 deletions(-) create mode 100644 sfa/senslab/config/senslab/default_config.xml create mode 100644 sfa/senslab/config/senslab/sfa_config create mode 100644 sfa/senslab/config/senslab/sfa_config.xml create mode 100644 sfa/senslab/config/senslab/site.xml create mode 100644 sfa/senslab/config/senslab2/default_config.xml create mode 100644 sfa/senslab/config/senslab2/sfa_config create mode 100644 sfa/senslab/config/senslab2/sfa_config.xml create mode 100644 sfa/senslab/config/senslab2/site.xml diff --git a/sfa/senslab/config/bash_nukem b/sfa/senslab/config/bash_nukem index 19a01070..96802a34 100755 --- a/sfa/senslab/config/bash_nukem +++ b/sfa/senslab/config/bash_nukem @@ -1,7 +1,33 @@ #!/bin/bash -git_local_repo=~/flab-sfa -# First things first : +# Configuration first : set the local repository +# where the code can be found +# Test number of arguments +if (( ! $# == 2 )) +then + echo " Usage : bash_nukem repository_directory vm (should be senslab or senslab2)" + echo $# + exit +fi + +# Check if directory exists +if [ -d $1 ] +then + git_local_repo=$1 + echo "RESPOSITORY: " $git_local_repo + cd $git_local_repo +fi + +# Set which vm we are working on (sfa-vm or sfa-vm2) +if [[ $2 = "senslab" || $2 = "senslab2" ]] +then + vm=$2 + echo $vm +else + echo "Vm options should be senslab or senslab2, not " $2 + exit +fi + # Nuke the database sudo sfaadmin.py registry nuke @@ -19,10 +45,7 @@ cd /etc/sfa sudo rm -rf * sudo service sfa restart - - # Put back the config file that you saved before -cd $git_local_repo sudo make clean make @@ -35,12 +58,13 @@ sudo python setup.py install # and /etc/sfa/configs/site.xml # into /etc/sfa/sfa_config.xml # sudo sfa-config-tty -sudo cp $git_local_repo/sfa/senslab/config/sfa_config /etc/sfa/sfa_config -sudo cp $git_local_repo/sfa/senslab/config/sfa_config.xml /etc/sfa/sfa_config.xml -sudo cp $git_local_repo/sfa/senslab/config/site.xml /etc/sfa/site.xml +sudo cp $git_local_repo/sfa/senslab/config/$vm/sfa_config /etc/sfa/sfa_config +sudo cp $git_local_repo/sfa/senslab/config/$vm/sfa_config.xml /etc/sfa/sfa_config.xml +sudo cp $git_local_repo/sfa/senslab/config/$vm/site.xml /etc/sfa/site.xml # sudo ln -s ldap_config.py /etc/sfa/ldap_config.py sudo cp $git_local_repo/sfa/senslab/config/ldap_config.py /etc/sfa/ldap_config.py sudo service sfa restart + # User stuff : clean your folder cd ~/.sfi rm *.sscert *.cred *.gid sfi_cache.dat diff --git a/sfa/senslab/config/senslab/default_config.xml b/sfa/senslab/config/senslab/default_config.xml new file mode 100644 index 00000000..b08f738e --- /dev/null +++ b/sfa/senslab/config/senslab/default_config.xml @@ -0,0 +1,324 @@ + + + + + + + + + + + + General + Basic system variables. + + + + Generic Flavour + pl + This string refers to a class located in sfa.generic that describes + which specific implementation needs to be used for api, manager and driver objects. + PlanetLab users do not need to change this setting. + + + + + Human readable name + plc + The human readable name for this interface. + + + + Credential Schema + /etc/sfa/credential.xsd + The path to the default credential schema + + + + Debug + 0 + Logging level; 0=minimum, 1=info, 2=debug + + + + Max Slice Renew + 60 + Maximum amout of days a user can extend/renew their slices to + + + + User Session Keys Path + /var/lib/sfa/session_keys + Some services will peform operations on behalf of a user, but make + it look like the user is the one performing the operation. Doing this requires a + valid key pair and credential for the user. This option defines the path where + key pairs and credentials are generated and stored. + This functionality is used by the SFA web GUI. + + + + + + + + + Registry + The settings that affect the registry that will run + as part of this SFA instance. + + + + Enable Registry + true + Allows this local SFA instance to run as a + registry. + + + + Hostname + localhost + The hostname where the registry is expected to + be found; using localhost when the local registry is enabled + seems reasonable. + + + + Port number + 12345 + The port where the registry is to be found. + + + + Root Authority + plc + The hrn of the registry's root auth. + + + + + + + + Slice Manager + The settings that affect the slice manager that will run + as part of this SFA instance. + + + + Enable Slice Manager + true + Allows this local SFA instance to run as a + slice manager. + + + + Hostname + localhost + The hostname where the slice manager is expected to + be found. + + + + Port number + 12347 + The port where the slice manager is to be found. + + + + Cache advertisement rspec + false + Enable caching of the global advertisement, as + returned by ListResources without a slice argument. + + + + + + + + Aggregate + The settings that affect the aggregate manager that will run + as part of this SFA instance. + + + + Enable Aggregate + true + Allows this local SFA instance to run as an + aggregate manager. + + + + Hostname + localhost + The hostname where the aggregate is expected to + be found. + + + + Port number + 12346 + The port where the aggregate is to be found. + + + + Cache advertisement rspec + true + Enable caching of the global advertisement, as + returned by ListResources without a slice argument. + + + + + + + + + + The settings that tell this SFA instance where to find its database. You can essentially leave this as-is unless you plan on hosting your data on some other box. + + + + Enabled + true + Enable the database server on this machine. + + + + Database host + localhost + The host where the SFA database can be reached. + + + + Database port + 5432 + The port where the SFA database can be reached. + + + + Database user + sfadbuser + When SFA gets co-hosted with a myplc, this should match the PLC config. + + + + Database password + + When SFA gets co-hosted with a myplc, this should match the PLC config. + + + + Database name + sfa + SFA database name. + + + + + + + + + SFA Flash Policy + The settings that affect the flash policy server that will run + as part of this SFA instance. + + + + Enable Flash Policy Server + false + Allows this local SFA instance to run a + flash policy server. + + + Flash policy config file + /etc/sfa/sfa_flashpolicy_config.xml + The path to where the flash policy config file can be reached. + + + Flash policy port + 843 + The flash policy server port. + + + + + + + + The settings that tell this SFA instance how to interact with the underlying PLC. Refer to plc-config-tty on this installation for more information. + + + + PLC login name for an admin user; SFA will carry on operations under this account. + root@localhost.localdomain + + + + + Password + root + The PLC password for SFA_PLC_USER. + + + + URL + https://localhost:443/PLCAPI/ + Full URL of PLC interface. + + + + + + + + + The settings that tell this SFA instance how to interact with the FEDERICA testbed. + + + + XMLRPC URL + https://root:password@federica.sfa.wrapper.com:8443/fedewrapper/xmlrpc/ + URL for the federica xmlrpc API; login and password need to be set like in http://login:password@hostname:port/the/path + + + + + + + SFA Flash Policy + The settings that affect how SFA connects to + the Nova/EC2 API + + + Sfa nova user + novaadmin + Account/context to use when performing + administrative nova operations + + + Nova API url + 127.0.0.1 + The Nova/EC2 API url + + + Nova API Port + 8773 + The Nova/EC2 API port. + + + + + + + + + + + diff --git a/sfa/senslab/config/senslab/sfa_config b/sfa/senslab/config/senslab/sfa_config new file mode 100644 index 00000000..2ded2d4a --- /dev/null +++ b/sfa/senslab/config/senslab/sfa_config @@ -0,0 +1,151 @@ +# DO NOT EDIT. This file was automatically generated at +# Mon Jun 25 15:01:21 2012 from: +# +# /etc/sfa/sfa_config.xml + +# XMLRPC URL +# URL for the federica xmlrpc API; login and password need to be set +# like in http://login:password@hostname:port/the/path +SFA_FEDERICA_URL='https://root:password@federica.sfa.wrapper.com:8443/fedewrapper/xmlrpc/' + +# Cache advertisement rspec +# Enable caching of the global advertisement, as returned by +# ListResources without a slice argument. +SFA_AGGREGATE_CACHING=1 + +# Hostname +# The hostname where the aggregate is expected to be found. +SFA_AGGREGATE_HOST='localhost' + +# Enable Aggregate +# Allows this local SFA instance to run as an aggregate manager. +SFA_AGGREGATE_ENABLED=1 + +# Port number +# The port where the aggregate is to be found. +SFA_AGGREGATE_PORT=12346 + +# Database name +# SFA database name. +SFA_DB_NAME='sfa' + +# Enabled +# Enable the database server on this machine. +SFA_DB_ENABLED=1 + +# Database host +# The host where the SFA database can be reached. +SFA_DB_HOST='localhost' + +# Database user +# When SFA gets co-hosted with a myplc, this should match the PLC +# config. +SFA_DB_USER='sfa' + +# Database password +# When SFA gets co-hosted with a myplc, this should match the PLC +# config. +SFA_DB_PASSWORD='sfa' + +# Database port +# The port where the SFA database can be reached. +SFA_DB_PORT=5432 + +# Flash policy config file +# The path to where the flash policy config file can be reached. +SFA_FLASHPOLICY_CONFIG_FILE='/etc/sfa/sfa_flashpolicy_config.xml' + +# Enable Flash Policy Server +# Allows this local SFA instance to run a flash policy server. +SFA_FLASHPOLICY_ENABLED=0 + +# Flash policy port +# The flash policy server port. +SFA_FLASHPOLICY_PORT=843 + +# Nova API Port +# The Nova/EC2 API port. +SFA_NOVA_API_PORT=8773 + +# Sfa nova user +# Account/context to use when performing administrative nova operations +SFA_NOVA_USER='novaadmin' + +# Nova API url +# The Nova/EC2 API url +SFA_NOVA_API_URL='127.0.0.1' + +# URL +# Full URL of PLC interface. +SFA_PLC_URL='https://localhost:443/PLCAPI/' + +# Password +# The PLC password for SFA_PLC_USER. +SFA_PLC_PASSWORD='root' + +# PLC login name for an admin user; SFA will carry on operations under this account. +SFA_PLC_USER='root@localhost.localdomain' + +# Root Authority +# The hrn of the registry's root auth. +SFA_REGISTRY_ROOT_AUTH='senslab' + +# Hostname +# The hostname where the registry is expected to be found; using +# localhost when the local registry is enabled seems reasonable. +SFA_REGISTRY_HOST='localhost' + +# Enable Registry +# Allows this local SFA instance to run as a registry. +SFA_REGISTRY_ENABLED=1 + +# Port number +# The port where the registry is to be found. +SFA_REGISTRY_PORT=12345 + +# Cache advertisement rspec +# Enable caching of the global advertisement, as returned by +# ListResources without a slice argument. +SFA_SM_CACHING=0 + +# Hostname +# The hostname where the slice manager is expected to be found. +SFA_SM_HOST='localhost' + +# Enable Slice Manager +# Allows this local SFA instance to run as a slice manager. +SFA_SM_ENABLED=1 + +# Port number +# The port where the slice manager is to be found. +SFA_SM_PORT=12347 + +# Human readable name +# The human readable name for this interface. +SFA_INTERFACE_HRN='senslab' + +# Generic Flavour +# This string refers to a class located in sfa.generic that describes +# which specific implementation needs to be used for api, manager and +# driver objects. PlanetLab users do not need to change this setting. +SFA_GENERIC_FLAVOUR='slab' + +# Credential Schema +# The path to the default credential schema +SFA_CREDENTIAL_SCHEMA='/etc/sfa/credential.xsd' + +# Debug +# Logging level; 0=minimum, 1=info, 2=debug +SFA_API_LOGLEVEL=0 + +# User Session Keys Path +# Some services will peform operations on behalf of a user, but make it +# look like the user is the one performing the operation. Doing this +# requires a valid key pair and credential for the user. This option +# defines the path where key pairs and credentials are generated and +# stored. This functionality is used by the SFA web GUI. +SFA_SESSION_KEY_PATH='/var/lib/sfa/session_keys' + +# Max Slice Renew +# Maximum amout of days a user can extend/renew their slices to +SFA_MAX_SLICE_RENEW=60 diff --git a/sfa/senslab/config/senslab/sfa_config.xml b/sfa/senslab/config/senslab/sfa_config.xml new file mode 100644 index 00000000..3283e12b --- /dev/null +++ b/sfa/senslab/config/senslab/sfa_config.xml @@ -0,0 +1,253 @@ + + + + + General + Basic system variables. + + + Generic Flavour + slab + This string refers to a class located in sfa.generic that describes + which specific implementation needs to be used for api, manager and driver objects. + PlanetLab users do not need to change this setting. + + + + Human readable name + senslab + The human readable name for this interface. + + + Credential Schema + /etc/sfa/credential.xsd + The path to the default credential schema + + + Debug + 0 + Logging level; 0=minimum, 1=info, 2=debug + + + Max Slice Renew + 60 + Maximum amout of days a user can extend/renew their slices to + + + User Session Keys Path + /var/lib/sfa/session_keys + Some services will peform operations on behalf of a user, but make + it look like the user is the one performing the operation. Doing this requires a + valid key pair and credential for the user. This option defines the path where + key pairs and credentials are generated and stored. + This functionality is used by the SFA web GUI. + + + + + + Registry + The settings that affect the registry that will run + as part of this SFA instance. + + + Enable Registry + true + Allows this local SFA instance to run as a + registry. + + + Hostname + localhost + The hostname where the registry is expected to + be found; using localhost when the local registry is enabled + seems reasonable. + + + Port number + 12345 + The port where the registry is to be found. + + + Root Authority + senslab + The hrn of the registry's root auth. + + + + + Slice Manager + The settings that affect the slice manager that will run + as part of this SFA instance. + + + Enable Slice Manager + true + Allows this local SFA instance to run as a + slice manager. + + + Hostname + localhost + The hostname where the slice manager is expected to + be found. + + + Port number + 12347 + The port where the slice manager is to be found. + + + Cache advertisement rspec + false + Enable caching of the global advertisement, as + returned by ListResources without a slice argument. + + + + + Aggregate + The settings that affect the aggregate manager that will run + as part of this SFA instance. + + + Enable Aggregate + true + Allows this local SFA instance to run as an + aggregate manager. + + + Hostname + localhost + The hostname where the aggregate is expected to + be found. + + + Port number + 12346 + The port where the aggregate is to be found. + + + Cache advertisement rspec + true + Enable caching of the global advertisement, as + returned by ListResources without a slice argument. + + + + + + The settings that tell this SFA instance where to find its database. You can essentially leave this as-is unless you plan on hosting your data on some other box. + + + Enabled + true + Enable the database server on this machine. + + + Database host + localhost + The host where the SFA database can be reached. + + + Database port + 5432 + The port where the SFA database can be reached. + + + Database user + sfa + When SFA gets co-hosted with a myplc, this should match the PLC config. + + + Database password + sfa + When SFA gets co-hosted with a myplc, this should match the PLC config. + + + Database name + sfa + SFA database name. + + + + + SFA Flash Policy + The settings that affect the flash policy server that will run + as part of this SFA instance. + + + Enable Flash Policy Server + false + Allows this local SFA instance to run a + flash policy server. + + + Flash policy config file + /etc/sfa/sfa_flashpolicy_config.xml + The path to where the flash policy config file can be reached. + + + Flash policy port + 843 + The flash policy server port. + + + + + + The settings that tell this SFA instance how to interact with the underlying PLC. Refer to plc-config-tty on this installation for more information. + + + PLC login name for an admin user; SFA will carry on operations under this account. + root@localhost.localdomain + + + + Password + root + The PLC password for SFA_PLC_USER. + + + URL + https://localhost:443/PLCAPI/ + Full URL of PLC interface. + + + + + + The settings that tell this SFA instance how to interact with the FEDERICA testbed. + + + XMLRPC URL + https://root:password@federica.sfa.wrapper.com:8443/fedewrapper/xmlrpc/ + URL for the federica xmlrpc API; login and password need to be set like in http://login:password@hostname:port/the/path + + + + + SFA Flash Policy + The settings that affect how SFA connects to + the Nova/EC2 API + + + Sfa nova user + novaadmin + Account/context to use when performing + administrative nova operations + + + Nova API url + 127.0.0.1 + The Nova/EC2 API url + + + Nova API Port + 8773 + The Nova/EC2 API port. + + + + + diff --git a/sfa/senslab/config/senslab/site.xml b/sfa/senslab/config/senslab/site.xml new file mode 100644 index 00000000..7f40ea6a --- /dev/null +++ b/sfa/senslab/config/senslab/site.xml @@ -0,0 +1,86 @@ + + + + + Aggregate + The settings that affect the aggregate manager that will run + as part of this SFA instance. + + + Port number + 12346 + The port where the aggregate is to be found. + + + + + + The settings that tell this SFA instance where to find its database. You can essentially leave this as-is unless you plan on hosting your data on some other box. + + + Database user + sfa + When SFA gets co-hosted with a myplc, this should match the PLC config. + + + Database password + sfa + When SFA gets co-hosted with a myplc, this should match the PLC config. + + + + + Registry + The settings that affect the registry that will run + as part of this SFA instance. + + + Root Authority + senslab + The hrn of the registry's root auth. + + + Port number + 12345 + The port where the registry is to be found. + + + + + Slice Manager + The settings that affect the slice manager that will run + as part of this SFA instance. + + + Port number + 12347 + The port where the slice manager is to be found. + + + + + General + Basic system variables. + + + Human readable name + senslab + The human readable name for this interface. + + + Generic Flavour + slab + This string refers to a class located in sfa.generic that describes + which specific implementation needs to be used for api, manager and driver objects. + PlanetLab users do not need to change this setting. + + + + Debug + 0 + Logging level; 0=minimum, 1=info, 2=debug + + + + + diff --git a/sfa/senslab/config/senslab2/default_config.xml b/sfa/senslab/config/senslab2/default_config.xml new file mode 100644 index 00000000..b08f738e --- /dev/null +++ b/sfa/senslab/config/senslab2/default_config.xml @@ -0,0 +1,324 @@ + + + + + + + + + + + + General + Basic system variables. + + + + Generic Flavour + pl + This string refers to a class located in sfa.generic that describes + which specific implementation needs to be used for api, manager and driver objects. + PlanetLab users do not need to change this setting. + + + + + Human readable name + plc + The human readable name for this interface. + + + + Credential Schema + /etc/sfa/credential.xsd + The path to the default credential schema + + + + Debug + 0 + Logging level; 0=minimum, 1=info, 2=debug + + + + Max Slice Renew + 60 + Maximum amout of days a user can extend/renew their slices to + + + + User Session Keys Path + /var/lib/sfa/session_keys + Some services will peform operations on behalf of a user, but make + it look like the user is the one performing the operation. Doing this requires a + valid key pair and credential for the user. This option defines the path where + key pairs and credentials are generated and stored. + This functionality is used by the SFA web GUI. + + + + + + + + + Registry + The settings that affect the registry that will run + as part of this SFA instance. + + + + Enable Registry + true + Allows this local SFA instance to run as a + registry. + + + + Hostname + localhost + The hostname where the registry is expected to + be found; using localhost when the local registry is enabled + seems reasonable. + + + + Port number + 12345 + The port where the registry is to be found. + + + + Root Authority + plc + The hrn of the registry's root auth. + + + + + + + + Slice Manager + The settings that affect the slice manager that will run + as part of this SFA instance. + + + + Enable Slice Manager + true + Allows this local SFA instance to run as a + slice manager. + + + + Hostname + localhost + The hostname where the slice manager is expected to + be found. + + + + Port number + 12347 + The port where the slice manager is to be found. + + + + Cache advertisement rspec + false + Enable caching of the global advertisement, as + returned by ListResources without a slice argument. + + + + + + + + Aggregate + The settings that affect the aggregate manager that will run + as part of this SFA instance. + + + + Enable Aggregate + true + Allows this local SFA instance to run as an + aggregate manager. + + + + Hostname + localhost + The hostname where the aggregate is expected to + be found. + + + + Port number + 12346 + The port where the aggregate is to be found. + + + + Cache advertisement rspec + true + Enable caching of the global advertisement, as + returned by ListResources without a slice argument. + + + + + + + + + + The settings that tell this SFA instance where to find its database. You can essentially leave this as-is unless you plan on hosting your data on some other box. + + + + Enabled + true + Enable the database server on this machine. + + + + Database host + localhost + The host where the SFA database can be reached. + + + + Database port + 5432 + The port where the SFA database can be reached. + + + + Database user + sfadbuser + When SFA gets co-hosted with a myplc, this should match the PLC config. + + + + Database password + + When SFA gets co-hosted with a myplc, this should match the PLC config. + + + + Database name + sfa + SFA database name. + + + + + + + + + SFA Flash Policy + The settings that affect the flash policy server that will run + as part of this SFA instance. + + + + Enable Flash Policy Server + false + Allows this local SFA instance to run a + flash policy server. + + + Flash policy config file + /etc/sfa/sfa_flashpolicy_config.xml + The path to where the flash policy config file can be reached. + + + Flash policy port + 843 + The flash policy server port. + + + + + + + + The settings that tell this SFA instance how to interact with the underlying PLC. Refer to plc-config-tty on this installation for more information. + + + + PLC login name for an admin user; SFA will carry on operations under this account. + root@localhost.localdomain + + + + + Password + root + The PLC password for SFA_PLC_USER. + + + + URL + https://localhost:443/PLCAPI/ + Full URL of PLC interface. + + + + + + + + + The settings that tell this SFA instance how to interact with the FEDERICA testbed. + + + + XMLRPC URL + https://root:password@federica.sfa.wrapper.com:8443/fedewrapper/xmlrpc/ + URL for the federica xmlrpc API; login and password need to be set like in http://login:password@hostname:port/the/path + + + + + + + SFA Flash Policy + The settings that affect how SFA connects to + the Nova/EC2 API + + + Sfa nova user + novaadmin + Account/context to use when performing + administrative nova operations + + + Nova API url + 127.0.0.1 + The Nova/EC2 API url + + + Nova API Port + 8773 + The Nova/EC2 API port. + + + + + + + + + + + diff --git a/sfa/senslab/config/senslab2/sfa_config b/sfa/senslab/config/senslab2/sfa_config new file mode 100644 index 00000000..91ba5a8a --- /dev/null +++ b/sfa/senslab/config/senslab2/sfa_config @@ -0,0 +1,151 @@ +# DO NOT EDIT. This file was automatically generated at +# Mon Jun 25 15:01:21 2012 from: +# +# /etc/sfa/sfa_config.xml + +# XMLRPC URL +# URL for the federica xmlrpc API; login and password need to be set +# like in http://login:password@hostname:port/the/path +SFA_FEDERICA_URL='https://root:password@federica.sfa.wrapper.com:8443/fedewrapper/xmlrpc/' + +# Cache advertisement rspec +# Enable caching of the global advertisement, as returned by +# ListResources without a slice argument. +SFA_AGGREGATE_CACHING=1 + +# Hostname +# The hostname where the aggregate is expected to be found. +SFA_AGGREGATE_HOST='localhost' + +# Enable Aggregate +# Allows this local SFA instance to run as an aggregate manager. +SFA_AGGREGATE_ENABLED=1 + +# Port number +# The port where the aggregate is to be found. +SFA_AGGREGATE_PORT=52346 + +# Database name +# SFA database name. +SFA_DB_NAME='sfa' + +# Enabled +# Enable the database server on this machine. +SFA_DB_ENABLED=1 + +# Database host +# The host where the SFA database can be reached. +SFA_DB_HOST='localhost' + +# Database user +# When SFA gets co-hosted with a myplc, this should match the PLC +# config. +SFA_DB_USER='sfa' + +# Database password +# When SFA gets co-hosted with a myplc, this should match the PLC +# config. +SFA_DB_PASSWORD='sfa' + +# Database port +# The port where the SFA database can be reached. +SFA_DB_PORT=5432 + +# Flash policy config file +# The path to where the flash policy config file can be reached. +SFA_FLASHPOLICY_CONFIG_FILE='/etc/sfa/sfa_flashpolicy_config.xml' + +# Enable Flash Policy Server +# Allows this local SFA instance to run a flash policy server. +SFA_FLASHPOLICY_ENABLED=0 + +# Flash policy port +# The flash policy server port. +SFA_FLASHPOLICY_PORT=843 + +# Nova API Port +# The Nova/EC2 API port. +SFA_NOVA_API_PORT=8773 + +# Sfa nova user +# Account/context to use when performing administrative nova operations +SFA_NOVA_USER='novaadmin' + +# Nova API url +# The Nova/EC2 API url +SFA_NOVA_API_URL='127.0.0.1' + +# URL +# Full URL of PLC interface. +SFA_PLC_URL='https://localhost:443/PLCAPI/' + +# Password +# The PLC password for SFA_PLC_USER. +SFA_PLC_PASSWORD='root' + +# PLC login name for an admin user; SFA will carry on operations under this account. +SFA_PLC_USER='root@localhost.localdomain' + +# Root Authority +# The hrn of the registry's root auth. +SFA_REGISTRY_ROOT_AUTH='senslab2' + +# Hostname +# The hostname where the registry is expected to be found; using +# localhost when the local registry is enabled seems reasonable. +SFA_REGISTRY_HOST='localhost' + +# Enable Registry +# Allows this local SFA instance to run as a registry. +SFA_REGISTRY_ENABLED=1 + +# Port number +# The port where the registry is to be found. +SFA_REGISTRY_PORT=52345 + +# Cache advertisement rspec +# Enable caching of the global advertisement, as returned by +# ListResources without a slice argument. +SFA_SM_CACHING=0 + +# Hostname +# The hostname where the slice manager is expected to be found. +SFA_SM_HOST='localhost' + +# Enable Slice Manager +# Allows this local SFA instance to run as a slice manager. +SFA_SM_ENABLED=1 + +# Port number +# The port where the slice manager is to be found. +SFA_SM_PORT=52347 + +# Human readable name +# The human readable name for this interface. +SFA_INTERFACE_HRN='senslab2' + +# Generic Flavour +# This string refers to a class located in sfa.generic that describes +# which specific implementation needs to be used for api, manager and +# driver objects. PlanetLab users do not need to change this setting. +SFA_GENERIC_FLAVOUR='slab' + +# Credential Schema +# The path to the default credential schema +SFA_CREDENTIAL_SCHEMA='/etc/sfa/credential.xsd' + +# Debug +# Logging level; 0=minimum, 1=info, 2=debug +SFA_API_LOGLEVEL=2 + +# User Session Keys Path +# Some services will peform operations on behalf of a user, but make it +# look like the user is the one performing the operation. Doing this +# requires a valid key pair and credential for the user. This option +# defines the path where key pairs and credentials are generated and +# stored. This functionality is used by the SFA web GUI. +SFA_SESSION_KEY_PATH='/var/lib/sfa/session_keys' + +# Max Slice Renew +# Maximum amout of days a user can extend/renew their slices to +SFA_MAX_SLICE_RENEW=60 diff --git a/sfa/senslab/config/senslab2/sfa_config.xml b/sfa/senslab/config/senslab2/sfa_config.xml new file mode 100644 index 00000000..a8e90506 --- /dev/null +++ b/sfa/senslab/config/senslab2/sfa_config.xml @@ -0,0 +1,253 @@ + + + + + General + Basic system variables. + + + Generic Flavour + slab + This string refers to a class located in sfa.generic that describes + which specific implementation needs to be used for api, manager and driver objects. + PlanetLab users do not need to change this setting. + + + + Human readable name + senslab2 + The human readable name for this interface. + + + Credential Schema + /etc/sfa/credential.xsd + The path to the default credential schema + + + Debug + 2 + Logging level; 0=minimum, 1=info, 2=debug + + + Max Slice Renew + 60 + Maximum amout of days a user can extend/renew their slices to + + + User Session Keys Path + /var/lib/sfa/session_keys + Some services will peform operations on behalf of a user, but make + it look like the user is the one performing the operation. Doing this requires a + valid key pair and credential for the user. This option defines the path where + key pairs and credentials are generated and stored. + This functionality is used by the SFA web GUI. + + + + + + Registry + The settings that affect the registry that will run + as part of this SFA instance. + + + Enable Registry + true + Allows this local SFA instance to run as a + registry. + + + Hostname + localhost + The hostname where the registry is expected to + be found; using localhost when the local registry is enabled + seems reasonable. + + + Port number + 52345 + The port where the registry is to be found. + + + Root Authority + senslab2 + The hrn of the registry's root auth. + + + + + Slice Manager + The settings that affect the slice manager that will run + as part of this SFA instance. + + + Enable Slice Manager + true + Allows this local SFA instance to run as a + slice manager. + + + Hostname + localhost + The hostname where the slice manager is expected to + be found. + + + Port number + 52347 + The port where the slice manager is to be found. + + + Cache advertisement rspec + false + Enable caching of the global advertisement, as + returned by ListResources without a slice argument. + + + + + Aggregate + The settings that affect the aggregate manager that will run + as part of this SFA instance. + + + Enable Aggregate + true + Allows this local SFA instance to run as an + aggregate manager. + + + Hostname + localhost + The hostname where the aggregate is expected to + be found. + + + Port number + 52346 + The port where the aggregate is to be found. + + + Cache advertisement rspec + true + Enable caching of the global advertisement, as + returned by ListResources without a slice argument. + + + + + + The settings that tell this SFA instance where to find its database. You can essentially leave this as-is unless you plan on hosting your data on some other box. + + + Enabled + true + Enable the database server on this machine. + + + Database host + localhost + The host where the SFA database can be reached. + + + Database port + 5432 + The port where the SFA database can be reached. + + + Database user + sfa + When SFA gets co-hosted with a myplc, this should match the PLC config. + + + Database password + sfa + When SFA gets co-hosted with a myplc, this should match the PLC config. + + + Database name + sfa + SFA database name. + + + + + SFA Flash Policy + The settings that affect the flash policy server that will run + as part of this SFA instance. + + + Enable Flash Policy Server + false + Allows this local SFA instance to run a + flash policy server. + + + Flash policy config file + /etc/sfa/sfa_flashpolicy_config.xml + The path to where the flash policy config file can be reached. + + + Flash policy port + 843 + The flash policy server port. + + + + + + The settings that tell this SFA instance how to interact with the underlying PLC. Refer to plc-config-tty on this installation for more information. + + + PLC login name for an admin user; SFA will carry on operations under this account. + root@localhost.localdomain + + + + Password + root + The PLC password for SFA_PLC_USER. + + + URL + https://localhost:443/PLCAPI/ + Full URL of PLC interface. + + + + + + The settings that tell this SFA instance how to interact with the FEDERICA testbed. + + + XMLRPC URL + https://root:password@federica.sfa.wrapper.com:8443/fedewrapper/xmlrpc/ + URL for the federica xmlrpc API; login and password need to be set like in http://login:password@hostname:port/the/path + + + + + SFA Flash Policy + The settings that affect how SFA connects to + the Nova/EC2 API + + + Sfa nova user + novaadmin + Account/context to use when performing + administrative nova operations + + + Nova API url + 127.0.0.1 + The Nova/EC2 API url + + + Nova API Port + 8773 + The Nova/EC2 API port. + + + + + diff --git a/sfa/senslab/config/senslab2/site.xml b/sfa/senslab/config/senslab2/site.xml new file mode 100644 index 00000000..04421fb1 --- /dev/null +++ b/sfa/senslab/config/senslab2/site.xml @@ -0,0 +1,86 @@ + + + + + Aggregate + The settings that affect the aggregate manager that will run + as part of this SFA instance. + + + Port number + 52346 + The port where the aggregate is to be found. + + + + + + The settings that tell this SFA instance where to find its database. You can essentially leave this as-is unless you plan on hosting your data on some other box. + + + Database user + sfa + When SFA gets co-hosted with a myplc, this should match the PLC config. + + + Database password + sfa + When SFA gets co-hosted with a myplc, this should match the PLC config. + + + + + Registry + The settings that affect the registry that will run + as part of this SFA instance. + + + Root Authority + senslab2 + The hrn of the registry's root auth. + + + Port number + 52345 + The port where the registry is to be found. + + + + + Slice Manager + The settings that affect the slice manager that will run + as part of this SFA instance. + + + Port number + 52347 + The port where the slice manager is to be found. + + + + + General + Basic system variables. + + + Human readable name + senslab2 + The human readable name for this interface. + + + Generic Flavour + slab + This string refers to a class located in sfa.generic that describes + which specific implementation needs to be used for api, manager and driver objects. + PlanetLab users do not need to change this setting. + + + + Debug + 2 + Logging level; 0=minimum, 1=info, 2=debug + + + + + -- 2.47.0