Placeholders
Application packaging supports a list of placeholders that can be used in any section of the manifest file (if the section isn’t strictly limited with its content). JPS controller will try to resolve all placeholders on the package installation stage. If it’s not possible placeholder will be unresolved and displayed in the text as is (e.g., ${placeholder}).
Common Placeholders
Name | Description | Sample |
---|---|---|
${env.appid} | application appid | |
${env.domain} | application domain | test-env.jelastic.com |
${env.protocol} | protocol | http, https |
${env.url} | link to application (env) | http://test-env.jelastic.com/ |
${nodes.node.address}, ${nodes.mysql5.address}, ${nodes.tomcat6.address} | IP address of node | 192.168.1.1 |
${nodes.node.port}, ${nodes.mysql5.port}, ${nodes.tomcat6.port} | Port of node | 3306 |
${nodes.node.url}, ${nodes.mysql5.url}, ${nodes.tomcat6.url} | link to node | http://mysql-test-env.jelastic.com/ |
${application.settings.key} | “key” - name of application setting. This placeholder will be resolved if you use dynamic settings in your JPS | ${application.settings.user_email} |
${license} | response from license script. This placeholder will be resolved if you have license section | |
${user.uid} | uid of a user | ${user.email} |
${user.appPassword} | arbitrary password with 10 symbols and atleast onenumber at the end |
File Path Placeholders
Path | Node type | Value |
---|---|---|
${HOME} | couchdb | /etc/couchdb |
glassfish3 | /opt/glassfish3/temp | |
jetty6 | /opt/jetty/home | |
nginx | /etc/nginx | |
nginxphp | /etc/nginx | |
tomcat6 | /opt/tomcat/temp | |
tomcat7 | /opt/tomcat/temp | |
tomee | /opt/tomcat/temp | |
${JAVA_HOME} | glassfish3 | /usr/java/latest |
jetty6 | /usr/java/latest | |
maven3 | /usr/java/latest | |
tomcat6 | /usr/java/latest | |
tomcat7 | /usr/java/latest | |
tomee | /usr/java/latest | |
${SERVER_BACKUP} | couchdb | /var/lib/jelastic/backup |
mariadb | /var/lib/jelastic/backup | |
mariadb10 | /var/lib/jelastic/backup | |
mongodb | /var/lib/jelastic/backup | |
mysql5 | /var/lib/jelastic/backup | |
postgres8 | /var/lib/jelastic/backup | |
postgres9 | /var/lib/jelastic/backup | |
${SERVER_CONF} | apache2 | /etc/httpd/conf |
glassfish3 | /opt/glassfish3/glassfish/domains/domain1/config | |
jetty6 | /opt/jetty/etc | |
maven3 | /opt/maven/conf | |
memcached | /etc/sysconfig | |
tomcat6 | /opt/tomcat/conf | |
tomcat7 | /opt/tomcat/conf | |
tomee | /opt/tomcat/conf | |
${SERVER_CONF_D} | apache2 | /etc/httpd/conf.d |
nginx | /etc/nginx/conf.d | |
nginxphp | /etc/nginx/conf.d | |
${SERVER_DATA} | postgres8 | /var/lib/pgsql/data |
postgres9 | /var/lib/pgsql/data | |
${SERVER_LIBS} | apache2 | /usr/lib64/php/modules |
glassfish3 | /opt/glassfish3/glassfish/lib | |
jetty6 | /opt/jetty/lib | |
nginxphp | /usr/lib64/php/modules | |
tomcat6 | /opt/tomcat/lib | |
tomcat7 | /opt/tomcat/lib | |
tomee | /opt/tomcat/lib | |
${SERVER_MODULES} | apache2 | /usr/lib64/php/modules |
glassfish3 | /opt/glassfish3/glassfish/lib | |
jetty6 | /opt/jetty/lib | |
nginxphp | /usr/lib64/php/modules | |
tomcat6 | /opt/tomcat/lib | |
tomcat7 | /opt/tomcat/lib | |
tomee | /opt/tomcat/lib | |
${SERVER_SCRIPTS} | couchdb | /var/lib/jelastic/bin |
mariadb | /var/lib/jelastic/bin | |
mariadb10 | /var/lib/jelastic/bin | |
mongodb | /var/lib/jelastic/bin | |
mysql5 | /var/lib/jelastic/bin | |
postgres8 | /var/lib/jelastic/bin | |
postgres9 | /var/lib/jelastic/bin | |
${SERVER_WEBROOT} | apache2 | /var/www/webroot |
jetty6 | /opt/jetty/work | |
nginxphp | /var/www/webroot | |
tomcat6 | /opt/tomcat/webapps | |
tomcat7 | /opt/tomcat/webapps | |
tomee | /opt/tomcat/webapps | |
${SYSTEM_CRON} | apache2 | /var/spool/cron |
couchdb | /var/spool/cron | |
glassfish3 | /var/spool/cron | |
jetty6 | /var/spool/cron | |
mariadb | /var/spool/cron | |
mariadb10 | /var/spool/cron | |
mongodb | /var/spool/cron | |
mysql5 | /var/spool/cron | |
nginxphp | /var/spool/cron | |
postgres8 | /var/spool/cron | |
postgres9 | /var/spool/cron | |
tomcat6 | /var/spool/cron | |
tomcat7 | /var/spool/cron | |
tomee | /var/spool/cron | |
${SYSTEM_ETC} | apache2 | /etc |
couchdb | /etc | |
mariadb | /etc | |
mariadb10 | /etc | |
mongodb | /etc | |
mysql5 | /etc | |
nginxphp | /etc | |
postgres8 | /etc | |
postgres9 | /etc | |
${SYSTEM_KEYS} | apache2 | /var/lib/jelastic/keys |
couchdb | /var/lib/jelastic/keys | |
glassfish3 | /var/lib/jelastic/keys | |
jetty6 | /var/lib/jelastic/keys | |
mariadb | /var/lib/jelastic/keys | |
mariadb10 | /var/lib/jelastic/keys | |
maven3 | /var/lib/jelastic/keys | |
memcached | /var/lib/jelastic/keys | |
mongodb | /var/lib/jelastic/keys | |
mysql5 | /var/lib/jelastic/keys | |
nginxphp | /var/lib/jelastic/keys | |
postgres8 | /var/lib/jelastic/keys | |
postgres9 | /var/lib/jelastic/keys | |
tomcat6 | /var/lib/jelastic/keys | |
tomcat7 | /var/lib/jelastic/keys | |
tomee | /var/lib/jelastic/keys |