Skip to content

Commit

Permalink
deploy: 36a52b9
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarocarvajald committed Oct 30, 2024
1 parent 4778684 commit 3b00f79
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions sles4sap/sap_deployment_automation_framework/configure_tfvars.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<li><a href="#prepare_tfvars_file">prepare_tfvars_file</a></li>
<li><a href="#replace_tfvars_variables">replace_tfvars_variables</a></li>
<li><a href="#set_workload_vnet_name">set_workload_vnet_name</a></li>
<li><a href="#set_vm_image_parameters">set_vm_image_parameters</a></li>
</ul>
</li>
</ul><h1>lib/sles4sap/sap_deployment_automation_framework/configure_tfvars.pm</h1>
Expand All @@ -40,20 +41,20 @@ <h2 id="prepare_tfvars_file">prepare_tfvars_file</h2>

<h2 id="replace_tfvars_variables">replace_tfvars_variables</h2>

<pre><code>replace_tfvars_variables();</code></pre>
<pre><code>replace_tfvars_variables(&#39;/path/to/file.tfvars&#39;);</code></pre>

<p>Replaces placeholder pattern <b>%OPENQA_VARIABLE%</b> with corresponding OpenQA variable value. If OpenQA variable is not set, placeholder is replaced with empty value.</p>

<ul>

<li><p><b>$deployment_type</b>: Type of the deployment (workload_zone, sap_system, library... etc)</p>
<li><p><b>$tfvars_file</b>: Full path to the tfvars file</p>

</li>
</ul>

<h2 id="set_workload_vnet_name">set_workload_vnet_name</h2>

<pre><code>set_workload_vnet_name([job_id=&gt;$job_id]);</code></pre>
<pre><code>set_workload_vnet_name([job_id=&gt;&#39;123456&#39;]);</code></pre>

<p>Returns VNET name used for workload zone and sap systems resources. VNET name must be unique for each landscape, therefore it contains test ID as an identifier.</p>

Expand All @@ -64,6 +65,19 @@ <h2 id="set_workload_vnet_name">set_workload_vnet_name</h2>
</li>
</ul>

<h2 id="set_vm_image_parameters">set_vm_image_parameters</h2>

<pre><code>set_vm_db_image_parameters([job_id=&gt;&#39;123456&#39;]);</code></pre>

<ul>

<li><p><b>$job_id</b>: Specify job id to be used. Default: current deployment job ID</p>

</li>
</ul>

<p>Sets OpenQA parameters required for replacing tfvars template variables for database VM image.</p>


</body>

Expand Down

0 comments on commit 3b00f79

Please sign in to comment.