Fixes URL paths to learn.hashicorp.com

Removes `.html` when not needed in order to clean up analytics.
This commit is contained in:
Geoffrey Grosenbach 2018-11-28 15:39:28 -08:00
parent 9bb239a01c
commit b4f357bf38
8 changed files with 50 additions and 50 deletions

View File

@ -17,7 +17,7 @@ description: |-
</svg> </svg>
Download Download
</a> </a>
<a href="https://learn.hashicorp.com/consul/getting-started/kv.html" class="g-btn dark-outline">Explore Docs</a> <a href="https://learn.hashicorp.com/consul/getting-started/kv" class="g-btn dark-outline">Explore Docs</a>
</div> </div>
</section> </section>
@ -66,7 +66,7 @@ description: |-
<h3>Key/Value Store</h3> <h3>Key/Value Store</h3>
<p>Feature rich key/value store for dynamic service configuration data. Use it for feature flagging, maintenance modes, and more.</p> <p>Feature rich key/value store for dynamic service configuration data. Use it for feature flagging, maintenance modes, and more.</p>
<p> <p>
<a class="learn-more" href="https://learn.hashicorp.com/consul/getting-started/kv.html">Learn more<svg xmlns="http://www.w3.org/2000/svg" width="6" height="10" viewBox="0 0 6 10"><g fill="none" fill-rule="evenodd" transform="translate(-6 -3)"><mask id="a" fill="#fff"><path d="M7.138 3.529a.666.666 0 1 0-.942.942l3.528 3.53-3.529 3.528a.666.666 0 1 0 .943.943l4-4a.666.666 0 0 0 0-.943l-4-4z"/></mask><g fill="#1563FF" mask="url(#a)"><path d="M0 0h16v16H0z"/></g></g></svg></a> <a class="learn-more" href="https://learn.hashicorp.com/consul/getting-started/kv">Learn more<svg xmlns="http://www.w3.org/2000/svg" width="6" height="10" viewBox="0 0 6 10"><g fill="none" fill-rule="evenodd" transform="translate(-6 -3)"><mask id="a" fill="#fff"><path d="M7.138 3.529a.666.666 0 1 0-.942.942l3.528 3.53-3.529 3.528a.666.666 0 1 0 .943.943l4-4a.666.666 0 0 0 0-.943l-4-4z"/></mask><g fill="#1563FF" mask="url(#a)"><path d="M0 0h16v16H0z"/></g></g></svg></a>
</p> </p>
</div> </div>
</div> </div>
@ -264,7 +264,7 @@ description: |-
</svg> </svg>
Download Download
</a> </a>
<a href="https://learn.hashicorp.com/consul/getting-started/kv.html" class="g-btn white-outline">Explore docs</a> <a href="https://learn.hashicorp.com/consul/getting-started/kv" class="g-btn white-outline">Explore docs</a>
</div> </div>
</section> </section>

View File

