MySQL Environments

Версии
1.0
<modificator>
  <uid>org.bayrell.modificator.mysql_host</uid>
	<name>MySQL Environments</name>
  <version>1.0</version>
	<operations>
    
    <!-- MySQL Host -->
    <operation type="remove">
      <path>/template/yaml/services/_var_app_name_/environment/MYSQL_HOST</path>
    </operation>
    
    <operation type="add">
      <path>/template/yaml/services/_var_app_name_/environment</path>
      <value>
        <MYSQL_HOST>_var_mysql_host_</MYSQL_HOST>
      </value>
    </operation>
		
		<operation type="add">
			<path>/template/variables</path>
      <notExists>/template/variables/variable[name="_var_mysql_host_"]</notExists>
			<value>
				<variable>
					<name>_var_mysql_host_</name>
          <label>MySQL host</label>
					<type>string</type>
				</variable>
			</value>
		</operation>
    
    
    <!-- MySQL login -->
    <operation type="remove">
      <path>/template/yaml/services/_var_app_name_/environment/MYSQL_LOGIN</path>
    </operation>
    
    <operation type="add">
      <path>/template/yaml/services/_var_app_name_/environment</path>
      <value>
        <MYSQL_LOGIN>_var_mysql_login_</MYSQL_LOGIN>
      </value>
    </operation>
		
		<operation type="add">
			<path>/template/variables</path>
      <notExists>/template/variables/variable[name="_var_mysql_login_"]</notExists>
			<value>
				<variable>
					<name>_var_mysql_login_</name>
          <label>MySQL login</label>
					<type>string</type>
				</variable>
			</value>
		</operation>
		
    
    <!-- MySQL password -->
    <operation type="remove">
      <path>/template/yaml/services/_var_app_name_/environment/MYSQL_PASSWORD</path>
    </operation>
    
    <operation type="add">
      <path>/template/yaml/services/_var_app_name_/environment</path>
      <value>
        <MYSQL_PASSWORD>_var_mysql_password_</MYSQL_PASSWORD>
      </value>
    </operation>
		
		<operation type="add">
			<path>/template/variables</path>
      <notExists>/template/variables/variable[name="_var_mysql_password_"]</notExists>
			<value>
				<variable>
					<name>_var_mysql_password_</name>
          <label>MySQL password</label>
					<type>string</type>
				</variable>
			</value>
		</operation>
    
    
    <!-- MySQL database -->
    <operation type="remove">
      <path>/template/yaml/services/_var_app_name_/environment/MYSQL_DATABASE</path>
    </operation>
    
    <operation type="add">
      <path>/template/yaml/services/_var_app_name_/environment</path>
      <value>
        <MYSQL_DATABASE>_var_mysql_database_</MYSQL_DATABASE>
      </value>
    </operation>
		
		<operation type="add">
			<path>/template/variables</path>
      <notExists>/template/variables/variable[name="_var_mysql_database_"]</notExists>
			<value>
				<variable>
					<name>_var_mysql_database_</name>
          <label>MySQL database</label>
					<type>string</type>
				</variable>
			</value>
		</operation>
    
	</operations>
</modificator>