hashicorp / terraform-provider-ignition

Terraform Ignition provider
https://www.terraform.io/docs/providers/ignition/
Mozilla Public License 2.0
39 stars 64 forks source link

Container linux specific options #22

Closed dirkjonker closed 7 years ago

dirkjonker commented 7 years ago

Is it possible to use this provider to set CoreOS etcd and locksmith settings? E.g. to implement the extra specification from https://coreos.com/os/docs/latest/configuration.html The yaml version of what one might want to configure:

etcd:
  version:                     "3.0.15"
  name:                        "{HOSTNAME}"
  advertise_client_urls:       "http://{PRIVATE_IPV4}:2379"
  initial_advertise_peer_urls: "http://{PRIVATE_IPV4}:2380"
  listen_client_urls:          "http://0.0.0.0:2379"
  listen_peer_urls:            "http://{PRIVATE_IPV4}:2380"
  initial_cluster:             "{HOSTNAME}=http://{PRIVATE_IPV4}:2380"
update:
  group:  "beta"
locksmith:
  reboot_strategy: "etcd-lock"
  window_start:    "Sun 1:00"
  window_length:   "2h"

(examples are from CoreOS docs)

If I have to believe the CoreOS documentation their configuration transpiler actually converts the update configuration to a file (/etc/coreos/update.conf), but it would be nice if the provider would add support for it, as the CoreOS documentation says you have to configure these things in YAML, and doesn't specify the config file format.

dirkjonker commented 7 years ago

Hmm obviously I did not see that there is actually a provider for this: https://github.com/coreos/terraform-provider-ct provided by CoreOS. Will check if that needs our requirements.

mcuadros commented 7 years ago

I thing is out of the scope of this provider, witch goal is generate ignition files. As you mentioned the best way to write the update.conf is use the ct provider.