@ -18,7 +18,7 @@ description: |-
</svg> </svg>
Download Download
</a> </a>
<a href="https://learn.hashicorp.com/consul/getting-started/services.html" class="g-btn dark-outline">Explore Docs</a> <a href="https://learn.hashicorp.com/consul/getting-started/services" class="g-btn dark-outline">Explore Docs</a>
</div> </div>
</section> </section>
@ -64,7 +64,7 @@ description: |-
<h3>Service Registry</h3> <h3>Service Registry</h3>
<p>Consul provides a registry of all the running nodes and services, along with their current health status. This allows operators to understand the environment, and applications and automation tools to interact with dynamic infrastructure using an HTTP API.</p> <p>Consul provides a registry of all the running nodes and services, along with their current health status. This allows operators to understand the environment, and applications and automation tools to interact with dynamic infrastructure using an HTTP API.</p>
<p> <p>
<a class="learn-more" href="https://learn.hashicorp.com/consul/getting-started/services.html">Learn more<svg xmlns="http://www.w3.org/2000/svg" width="6" height="10" viewBox="0 0 6 10"><g fill="none" fill-rule="evenodd" transform="translate(-6 -3)"><mask id="a" fill="#fff"><path d="M7.138 3.529a.666.666 0 1 0-.942.942l3.528 3.53-3.529 3.528a.666.666 0 1 0 .943.943l4-4a.666.666 0 0 0 0-.943l-4-4z"/></mask><g fill="#1563FF" mask="url(#a)"><path d="M0 0h16v16H0z"/></g></g></svg></a> <a class="learn-more" href="https://learn.hashicorp.com/consul/getting-started/services">Learn more<svg xmlns="http://www.w3.org/2000/svg" width="6" height="10" viewBox="0 0 6 10"><g fill="none" fill-rule="evenodd" transform="translate(-6 -3)"><mask id="a" fill="#fff"><path d="M7.138 3.529a.666.666 0 1 0-.942.942l3.528 3.53-3.529 3.528a.666.666 0 1 0 .943.943l4-4a.666.666 0 0 0 0-.943l-4-4z"/></mask><g fill="#1563FF" mask="url(#a)"><path d="M0 0h16v16H0z"/></g></g></svg></a>
</p> </p>
</div> </div>
</div> </div>
@ -93,7 +93,7 @@ description: |-
<h3>DNS Query Interface</h3> <h3>DNS Query Interface</h3>
<p>Consul enables service discovery using a built-in DNS server. This allows existing applications to easily integrate, as almost all applications support using DNS to resolve IP addresses. Using DNS instead of a static IP address allows services to scale up/down and route around failures easily.</p> <p>Consul enables service discovery using a built-in DNS server. This allows existing applications to easily integrate, as almost all applications support using DNS to resolve IP addresses. Using DNS instead of a static IP address allows services to scale up/down and route around failures easily.</p>
<p> <p>
<a class="learn-more" href="https://learn.hashicorp.com/consul/getting-started/services.html#querying-services">Learn more<svg xmlns="http://www.w3.org/2000/svg" width="6" height="10" viewBox="0 0 6 10"><g fill="none" fill-rule="evenodd" transform="translate(-6 -3)"><mask id="a" fill="#fff"><path d="M7.138 3.529a.666.666 0 1 0-.942.942l3.528 3.53-3.529 3.528a.666.666 0 1 0 .943.943l4-4a.666.666 0 0 0 0-.943l-4-4z"/></mask><g fill="#1563FF" mask="url(#a)"><path d="M0 0h16v16H0z"/></g></g></svg></a> <a class="learn-more" href="https://learn.hashicorp.com/consul/getting-started/services#querying-services">Learn more<svg xmlns="http://www.w3.org/2000/svg" width="6" height="10" viewBox="0 0 6 10"><g fill="none" fill-rule="evenodd" transform="translate(-6 -3)"><mask id="a" fill="#fff"><path d="M7.138 3.529a.666.666 0 1 0-.942.942l3.528 3.53-3.529 3.528a.666.666 0 1 0 .943.943l4-4a.666.666 0 0 0 0-.943l-4-4z"/></mask><g fill="#1563FF" mask="url(#a)"><path d="M0 0h16v16H0z"/></g></g></svg></a>
</p> </p>
</div> </div>
</div> </div>
@ -130,7 +130,7 @@ web-frontend.service.consul. 0 IN A <code class='keyword'>10.0.1.109</code></cod
<h3>HTTP API with Edge Triggers</h3> <h3>HTTP API with Edge Triggers</h3>
<p>Consul provides an HTTP API to query the service registry for nodes, services, and health check information. The API also supports blocking queries, or long-polling for any changes. This allows automation tools to react to services being registered or health status changes to change configurations or traffic routing in real time.</p> <p>Consul provides an HTTP API to query the service registry for nodes, services, and health check information. The API also supports blocking queries, or long-polling for any changes. This allows automation tools to react to services being registered or health status changes to change configurations or traffic routing in real time.</p>
<p> <p>
<a class="learn-more" href="https://learn.hashicorp.com/consul/getting-started/services.html#http-api">Learn more<svg xmlns="http://www.w3.org/2000/svg" width="6" height="10" viewBox="0 0 6 10"><g fill="none" fill-rule="evenodd" transform="translate(-6 -3)"><mask id="a" fill="#fff"><path d="M7.138 3.529a.666.666 0 1 0-.942.942l3.528 3.53-3.529 3.528a.666.666 0 1 0 .943.943l4-4a.666.666 0 0 0 0-.943l-4-4z"/></mask><g fill="#1563FF" mask="url(#a)"><path d="M0 0h16v16H0z"/></g></g></svg></a> <a class="learn-more" href="https://learn.hashicorp.com/consul/getting-started/services#http-api">Learn more<svg xmlns="http://www.w3.org/2000/svg" width="6" height="10" viewBox="0 0 6 10"><g fill="none" fill-rule="evenodd" transform="translate(-6 -3)"><mask id="a" fill="#fff"><path d="M7.138 3.529a.666.666 0 1 0-.942.942l3.528 3.53-3.529 3.528a.666.666 0 1 0 .943.943l4-4a.666.666 0 0 0 0-.943l-4-4z"/></mask><g fill="#1563FF" mask="url(#a)"><path d="M0 0h16v16H0z"/></g></g></svg></a>
</p> </p>
</div> </div>
</div> </div>
@ -211,7 +211,7 @@ $ curl http://localhost:8500/v1/catalog/nodes?<code class='keyword'>dc=dc2</code
<h3>Health Checks</h3> <h3>Health Checks</h3>
<p>Pairing service discovery with health checking prevents routing requests to unhealthy hosts and enables services to easily provide circuit breakers.</p> <p>Pairing service discovery with health checking prevents routing requests to unhealthy hosts and enables services to easily provide circuit breakers.</p>
<p> <p>
<a class="learn-more" href="https://learn.hashicorp.com/consul/getting-started/checks.html">Learn more<svg xmlns="http://www.w3.org/2000/svg" width="6" height="10" viewBox="0 0 6 10"><g fill="none" fill-rule="evenodd" transform="translate(-6 -3)"><mask id="a" fill="#fff"><path d="M7.138 3.529a.666.666 0 1 0-.942.942l3.528 3.53-3.529 3.528a.666.666 0 1 0 .943.943l4-4a.666.666 0 0 0 0-.943l-4-4z"/></mask><g fill="#1563FF" mask="url(#a)"><path d="M0 0h16v16H0z"/></g></g></svg></a> <a class="learn-more" href="https://learn.hashicorp.com/consul/getting-started/checks">Learn more<svg xmlns="http://www.w3.org/2000/svg" width="6" height="10" viewBox="0 0 6 10"><g fill="none" fill-rule="evenodd" transform="translate(-6 -3)"><mask id="a" fill="#fff"><path d="M7.138 3.529a.666.666 0 1 0-.942.942l3.528 3.53-3.529 3.528a.666.666 0 1 0 .943.943l4-4a.666.666 0 0 0 0-.943l-4-4z"/></mask><g fill="#1563FF" mask="url(#a)"><path d="M0 0h16v16H0z"/></g></g></svg></a>
</p> </p>
</div> </div>
</div> </div>
@ -285,7 +285,7 @@ $ curl http://localhost:8500/v1/catalog/nodes?<code class='keyword'>dc=dc2</code
</svg> </svg>
Download Download
</a> </a>
<a href="https://learn.hashicorp.com/consul/getting-started/services.html" class="g-btn white-outline">Explore docs</a> <a href="https://learn.hashicorp.com/consul/getting-started/services" class="g-btn white-outline">Explore docs</a>
</div> </div>
</section> </section>

