Skip to content

Commit

Permalink
💄 : remove backend and provider conf
Browse files Browse the repository at this point in the history
  • Loading branch information
juwit committed Jun 17, 2019
1 parent 07a938d commit c76ad77
Showing 1 changed file with 1 addition and 51 deletions.
52 changes: 1 addition & 51 deletions src/main/resources/templates/stack.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,56 +106,6 @@ <h2>
<stack-outputs v-bind:outputs="stack.outputs"></stack-outputs>
</div>

<div class="row margin_bottom_30">
<div class="col-md-6">
<div class="block">
<div class="block_head">
<h2>Backend configuration</h2>
<small>This backend configuration is for information only. Gaia generates it for you !</small>
</div>

<div class="block_content">
<nav>
<div class="nav nav-tabs" id="nav-tab" role="tablist">
<a class="nav-item nav-link active show" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">HCL</a>
<a class="nav-item nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">JSON</a>
</div>
</nav>
<div class="tab-content">
<div class="tab-pane fade active show" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab">
<pre><code class="language-hcl">terraform {
backend "http" {
address = "{{settings.externalUrl}}/api/state/{{stack.id}}"
}
}</code></pre>
</div>
<div class="tab-pane fade" id="nav-profile" role="tabpanel" aria-labelledby="nav-profile-tab">
<pre><code class="language-json">{
"terraform" : {
"backend" : {
"http": {
"address": "{{settings.externalUrl}}/api/state/{{stack.id}}"
}
}
}
}</code></pre>
</div>
</div>
</div>
</div>
</div>

<div class="col-md-6">
<div class="block">
<div class="block_head">
<h2>Provider configuration</h2>
<small>Input here your provider configuration (in HCL format)</small>
</div>
<div id="provider-editor" style="height: 200px;">{{ stack.providerSpec }}</div>
</div>
</div>

</div>
<div class="row margin_bottom_30">
<div class="col-md-6">
<div class="block">
Expand Down Expand Up @@ -291,7 +241,7 @@ <h2><span><i class="fas fa-history"></i> Job history</span></h2>
methods: {
save: function(){
// getting custom provider data
stack.providerSpec = providerEditor.getValue();
// stack.providerSpec = providerEditor.getValue();
$.ajax({
url: `/api/stacks/${stackId}`,
data: JSON.stringify(stack),
Expand Down

0 comments on commit c76ad77

Please sign in to comment.