google-cloud: Remove deprecated automatic_restart field
* In terraform-provider-google v0.1.3, it is no longer neccessary to supply a (duplicated) value for the instance_template field automatic_restart * Previously this field was set to match the scheduling automatic_restart since the field defaulted to true and would cause plan to always show changes were needed
This commit is contained in:
parent
6a574d4a01
commit
056bd8a059
|
@ -27,7 +27,7 @@ Typhoon provides a Terraform Module for each supported operating system and plat
|
||||||
## Docs
|
## Docs
|
||||||
|
|
||||||
* [https://typhoon.psdn.io](https://typhoon.psdn.io)
|
* [https://typhoon.psdn.io](https://typhoon.psdn.io)
|
||||||
* [Getting Started](https://typhoon.psdn.io/getting-started/)
|
* [Concepts](https://typhoon.psdn.io/concepts/)
|
||||||
* [Bare-Metal](https://typhoon.psdn.io/bare-metal/)
|
* [Bare-Metal](https://typhoon.psdn.io/bare-metal/)
|
||||||
* [Digital Ocean](https://typhoon.psdn.io/digital-ocean/)
|
* [Digital Ocean](https://typhoon.psdn.io/digital-ocean/)
|
||||||
* [Google-Cloud](https://typhoon.psdn.io/google-cloud/)
|
* [Google-Cloud](https://typhoon.psdn.io/google-cloud/)
|
||||||
|
@ -44,12 +44,12 @@ module "yavin-cluster" {
|
||||||
zone = "us-central1-c"
|
zone = "us-central1-c"
|
||||||
dns_zone = "example.com"
|
dns_zone = "example.com"
|
||||||
dns_zone_name = "example-zone"
|
dns_zone_name = "example-zone"
|
||||||
os_image = "coreos-stable-1409-7-0-v20170719"
|
os_image = "coreos-stable-1465-6-0-v20170817"
|
||||||
|
|
||||||
# Cluster
|
# Cluster
|
||||||
cluster_name = "yavin"
|
cluster_name = "yavin"
|
||||||
controller_count = 1
|
controller_count = 1
|
||||||
worker_count = 3
|
worker_count = 2
|
||||||
ssh_authorized_key = "${var.ssh_authorized_key}"
|
ssh_authorized_key = "${var.ssh_authorized_key}"
|
||||||
|
|
||||||
# output assets dir
|
# output assets dir
|
||||||
|
|
|
@ -50,9 +50,6 @@ resource "google_compute_instance_template" "controller" {
|
||||||
preemptible = "${var.preemptible}"
|
preemptible = "${var.preemptible}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# QUIRK: Undocumented field defaults to true if not set
|
|
||||||
automatic_restart = "${var.preemptible ? false : true}"
|
|
||||||
|
|
||||||
disk {
|
disk {
|
||||||
auto_delete = true
|
auto_delete = true
|
||||||
boot = true
|
boot = true
|
||||||
|
|
|
@ -50,9 +50,6 @@ resource "google_compute_instance_template" "worker" {
|
||||||
preemptible = "${var.preemptible}"
|
preemptible = "${var.preemptible}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# QUIRK: Undocumented field defaults to true if not set
|
|
||||||
automatic_restart = "${var.preemptible ? false : true}"
|
|
||||||
|
|
||||||
disk {
|
disk {
|
||||||
auto_delete = true
|
auto_delete = true
|
||||||
boot = true
|
boot = true
|
||||||
|
|
Loading…
Reference in New Issue