View File

@ -69,7 +69,7 @@ in microseconds.
There are several ways to try Connect in different environments. There are several ways to try Connect in different environments.
* The [Connect introduction](https://learn.hashicorp.com/consul/getting-started/connect.html) in the * The [Connect introduction](https://learn.hashicorp.com/consul/getting-started/connect) in the
Getting Started guide provides a simple walk through of getting two services Getting Started guide provides a simple walk through of getting two services
to communicate via Connect using only Consul directly on your local machine. to communicate via Connect using only Consul directly on your local machine.

View File

@ -10,7 +10,7 @@ description: |-
Consul Connect can secure all inter-service communication via mutual TLS. It's Consul Connect can secure all inter-service communication via mutual TLS. It's
designed to work with [minimal configuration out of the designed to work with [minimal configuration out of the
box](https://learn.hashicorp.com/consul/getting-started/connect.html), but completing the [security box](https://learn.hashicorp.com/consul/getting-started/connect), but completing the [security
checklist](/docs/connect/security.html) and understanding the [Consul security checklist](/docs/connect/security.html) and understanding the [Consul security
model](/docs/internals/security.html) are prerequisites for production model](/docs/internals/security.html) are prerequisites for production
deployments. deployments.

View File

@ -8,66 +8,66 @@ description: |-
# Consul Template # Consul Template
The Consul template tool provides a programmatic method The Consul template tool provides a programmatic method
for rendering configuration files from a variety of locations, for rendering configuration files from a variety of locations,
including Consul KV. It is an ideal option for replacing complicated API including Consul KV. It is an ideal option for replacing complicated API
queries that often require custom formatting. queries that often require custom formatting.
The template tool is based on Go templates and shares many The template tool is based on Go templates and shares many
of the same attributes. of the same attributes.
Consul template is a useful tool with several uses, we will focus on two Consul template is a useful tool with several uses, we will focus on two
of it's use cases. of it's use cases.
1. *Update configuration files*. The Consul template tool can be used 1. *Update configuration files*. The Consul template tool can be used
to update service configuration files. A common use case is managing load to update service configuration files. A common use case is managing load
balancer configuration files that need to be updated regularly in a dynamic balancer configuration files that need to be updated regularly in a dynamic
infrastructure on machines many not be able to directly connect to the Consul cluster. infrastructure on machines many not be able to directly connect to the Consul cluster.
1. *Discover data about the Consul cluster and service*. It is possible to collect 1. *Discover data about the Consul cluster and service*. It is possible to collect
information about the services in your Consul cluster. For example, you could information about the services in your Consul cluster. For example, you could
collect a list of all services running on the cluster or you could discover all collect a list of all services running on the cluster or you could discover all
service addresses for the Redis service. Note, this use case has limited service addresses for the Redis service. Note, this use case has limited
scope for production. scope for production.
In this guide we will briefly discuss how `consul-template` works, In this guide we will briefly discuss how `consul-template` works,
how to install it, and two use cases. how to install it, and two use cases.
Before completing this guide, we assume some familiarity with Before completing this guide, we assume some familiarity with
[Consul KV](https://learn.hashicorp.com/consul/getting-started/kv.html) [Consul KV](https://learn.hashicorp.com/consul/getting-started/kv)
and [Go templates](https://golang.org/pkg/text/template/). and [Go templates](https://golang.org/pkg/text/template/).
## Introduction to Consul Template ## Introduction to Consul Template
Consul template is a simple, yet powerful tool. When initiated, it Consul template is a simple, yet powerful tool. When initiated, it
reads one or more template files and queries Consul for all reads one or more template files and queries Consul for all
data needed to render them. Typically, you run `consul-template` as a data needed to render them. Typically, you run `consul-template` as a
daemon which will fetch the initial values and then continue to watch daemon which will fetch the initial values and then continue to watch
for updates, re-rendering the template whenever there are relevant changes in for updates, re-rendering the template whenever there are relevant changes in
the cluster. You can alternatively use the `-once` flag to fetch and render the cluster. You can alternatively use the `-once` flag to fetch and render
the template once which is useful for testing and the template once which is useful for testing and
setup scripts that are triggered by some other automation for example a setup scripts that are triggered by some other automation for example a
provisioning tool. Finally, the template can also run arbitrary commands after the update provisioning tool. Finally, the template can also run arbitrary commands after the update
process completes. For example, it can send the HUP signal to the process completes. For example, it can send the HUP signal to the
load balancer service after a configuration change has been made. load balancer service after a configuration change has been made.
The Consul template tool is flexible, it can fit into many The Consul template tool is flexible, it can fit into many
different environments and workflows. Depending on the use-case, you different environments and workflows. Depending on the use-case, you
may have a single `consul-template` instance on a handful of hosts may have a single `consul-template` instance on a handful of hosts
or may need to run several instances on every host. Each `consul-template` or may need to run several instances on every host. Each `consul-template`
process can manage multiple unrelated files though and will de-duplicate process can manage multiple unrelated files though and will de-duplicate
the fetches as needed if those files share data dependencies so it can the fetches as needed if those files share data dependencies so it can
reduce the load on Consul servers to share where possible. reduce the load on Consul servers to share where possible.
## Install Consul Template ## Install Consul Template
For this guide, we are using a local Consul agent in development For this guide, we are using a local Consul agent in development
mode which can be started with `consul agent -dev`. To quickly set mode which can be started with `consul agent -dev`. To quickly set
up a local Consul agent, refer to the getting started [guide](https://learn.hashicorp.com/consul/getting-started/install). The up a local Consul agent, refer to the getting started [guide](https://learn.hashicorp.com/consul/getting-started/install). The
Consul agent must be running to complete all of the following Consul agent must be running to complete all of the following
steps. steps.
The Consul template tool is not included with the Consul binary and will The Consul template tool is not included with the Consul binary and will
need to be installed separately. It can be installed from a precompiled need to be installed separately. It can be installed from a precompiled
binary or compiled from source. We will be installing the precompiled binary. binary or compiled from source. We will be installing the precompiled binary.
First, download the binary from the [Consul Template releases page](https://releases.hashicorp.com/consul-template/). First, download the binary from the [Consul Template releases page](https://releases.hashicorp.com/consul-template/).

View File

@ -22,7 +22,7 @@ description: |-
</svg> </svg>
Download Download
</a> </a>
<a href="https://learn.hashicorp.com/consul/getting-started/install.html" class='g-btn dark-outline'>Get Started</a> <a href="https://learn.hashicorp.com/consul/getting-started/install" class='g-btn dark-outline'>Get Started</a>
<div> <div>
<a href='https://demo.consul.io/' class='secondary-link'>View demo of web UI</a> <a href='https://demo.consul.io/' class='secondary-link'>View demo of web UI</a>
</div> </div>

View File

@ -86,5 +86,5 @@ forward the request to the remote datacenter and return the result.
* See [how Consul compares to other software](/intro/vs/index.html) to assess how it fits into your * See [how Consul compares to other software](/intro/vs/index.html) to assess how it fits into your
existing infrastructure. existing infrastructure.
* Continue onwards with the [getting started guide](https://learn.hashicorp.com/consul/getting-started/install.html) * Continue onwards with the [getting started guide](https://learn.hashicorp.com/consul/getting-started/install)
to get Consul up and running. to get Consul up and running.

View File

@ -18,7 +18,7 @@ description: |-
</svg> </svg>
Download Download
</a> </a>
<a href="https://learn.hashicorp.com/consul/getting-started/connect.html" class="g-btn dark-outline">Explore Docs</a> <a href="https://learn.hashicorp.com/consul/getting-started/connect" class="g-btn dark-outline">Explore Docs</a>
</div> </div>
</section> </section>
@ -200,7 +200,7 @@ Secure Sockets Layer
</svg> </svg>
Download Download
</a> </a>
<a href="https://learn.hashicorp.com/consul/getting-started/connect.html" class="g-btn white-outline">Explore docs</a> <a href="https://learn.hashicorp.com/consul/getting-started/connect" class="g-btn white-outline">Explore docs</a>
</div> </div>
</section> </section>