Project

General

Profile

Download (8.8 KB) Statistics
| Branch: | Tag: | Revision:
2e0a7cb1 Sylvain L. Sauvage
#!/bin/sh

cd ${0%/*}
read IOTA_VERSION < ../Version
96454bcd Sylvain L. Sauvage
echo "Updating Installer to version number: $IOTA_VERSION"
2e0a7cb1 Sylvain L. Sauvage
96454bcd Sylvain L. Sauvage
echo "Updating install.ini configuration file ..."
2e0a7cb1 Sylvain L. Sauvage
cat <<EOS > resources/install.ini
[global]
accept_defaults = false
host = localhost
96454bcd Sylvain L. Sauvage
callback_war = true
anonymous_user = anonymous
19b58bab Rémy Ménard
use_tls_id = true
default_user = default-id
2e0a7cb1 Sylvain L. Sauvage
[ldap]
login = admin
password = admin
base_dn = dc=iota,dc=greyc,dc=fr
bf9c3717 Rémy Ménard
user_group = ou=users
user_id = uid
attribute_owner = ownerid
attribute_alias = aliasdn
2e0a7cb1 Sylvain L. Sauvage
url = ldap://localhost:389/
ldif_create = false
ldif_install = false

[db]
host = localhost
port = 3306
login = root
password = root
96454bcd Sylvain L. Sauvage
user_host = localhost
8fd1d584 Rémy Ménard
repo = resources/mysql-connector-java-5.1.25.jar
2e0a7cb1 Sylvain L. Sauvage
jar_install = true

[tomcat]
8fd1d584 Rémy Ménard
repo = resources/apache-tomcat-7.0.41.tar.gz
2e0a7cb1 Sylvain L. Sauvage
name = apache-tomcat
directory = /srv/
catalina_home = /srv/apache-tomcat/
19b58bab Rémy Ménard
secure_port = 8443
2e0a7cb1 Sylvain L. Sauvage
shutdown_port = 8005
http_port = 8080
ajp_port = 8009
autodeploy = true
use_manager = true
login = admin
password = admin
manager_path = manager/text
19b58bab Rémy Ménard
keystore_file = \${catalina.home}/conf/ssl/keystore.jks
keystore_password = changeit
key_alias =
key_password =
truststore_file = \${catalina.home}/conf/ssl/keystore.jks
truststore_password = changeit
revocations_file = \${catalina.home}/conf/ssl/revocations_list.pem
2e0a7cb1 Sylvain L. Sauvage
install = false

96454bcd Sylvain L. Sauvage
[activemq]
name = apache-activemq
url = tcp://localhost:61616
admin_url = http://localhost:8161/admin
login =
password =
8fd1d584 Rémy Ménard
repo = resources/apache-activemq-5.8.0-bin.tar.gz
96454bcd Sylvain L. Sauvage
directory = /srv/
install = false

2e0a7cb1 Sylvain L. Sauvage
[epcis]
name = epcis
repo = resources/epcis-repository-0.5.0.war
db_jndi = EPCISDB
db_name = EPCIS_DB
db_login = epcis_usr
db_password = epcis_pw
db_install = false
url = http://localhost:8080/epcis
query_url = http://localhost:8080/epcis/query
capture_url = http://localhost:8080/epcis/query
install = false

[epcilon]
name = epcilon
repo = resources/epcilon-${IOTA_VERSION}.war
url = http://localhost:8080/epcilon
callback_url = http://localhost:8080/epcilon/StandingQueryCallbackServlet
8fd1d584 Rémy Ménard
subscription_url = http://localhost:8080/epcis/query
ds_url = http://localhost:8080/ds
2e0a7cb1 Sylvain L. Sauvage
db_jndi = EPCILONDB
db_name = EPCILON_DB
db_login = epcilon_usr
db_password = epcilon_pw
db_install = false
8fd1d584 Rémy Ménard
publisher_frequency = 30000
publisher_pending_republish = 180000
iota_ided = false
identity = anonymous
2e0a7cb1 Sylvain L. Sauvage
install = false

[dphi]
name = dphi
repo = resources/discovery-phi-${IOTA_VERSION}.war
install = false
8fd1d584 Rémy Ménard
deploy_policies = true
url = https://localhost:8443/dphi/index.jsp
2e0a7cb1 Sylvain L. Sauvage
[ds_policies]
dir = /srv/ds-policies/
query_dir = /srv/ds-policies/query/
capture_dir = /srv/ds-policies/capture/
admin_dir = /srv/ds-policies/admin/
8fd1d584 Rémy Ménard
xacml_url = https://localhost:8443/dphi/xi
2e0a7cb1 Sylvain L. Sauvage
[ds]
name = ds
8fd1d584 Rémy Ménard
repo = resources/ds-${IOTA_VERSION}.war
url = http://localhost:8080/ds
2e0a7cb1 Sylvain L. Sauvage
db_jndi = DSDB
db_name = DS_DB
db_login = ds_usr
db_password = ds_pw
db_install = false
8fd1d584 Rémy Ménard
server_identity = http://localhost:8080/ds
multi_ds_architecture = False
topublish_jms_queue_name = toPublishDS
jms_message_time_property = lastPublish
publisher_delay = 10000
publisher_timeout = 5000
publisher_period = 30000
ons_hosts = localhost
ons_domain_prefix = ons-peer.com.
2e0a7cb1 Sylvain L. Sauvage
install = false

96454bcd Sylvain L. Sauvage
[dseta]
name = dseta
8fd1d584 Rémy Ménard
repo = resources/dseta-${IOTA_VERSION}.war
url = https://localhost:8443/dseta
multi_dseta_architecture = False
db_jndi = DSETADB
db_name = DSETA_DB
db_login = dseta_usr
db_password = dseta_pw
db_install = false
server_identity = https://localhost:8443/dseta
multi_dseta_architecture = False
topublish_jms_queue_name = toPublishDSeTa
jms_message_time_property = lastPublish
publisher_delay = 10000
publisher_timeout = 5000
publisher_period = 30000
2e0a7cb1 Sylvain L. Sauvage
ons_hosts = localhost
8fd1d584 Rémy Ménard
ons_domain_prefix = ons-peer.com.
install = false
2e0a7cb1 Sylvain L. Sauvage
[omega]
name = omega
repo = resources/omega-${IOTA_VERSION}.war
install = false

[alfa]
name = alfa
96454bcd Sylvain L. Sauvage
repo = resources/alfa-rmi-${IOTA_VERSION}-bin-with-dependencies.tar.gz
2e0a7cb1 Sylvain L. Sauvage
directory = /srv/
ds_login = anonymous
ds_password = anonymous
rmi_url = //localhost:1099/ALfA
rmi_name = ALfA
rmi_port = 1099
install = false

bf9c3717 Rémy Ménard
[ypsilon]
name = ypsilon
repo = resources/ypsilon-${IOTA_VERSION}.war
url = http://localhost:8080/ypsilon
8fd1d584 Rémy Ménard
xacml_url = https://localhost:8443/ephi/xi
bf9c3717 Rémy Ménard
install = false

[lambda]
name = lambda
repo = resources/lambda-${IOTA_VERSION}.war
8fd1d584 Rémy Ménard
use_gamma= false
gamma_repo = resources/gamma-${IOTA_VERSION}.tar
gamma_path = /srv/
96454bcd Sylvain L. Sauvage
install = false

2e0a7cb1 Sylvain L. Sauvage
[eta]
name = eta
repo = resources/eta-${IOTA_VERSION}.war
install = false
db_name = ETA_DB
db_login = eta_usr
db_password = eta_pw
db_install = false
db_jndi = ETADB
96454bcd Sylvain L. Sauvage
callback_db_login = callback_usr
callback_db_password = callback_pwd
db_user_create = false
use_sigma = False

[eta_callback_receiver]
name = eta-callback-receiver
repo = resources/eta-callback-receiver-${IOTA_VERSION}.war
install = false
callbackservlet_name = callback
8fd1d584 Rémy Ménard
callback_url = https://localhost:8443/eta-callback-receiver/callback
96454bcd Sylvain L. Sauvage
send_queue_name = queueToFilter

[eta_callback_filter]
name = eta-callback-filter
repo_bin = resources/eta-callback-filter-${IOTA_VERSION}-bin-with-dependencies.tar.gz
repo_war = resources/eta-callback-filter-${IOTA_VERSION}.war
directory = /srv/
send_queue_name = queueToSender
startup-delay = 10000
polling-delay = 60000
8fd1d584 Rémy Ménard
jms_timeout = 200
jms_message_time_property = lastSend
96454bcd Sylvain L. Sauvage
install = false

[eta_callback_sender]
name = eta-callback-sender
repo_bin = resources/eta-callback-sender-${IOTA_VERSION}-bin-with-dependencies.tar.gz
repo_war = resources/eta-callback-sender-${IOTA_VERSION}.war
directory = /srv/
startup-delay = 10000
polling-delay = 60000
8fd1d584 Rémy Ménard
jms_timeout = 200
jms_message_time_property = lastSend
96454bcd Sylvain L. Sauvage
install = false
2e0a7cb1 Sylvain L. Sauvage
[ephi]
name = ephi
repo = resources/epcis-phi-${IOTA_VERSION}.war
install = false
bf9c3717 Rémy Ménard
deploy_policies = true
url = https://localhost:8443/ephi/
2e0a7cb1 Sylvain L. Sauvage
[epcis_policies]
dir = /srv/epcis-policies/
query_dir = /srv/epcis-policies/query/
capture_dir = /srv/epcis-policies/capture/
admin_dir = /srv/epcis-policies/admin/
8fd1d584 Rémy Ménard
xacml_url = https://localhost:8443/ephi/xi
2e0a7cb1 Sylvain L. Sauvage
[ons]
server = localhost
create_file = True
domain_prefix = ons-peer.com.
vendor_prefix = 7.6.5.4.3.2.1.sgtin.id
email = info.acme.com.
home_page = http://www.acme.com/index.jsp
filename = db.ons-peer.com
spec_level = 2.0
epcis_entry = epc\\\\+epcis
ds_entry = epc\\\\+ds
96454bcd Sylvain L. Sauvage
html_entry = epc\\\\+html
2e0a7cb1 Sylvain L. Sauvage
entry_regex = \\\\!\\\\^\\\\.\\\\*\\\\$\\\\!|\\\\!

96454bcd Sylvain L. Sauvage
[sigma]
name = sigma
bf9c3717 Rémy Ménard
repo = resources/sigma-${IOTA_VERSION}.war
96454bcd Sylvain L. Sauvage
install = True
8fd1d584 Rémy Ménard
url = https://localhost:8443/sigma/
96454bcd Sylvain L. Sauvage
19b58bab Rémy Ménard
[sigma_cert]
create_keystore = True
keystore = /srv/sigma-cert.p12
password = store_pw
distinguished_name = CN=anonymous
keyalias = key
keypassword =

96454bcd Sylvain L. Sauvage
[cert]
bf9c3717 Rémy Ménard
keystore = /srv/keystore.jks
p12_keystore = /srv/keystore.p12
19b58bab Rémy Ménard
jks_keystore = /srv/keystore.jks
bf9c3717 Rémy Ménard
pem_keystore = /srv/keystore.pem
96454bcd Sylvain L. Sauvage
password = store_pw
distinguished_name = CN=anonymous
keyalias = key
keypassword =
certfile = /srv/key.cert
truststore = /srv/truststore.jks
bf9c3717 Rémy Ménard
pem_truststore = /srv/truststore.pem
96454bcd Sylvain L. Sauvage
trustpassword = trust_pw
trust_keyalias = key
trust_keypassword =
create_keystore = True
create_certfile = True
create_truststore = True
bf9c3717 Rémy Ménard
create_truststore_pem = True
19b58bab Rémy Ménard
exportkeystore_tojks = True
bf9c3717 Rémy Ménard
exportkeystore_topem = True
96454bcd Sylvain L. Sauvage
2e0a7cb1 Sylvain L. Sauvage
EOS

# Installer links to tarballs and wars
96454bcd Sylvain L. Sauvage
echo "Cleaning resources links ..."
rm -f resources/alfa-rmi-*-bin-with-dependencies.tar.gz \
resources/discovery-phi-*.war \
8fd1d584 Rémy Ménard
resources/ds-*.war \
resources/dseta-*.war \
96454bcd Sylvain L. Sauvage
resources/epcilon-*.war \
resources/epcis-phi-*.war \
bf9c3717 Rémy Ménard
resources/ypsilon-*.war \
96454bcd Sylvain L. Sauvage
resources/eta-*.war \
resources/eta-callback-receiver-*.war \
resources/eta-callback-filter-*-bin-with-dependencies.tar.gz \
resources/eta-callback-sender-*-bin-with-dependencies.tar.gz \
resources/omega-*.war \
bf9c3717 Rémy Ménard
resources/sigma-*.war \
resources/lambda-*.war
96454bcd Sylvain L. Sauvage
echo "Setting resources links ..."
ln -s ../../ALfA/ALfA-RMI/target/alfa-rmi-${IOTA_VERSION}-bin-with-dependencies.tar.gz \
2e0a7cb1 Sylvain L. Sauvage
../../DSeTa/DiscoveryPHI/target/discovery-phi-${IOTA_VERSION}.war \
8fd1d584 Rémy Ménard
../../DSeTa/DSeTa/target/dseta-${IOTA_VERSION}.war \
../../DS/DS/target/ds-${IOTA_VERSION}.war \
2e0a7cb1 Sylvain L. Sauvage
../../EpcILoN/target/epcilon-${IOTA_VERSION}.war \
../../ETa/EpcisPHI/target/epcis-phi-${IOTA_VERSION}.war \
bf9c3717 Rémy Ménard
../../YPSilon/YPSilon/target/ypsilon-${IOTA_VERSION}.war \
2e0a7cb1 Sylvain L. Sauvage
../../ETa/ETa/target/eta-${IOTA_VERSION}.war \
96454bcd Sylvain L. Sauvage
../../ETa/ETa-Callback/ETa-Callback-Receiver/target/eta-callback-receiver-${IOTA_VERSION}.war \
../../ETa/ETa-Callback/ETa-Callback-Filter/target/eta-callback-filter-${IOTA_VERSION}.war \
../../ETa/ETa-Callback/ETa-Callback-Sender/target/eta-callback-sender-${IOTA_VERSION}.war \
../../ETa/ETa-Callback/ETa-Callback-Filter/target/eta-callback-filter-${IOTA_VERSION}-bin-with-dependencies.tar.gz \
../../ETa/ETa-Callback/ETa-Callback-Sender/target/eta-callback-sender-${IOTA_VERSION}-bin-with-dependencies.tar.gz \
2e0a7cb1 Sylvain L. Sauvage
../../OMeGa/OMeGa/target/omega-${IOTA_VERSION}.war \
96454bcd Sylvain L. Sauvage
../../SigMa/SigMa/target/sigma-${IOTA_VERSION}.war \
bf9c3717 Rémy Ménard
../../LaMBDa/target/lambda-${IOTA_VERSION}.war \
2e0a7cb1 Sylvain L. Sauvage
resources/