Commit dd776175 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

stack/lamp: prefix the name of the instance with the root instance's title

parent a68acc77
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
# not need these here). # not need these here).
[lamp-instance] [lamp-instance]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = f34548ba607becf3acd5c5e3d8e70551 md5sum = 663d65b8ae91f3db718a584e9e6bb4a5
[instance-apache-php] [instance-apache-php]
filename = instance-apache-php.cfg.in filename = instance-apache-php.cfg.in
...@@ -22,7 +22,7 @@ md5sum = 41602a61d5f9609281dbfa3f27da0626 ...@@ -22,7 +22,7 @@ md5sum = 41602a61d5f9609281dbfa3f27da0626
[instance-lamp] [instance-lamp]
filename = instance-lamp.cfg.jinja2.in filename = instance-lamp.cfg.jinja2.in
md5sum = de1f450a80547d12334b712016138078 md5sum = f4081a8aabbb75faf5fd00ac2e0e7810
[template-apache.conf] [template-apache.conf]
filename = apache.conf.in filename = apache.conf.in
......
...@@ -20,7 +20,7 @@ partition-id = ${slap-connection:partition-id} ...@@ -20,7 +20,7 @@ partition-id = ${slap-connection:partition-id}
[request-apache] [request-apache]
<= request-common <= request-common
software-type = apache software-type = apache
name = apache-php name = {{ instance_title }}_apache-php
sla-computer_guid = {{ dumps(slapparameter_dict.get('apache-computer-guid', '')) }} sla-computer_guid = {{ dumps(slapparameter_dict.get('apache-computer-guid', '')) }}
{% for key, value in slapparameter_dict.items() -%} {% for key, value in slapparameter_dict.items() -%}
{% if key.startswith('instance.') -%} {% if key.startswith('instance.') -%}
...@@ -42,7 +42,7 @@ return = ...@@ -42,7 +42,7 @@ return =
[request-mariadb] [request-mariadb]
<= request-common <= request-common
software-type = mariadb software-type = mariadb
name = Mariadb name = {{ instance_title }}_Mariadb
sla-computer_guid = {{ dumps(slapparameter_dict.get('mariadb-computer-guid', '')) }} sla-computer_guid = {{ dumps(slapparameter_dict.get('mariadb-computer-guid', '')) }}
config-database-list = {{ dumps([{'name': db_name, 'user': db_user, 'password': db_password }]) }} config-database-list = {{ dumps([{'name': db_name, 'user': db_user, 'password': db_password }]) }}
config-test-database-amount = {{ dumps(0) }} config-test-database-amount = {{ dumps(0) }}
......
...@@ -32,6 +32,7 @@ context = ...@@ -32,6 +32,7 @@ context =
key ipv4 slap-configuration:ipv4 key ipv4 slap-configuration:ipv4
key ipv6 slap-configuration:ipv6 key ipv6 slap-configuration:ipv6
key slapparameter_dict slap-configuration:configuration key slapparameter_dict slap-configuration:configuration
key instance_title slap-configuration:instance-title
key computer_id slap-configuration:computer key computer_id slap-configuration:computer
raw template_monitor {{ template_monitor }} raw template_monitor {{ template_monitor }}
raw openssl_location {{ openssl_location }} raw openssl_location {{ openssl_location }}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment