website: make examples somewhat real, modify the 'window' style
This commit is contained in:
parent
988ca2a81b
commit
e839779ea0
|
@ -26,7 +26,7 @@
|
|||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vestibulum nibh vitae quam dapibus, nec sodales dolor sodales. Class aptent taciti sociosqu ad litora.</p>
|
||||
</div>
|
||||
<div class="col-lg-5 col-md-5 col-sm-12">
|
||||
<h3 class="terminal-text">$ terraform apply</h3>
|
||||
<h3 class="terminal-text">$ terraform plan</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- /container -->
|
||||
|
@ -137,31 +137,24 @@
|
|||
<div class="terminal-item col-xs-12 col-lg-12">
|
||||
<div class="terminal">
|
||||
<header>
|
||||
<h4>Terminal</h4>
|
||||
<ul class='shell-dots'>
|
||||
<li class="d1"></li>
|
||||
<li class="d2"></li>
|
||||
<li class="d3"></li>
|
||||
</ul>
|
||||
<h4>Example Configuration</h4>
|
||||
</header>
|
||||
<div class="terminal-window">
|
||||
<div class="">
|
||||
<div class="display">
|
||||
<p class="command"><span class="txt-r">admin@hashicorp</span>: dig web-frontend.service.terraform. ANY</p>
|
||||
<p>; <<>> DiG 9.8.3-P1 <<>> web-frontend.service.terraform. ANY</p>
|
||||
<p>;; global options: +cmd</p>
|
||||
<p>resource "digitalocean_droplet" "web" {</p>
|
||||
<p> name = "baz"</p>
|
||||
<p> size = "512mb"</p>
|
||||
<p> image = "centos-5-8-x32"</p>
|
||||
<p> region = "sfo1"</p>
|
||||
<p>}</p>
|
||||
<p> </p>
|
||||
<p>;; Got answer:</p>
|
||||
<p>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29981</p>
|
||||
<p>;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0</p>
|
||||
<p> </p>
|
||||
<p>;; QUESTION SECTION:</p>
|
||||
<p>;web-frontend.service.terraform. IN ANY</p>
|
||||
<p> </p>
|
||||
<p>;; ANSWER SECTION:</p>
|
||||
<p>web-frontend.service.terraform. 0 IN A <span class="txt-p">10.0.3.83</span></p>
|
||||
<p>web-frontend.service.terraform. 0 IN A <span class="txt-p">10.0.1.109</span></p>
|
||||
<p class="command"><span class="txt-r">admin@hashicorp</span>: <span class="cursor"> </span></p>
|
||||
<p>resource "dnsimple_record" "hello" {</p>
|
||||
<p> domain = "jack.ly"</p>
|
||||
<p> name = "hello"</p>
|
||||
<p> value = "${digitalocean_droplet.foobar.ipv4_address}"</p>
|
||||
<p> type = "A"</p>
|
||||
<p>}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -179,29 +172,24 @@
|
|||
<div class="terminal-item col-xs-12 col-lg-12">
|
||||
<div class="terminal">
|
||||
<header>
|
||||
<h4>Terminal</h4>
|
||||
<ul class='shell-dots'>
|
||||
<li class="d1"></li>
|
||||
<li class="d2"></li>
|
||||
<li class="d3"></li>
|
||||
</ul>
|
||||
<h4>Example Configuration</h4>
|
||||
</header>
|
||||
<div class="terminal-window">
|
||||
<div class="">
|
||||
<div class="display">
|
||||
<p class="command"><span class="txt-r">admin@hashicorp</span>: curl -X PUT -d 'bar' http://localhost:8500/v1/kv/foo</p>
|
||||
<p>true</p>
|
||||
<p class="command"><span class="txt-r">admin@hashicorp</span>: curl http://localhost:8500/v1/kv/foo</p>
|
||||
<p>[</p>
|
||||
<p> {</p>
|
||||
<p> "CreateIndex": 100,</p>
|
||||
<p> "ModifyIndex": 200,</p>
|
||||
<p> "Key": "foo",</p>
|
||||
<p> "Flags": 0,</p>
|
||||
<p> "Value": <span class="txt-p">"YmFy"</span></p>
|
||||
<p>resource "digitalocean_droplet" "web" {</p>
|
||||
<p> name = "baz"</p>
|
||||
<p> size = "512mb"</p>
|
||||
<p> image = "centos-5-8-x32"</p>
|
||||
<p> region = "sfo1"</p>
|
||||
<p>}</p>
|
||||
<p> </p>
|
||||
<p>resource "dnsimple_record" "hello" {</p>
|
||||
<p> domain = "jack.ly"</p>
|
||||
<p> name = "hello"</p>
|
||||
<p> value = "${digitalocean_droplet.foobar.ipv4_address}"</p>
|
||||
<p> type = "A"</p>
|
||||
<p>}</p>
|
||||
<p>]</p>
|
||||
<p class="command"><span class="txt-r">admin@hashicorp</span>: <span class="cursor"> </span></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue