SDI4Apps / cloud-platform

cloud-init description for newly launched VMs
Apache License 2.0
2 stars 1 forks source link

Create layman cfg after deployment #7

Closed wohnout closed 8 years ago

wohnout commented 8 years ago

Templates are at /data/www/py/layman/server (suffixed with -template) just copy them and remove -template and chmod +x them (.cfg is not needed to chmod)

CFG should not be created from template but should looks like:

[Authorization]
service=Liferay
url=http://localhost/sso-portlet/service/sso/validate/
allroles=http://localhost/sso-portlet/service/list/roles/en
ignoreroles=administrator,guest,lmadmin,organization administrator,organization owner,organization user,owner,power user,site administrator,site member,site owner,user,mickaadmin,mickawrite,poi,user_role

[FileMan]
homedir=/data/www/py/layman/data/

[LayEd]
# restrictBy:
# owner - only my own data and layers are available for reading and writing (plan4business)
# groups - all the data and layers of all the groups I am member of are available for reading and writing (pprd)
# this is provisional configuration before this depends on the user's membership in LR groups (lmWriteOwn, lmReadGroup etc.) 
restrictBy=owner

[DbMan]
dbname=layman
dbuser=liferay
dbhost=localhost
dbpass=somepass
dbport=5432
exposepk=true

[GeoServer]
url=http://localhost:8080/geoserver/rest
user=admin
password=geoserver
gsdir=/home/ubuntu/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/webapps/geoserver/
datadir=/home/ubuntu/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/webapps/geoserver/data/
userpwd=crypt1:2DFyNWnqJIfUL0j8bGMUeA==
#workspace=

[Gdal]
gdal_data=/usr/share/gdal/1.10/

[CKAN]
CkanApiUrl=http://localhost/api/3
ResourceFormat=shp,kml,json

[PROJ]
ProjEPSG=/usr/share/proj/epsg

User www-data should have write access to folder /home/ubuntu/liferay-portal-6.2-ce-ga6/tomcat-7.0.62/webapps/geoserver/data/

Create database layman with owner liferay and insert /data/www/py/layman/server/laypad/laypad.sql

martin-kuba commented 8 years ago

Done.