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:
Dalton Hubble 2017-08-25 00:14:02 -07:00
parent 6a574d4a01
commit 056bd8a059
3 changed files with 3 additions and 9 deletions

View File

@ -27,7 +27,7 @@ Typhoon provides a Terraform Module for each supported operating system and plat
## Docs
* [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/)
* [Digital Ocean](https://typhoon.psdn.io/digital-ocean/)
* [Google-Cloud](https://typhoon.psdn.io/google-cloud/)
@ -44,12 +44,12 @@ module "yavin-cluster" {
zone = "us-central1-c"
dns_zone = "example.com"
dns_zone_name = "example-zone"
os_image = "coreos-stable-1409-7-0-v20170719"
os_image = "coreos-stable-1465-6-0-v20170817"
# Cluster
cluster_name = "yavin"
controller_count = 1
worker_count = 3
worker_count = 2
ssh_authorized_key = "${var.ssh_authorized_key}"
# output assets dir

View File

@ -50,9 +50,6 @@ resource "google_compute_instance_template" "controller" {
preemptible = "${var.preemptible}"
}
# QUIRK: Undocumented field defaults to true if not set
automatic_restart = "${var.preemptible ? false : true}"
disk {
auto_delete = true
boot = true

View File

@ -50,9 +50,6 @@ resource "google_compute_instance_template" "worker" {
preemptible = "${var.preemptible}"
}
# QUIRK: Undocumented field defaults to true if not set
automatic_restart = "${var.preemptible ? false : true}"
disk {
auto_delete = true
boot = true