Projet

Général

Profil

Télécharger (3,33 ko) Statistiques
| Branche: | Tag: | Révision:
2e0a7cb1 Sylvain L. Sauvage
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This program is a part of the IoTa project.
#
19b58bab Rémy Ménard
# Copyright © 2012-2013 Université de Caen Basse-Normandie, GREYC
#
2e0a7cb1 Sylvain L. Sauvage
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# <http://www.gnu.org/licenses/>
#
# See AUTHORS for a list of contributors.
#
import sys
import lib.utils
from lib.config import CONFIG
from lib.common import GlobalConfigurer
from lib.tomcat import TomcatInstaller
from lib.db import DBConfigurer
96454bcd Sylvain L. Sauvage
from lib.cert import CertConfigurer
19b58bab Rémy Ménard
from lib.sigma_cert import SigMaCertConfigurer
96454bcd Sylvain L. Sauvage
from lib.sigma import SigMAInstaller
2e0a7cb1 Sylvain L. Sauvage
from lib.epcis import EpcisInstaller
from lib.dphi import DPHIInstaller
from lib.ds import DSInstaller
96454bcd Sylvain L. Sauvage
from lib.dseta import DSeTaInstaller
2e0a7cb1 Sylvain L. Sauvage
from lib.ldap import LDAPConfigurer
from lib.eta import ETaInstaller
96454bcd Sylvain L. Sauvage
from lib.activemq import ActiveMQInstaller
from lib.eta_callback_receiver import ETaCallbackReceiverInstaller
from lib.eta_callback_filter import ETaCallbackFilterInstaller
from lib.eta_callback_sender import ETaCallbackSenderInstaller
from lib.eta_callback_filter_app import ETaCallbackFilterAppInstaller
from lib.eta_callback_sender_app import ETaCallbackSenderAppInstaller
2e0a7cb1 Sylvain L. Sauvage
from lib.ephi import EPHIInstaller
from lib.epcilon import EpcILoNInstaller
from lib.ons import ONSConfigurer
from lib.alfa import ALfAInstaller
from lib.omega import OMeGaInstaller
bf9c3717 Rémy Ménard
from lib.ypsilon import YPSilonInstaller
from lib.lambda_iota import LaMBDaInstaller
2e0a7cb1 Sylvain L. Sauvage
if __name__ == "__main__":
if "--accept-defaults" in sys.argv:
CONFIG.set("global", "accept_defaults", "true")
lib.utils.putWarning("Installing with defaults values from `resources/install.ini")
else:
CONFIG.set("global", "accept_defaults", "false")
lib.utils.putTitle(" IoTa Installer")
GlobalConfigurer().run()
19b58bab Rémy Ménard
CertConfigurer().run()
2e0a7cb1 Sylvain L. Sauvage
TomcatInstaller().run()
DBConfigurer().run()
19b58bab Rémy Ménard
SigMaCertConfigurer().run()
96454bcd Sylvain L. Sauvage
SigMAInstaller().run()
2e0a7cb1 Sylvain L. Sauvage
EpcisInstaller().run()
LDAPConfigurer().run()
bf9c3717 Rémy Ménard
YPSilonInstaller().run()
2e0a7cb1 Sylvain L. Sauvage
ETaInstaller().run()
EPHIInstaller().run()
96454bcd Sylvain L. Sauvage
ActiveMQInstaller().run()
ETaCallbackReceiverInstaller().run()
print "[ ]"
if lib.utils.getSetConfigYN("Use webapp versions for ETa Callback Filter and Sender?", "global", "callback_war"):
ETaCallbackFilterInstaller().run()
ETaCallbackSenderInstaller().run()
else:
ETaCallbackFilterAppInstaller().run()
ETaCallbackSenderAppInstaller().run()
2e0a7cb1 Sylvain L. Sauvage
DPHIInstaller().run()
DSInstaller().run()
96454bcd Sylvain L. Sauvage
DSeTaInstaller().run()
2e0a7cb1 Sylvain L. Sauvage
EpcILoNInstaller().run()
ONSConfigurer().run()
ALfAInstaller().run()
OMeGaInstaller().run()
bf9c3717 Rémy Ménard
LaMBDaInstaller().run()
2e0a7cb1 Sylvain L. Sauvage
lib.utils.putWarning(
"""
Important!

`resources/install.ini` contains logins and passwords in _clear text_.
They can also be found in Apache Tomcat configuration files and in the
property files of each application.
""")