Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Why pin version? #53

Open
rboarman-sc opened this issue Aug 20, 2019 · 3 comments
Open

Why pin version? #53

rboarman-sc opened this issue Aug 20, 2019 · 3 comments

Comments

@rboarman-sc
Copy link

In file:

https://github.com/hashicorp/terraform-aws-nomad/blob/master/examples/nomad-consul-ami/nomad-consul-docker.json

{
  "min_packer_version": "0.12.0",
  "variables": {
    "aws_region": "us-east-1",
    "nomad_version": "0.7.1",
    "consul_module_version": "v0.3.1", <-------
    "consul_version": "1.0.3"
},

The version of "consul_module_version" is being pinned to a branch named "v0.3.1."

Shouldn't this be the latest version of the module? Why pin to a very old version?

If I remove the pin and use master instead, I get this error (Amazon Linux 2):

Starting cloud-init: Cloud-init v. 0.7.6 running 'modules:final' at Tue, 20 Aug 2019 20:00:05 +0000. Up 33.87 seconds.

user-data: 2019-08-20 20:00:05 [ERROR] [run-consul] The binary 'systemctl' is required by this script but is not installed or in the system's PATH.

What is the correct version to use and what should I use for consul_version?

@brikis98
Copy link
Collaborator

It's pinned for precisely the reason you mentioned: to avoid picking up breaking changes accidentally! We want to test each new version, make sure it works, and only update after tests have passed. That said, we should probably bump the version number more often, as that is indeed quite far behind.

The release notes for the Consul module indicate the changes that need to be made: https://github.com/hashicorp/terraform-aws-consul/releases.

@rboarman-sc
Copy link
Author

Can you please make the change(s)? I'd be happy to test all three AMIs and report back. Thank you!

@Etiene
Copy link
Contributor

Etiene commented Aug 23, 2019

Pull requests are welcome :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants