Test documentation examples in the examples/ folder
This commit is contained in:
@@ -24,7 +24,7 @@ This example will create a `cloud-config` that uses the module's defaults, creat
|
||||
|
||||
```hcl
|
||||
module "cos-coredns" {
|
||||
source = "./modules/cloud-config-container/coredns"
|
||||
source = "./fabric/modules/cloud-config-container/coredns"
|
||||
}
|
||||
|
||||
# use it as metadata in a compute instance or template
|
||||
@@ -40,8 +40,8 @@ This example will create a `cloud-config` using a custom CoreDNS configuration,
|
||||
|
||||
```hcl
|
||||
module "cos-coredns" {
|
||||
source = "./modules/cloud-config-container/coredns"
|
||||
coredns_config = "./modules/cloud-config-container/coredns/Corefile-hosts"
|
||||
source = "./fabric/modules/cloud-config-container/coredns"
|
||||
coredns_config = "./fabric/modules/cloud-config-container/coredns/Corefile-hosts"
|
||||
files = {
|
||||
"/etc/coredns/example.hosts" = {
|
||||
content = "127.0.0.2 foo.example.org foo"
|
||||
@@ -57,7 +57,7 @@ This example shows how to create the single instance optionally managed by the m
|
||||
|
||||
```hcl
|
||||
module "cos-coredns" {
|
||||
source = "./modules/cloud-config-container/coredns"
|
||||
source = "./fabric/modules/cloud-config-container/coredns"
|
||||
test_instance = {
|
||||
project_id = "my-project"
|
||||
zone = "europe-west1-b"
|
||||
|
||||
@@ -14,7 +14,7 @@ This example will create a `cloud-config` that starts [Envoy Proxy](https://www.
|
||||
|
||||
```hcl
|
||||
module "cos-envoy" {
|
||||
source = "./modules/cos-generic-metadata"
|
||||
source = "./fabric/modules/cos-generic-metadata"
|
||||
|
||||
container_image = "envoyproxy/envoy:v1.14.1"
|
||||
container_name = "envoy"
|
||||
|
||||
@@ -13,12 +13,12 @@ This module depends on the [`cos-generic-metadata` module](../cos-generic-metada
|
||||
```hcl
|
||||
# Envoy TD config
|
||||
module "cos-envoy-td" {
|
||||
source = "./modules/cloud-config-container/envoy-traffic-director"
|
||||
source = "./fabric/modules/cloud-config-container/envoy-traffic-director"
|
||||
}
|
||||
|
||||
# COS VM
|
||||
module "vm-cos" {
|
||||
source = "./modules/compute-vm"
|
||||
source = "./fabric/modules/compute-vm"
|
||||
project_id = local.project_id
|
||||
zone = local.zone
|
||||
name = "cos-envoy-td"
|
||||
|
||||
@@ -26,7 +26,7 @@ This example will create a `cloud-config` that uses the container's default conf
|
||||
|
||||
```hcl
|
||||
module "cos-mysql" {
|
||||
source = "./modules/cos-container/mysql"
|
||||
source = "./fabric/modules/cos-container/mysql"
|
||||
mysql_password = "foo"
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ This example will create a `cloud-config` that uses a custom MySQL configuration
|
||||
|
||||
```hcl
|
||||
module "cos-mysql" {
|
||||
source = "./modules/cos-container/mysql"
|
||||
source = "./fabric/modules/cos-container/mysql"
|
||||
mysql_config = "./my.cnf"
|
||||
mysql_password = "CiQAsd7WY=="
|
||||
kms_config = {
|
||||
@@ -61,7 +61,7 @@ This example shows how to create the single instance optionally managed by the m
|
||||
|
||||
```hcl
|
||||
module "cos-mysql" {
|
||||
source = "./modules/cos-container/mysql"
|
||||
source = "./fabric/modules/cos-container/mysql"
|
||||
mysql_password = "foo"
|
||||
test_instance = {
|
||||
project_id = "my-project"
|
||||
|
||||
@@ -14,12 +14,12 @@ This module depends on the [`cos-generic-metadata` module](../cos-generic-metada
|
||||
```hcl
|
||||
# Nginx with self-signed TLS config
|
||||
module "cos-nginx-tls" {
|
||||
source = "./modules/cloud-config-container/nginx-tls"
|
||||
source = "./fabric/modules/cloud-config-container/nginx-tls"
|
||||
}
|
||||
|
||||
# COS VM
|
||||
module "vm-nginx-tls" {
|
||||
source = "./modules/compute-vm"
|
||||
source = "./fabric/modules/compute-vm"
|
||||
project_id = local.project_id
|
||||
zone = local.zone
|
||||
name = "cos-nginx-tls"
|
||||
|
||||
@@ -24,7 +24,7 @@ This example will create a `cloud-config` that uses the module's defaults, creat
|
||||
|
||||
```hcl
|
||||
module "cos-nginx" {
|
||||
source = "./modules/cloud-config-container/nginx"
|
||||
source = "./fabric/modules/cloud-config-container/nginx"
|
||||
}
|
||||
|
||||
# use it as metadata in a compute instance or template
|
||||
@@ -40,7 +40,7 @@ This example shows how to create the single instance optionally managed by the m
|
||||
|
||||
```hcl
|
||||
module "cos-nginx" {
|
||||
source = "./modules/cloud-config-container/nginx"
|
||||
source = "./fabric/modules/cloud-config-container/nginx"
|
||||
test_instance = {
|
||||
project_id = "my-project"
|
||||
zone = "europe-west1-b"
|
||||
|
||||
@@ -24,7 +24,7 @@ The test instance is optional, as described above.
|
||||
|
||||
```hcl
|
||||
module "cloud-vpn" {
|
||||
source = "./modules/net-vpn-static"
|
||||
source = "./fabric/modules/net-vpn-static"
|
||||
project_id = "my-project"
|
||||
region = "europe-west1"
|
||||
network = "my-vpc"
|
||||
@@ -41,7 +41,7 @@ module "cloud-vpn" {
|
||||
}
|
||||
|
||||
module "on-prem" {
|
||||
source = "./modules/cos-container/on-prem"
|
||||
source = "./fabric/modules/cos-container/on-prem"
|
||||
name = "onprem"
|
||||
vpn_config = {
|
||||
type = "static"
|
||||
|
||||
@@ -24,7 +24,7 @@ This example will create a `cloud-config` that allows any client in the 10.0.0.0
|
||||
|
||||
```hcl
|
||||
module "cos-squid" {
|
||||
source = "./modules/cloud-config-container/squid"
|
||||
source = "./fabric/modules/cloud-config-container/squid"
|
||||
whitelist = [".github.com"]
|
||||
clients = ["10.0.0.0/8"]
|
||||
}
|
||||
@@ -42,7 +42,7 @@ This example shows how to create the single instance optionally managed by the m
|
||||
|
||||
```hcl
|
||||
module "cos-squid" {
|
||||
source = "./modules/cloud-config-container/squid"
|
||||
source = "./fabric/modules/cloud-config-container/squid"
|
||||
whitelist = ["github.com"]
|
||||
clients = ["10.0.0.0/8"]
|
||||
test_instance = {
|
||||
|
||||
Reference in New Issue
Block a user