{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/3518","repository_url":"https://api.github.com/repos/hashicorp/consul","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/3518/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/3518/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/3518/events","html_url":"https://github.com/hashicorp/consul/issues/3518","id":261676426,"node_id":"MDU6SXNzdWUyNjE2NzY0MjY=","number":3518,"title":"Terraform Module doesn't pull shared scripts","user":{"login":"2stacks","id":15258140,"node_id":"MDQ6VXNlcjE1MjU4MTQw","avatar_url":"https://avatars0.githubusercontent.com/u/15258140?v=4","gravatar_id":"","url":"https://api.github.com/users/2stacks","html_url":"https://github.com/2stacks","followers_url":"https://api.github.com/users/2stacks/followers","following_url":"https://api.github.com/users/2stacks/following{/other_user}","gists_url":"https://api.github.com/users/2stacks/gists{/gist_id}","starred_url":"https://api.github.com/users/2stacks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2stacks/subscriptions","organizations_url":"https://api.github.com/users/2stacks/orgs","repos_url":"https://api.github.com/users/2stacks/repos","events_url":"https://api.github.com/users/2stacks/events{/privacy}","received_events_url":"https://api.github.com/users/2stacks/received_events","type":"User","site_admin":false},"labels":[{"id":137572609,"node_id":"MDU6TGFiZWwxMzc1NzI2MDk=","url":"https://api.github.com/repos/hashicorp/consul/labels/docs","name":"docs","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/hashicorp/consul/milestones/16","html_url":"https://github.com/hashicorp/consul/milestone/16","labels_url":"https://api.github.com/repos/hashicorp/consul/milestones/16/labels","id":2844406,"node_id":"MDk6TWlsZXN0b25lMjg0NDQwNg==","number":16,"title":"Unplanned","description":"Issues in here have been triaged by someone on the Consul team and may be addressed in a future release of Consul, but aren't yet slated for a particular version of Consul. Issues will move from here onto a milestone for a particular release.","creator":{"login":"slackpad","id":673509,"node_id":"MDQ6VXNlcjY3MzUwOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/673509?v=4","gravatar_id":"","url":"https://api.github.com/users/slackpad","html_url":"https://github.com/slackpad","followers_url":"https://api.github.com/users/slackpad/followers","following_url":"https://api.github.com/users/slackpad/following{/other_user}","gists_url":"https://api.github.com/users/slackpad/gists{/gist_id}","starred_url":"https://api.github.com/users/slackpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackpad/subscriptions","organizations_url":"https://api.github.com/users/slackpad/orgs","repos_url":"https://api.github.com/users/slackpad/repos","events_url":"https://api.github.com/users/slackpad/events{/privacy}","received_events_url":"https://api.github.com/users/slackpad/received_events","type":"User","site_admin":false},"open_issues":129,"closed_issues":29,"state":"open","created_at":"2017-10-17T19:53:25Z","updated_at":"2018-10-29T09:39:11Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-09-29T15:19:13Z","updated_at":"2018-11-28T23:51:13Z","closed_at":null,"author_association":"NONE","body":"### Operating system and Environment details\r\nTerraform v0.10.6 for Linux 64-bit\r\n\r\n### Description of the Issue (and unexpected/desired result)\r\nWhen using Consul module in Terraform shared scripts are not downloaded when executing 'terraform get'\r\n\r\n### Reproduction steps\r\n\r\n- add following to terraform config\r\n```\r\nmodule \"consul\" {\r\n  source = \"github.com/hashicorp/consul/terraform/aws\"\r\n  key_name = \"KEY\"\r\n  key_path = \"PATH\"\r\n  region   = \"us-east-1\"\r\n  servers  = \"3\"\r\n}\r\n```\r\n\r\n- Then execute\r\n`terraform get`\r\n\r\n- Verify shared scripts directory is missing\r\n`ls -al ~/_INSTALL_PATH_/.terraform/modules/`\r\n\r\n- Execute\r\n`terraform apply`\r\n\r\n>Error\r\n>\r\n>applying plan:\r\n>\r\n>1 error(s) occurred:\r\n>\r\n>* module.consul.aws_instance.server[0]: 1 error(s) occurred:\r\n>\r\n>* stat /Error applying plan:\r\n>\r\n>1 error(s) occurred:\r\n>\r\n>* module.consul.aws_instance.server[0]: 1 error(s) occurred:\r\n>\r\n>* stat >/_INSTALL_PATH_/modules/.terraform/modules/d830198f4c1a516c9c8db169096cddd5/../shared/scripts/debian_upstart.conf: no such file or directory\r\n>\r\n>Terraform does not automatically rollback in the face of errors.\r\n>Instead, your Terraform state file has been partially updated with\r\n>any resources that successfully completed. Please address the error\r\n>above and apply again to incrementally change your infrastructure.\r\n\r\n### Workaround\r\n\r\n- Create Directories \r\n```\r\nmkdir /_INSTALL_PATH_/.terraform/modules/shared\r\nmkdir /_INSTALL_PATH_/.terraform/modules/shared/scripts\r\n```\r\n\r\n- Download missing scripts\r\n\r\n```\r\ncd /_INSTALL_PATH_/.terraform/modules/shared/scripts\r\nwget https://raw.githubusercontent.com/hashicorp/consul/master/terraform/shared/scripts/install.sh\r\nwget https://raw.githubusercontent.com/hashicorp/consul/master/terraform/shared/scripts/service.sh\r\nwget https://raw.githubusercontent.com/hashicorp/consul/master/terraform/shared/scripts/ip_tables.sh\r\nwget https://raw.githubusercontent.com/hashicorp/consul/master/terraform/shared/scripts/rhel_consul.service\r\nwget https://raw.githubusercontent.com/hashicorp/consul/master/terraform/shared/scripts/rhel_upstart.conf\r\n```"},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/442651133","html_url":"https://github.com/hashicorp/consul/issues/3518#issuecomment-442651133","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/3518","id":442651133,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjY1MTEzMw==","user":{"login":"pearkes","id":846194,"node_id":"MDQ6VXNlcjg0NjE5NA==","avatar_url":"https://avatars0.githubusercontent.com/u/846194?v=4","gravatar_id":"","url":"https://api.github.com/users/pearkes","html_url":"https://github.com/pearkes","followers_url":"https://api.github.com/users/pearkes/followers","following_url":"https://api.github.com/users/pearkes/following{/other_user}","gists_url":"https://api.github.com/users/pearkes/gists{/gist_id}","starred_url":"https://api.github.com/users/pearkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pearkes/subscriptions","organizations_url":"https://api.github.com/users/pearkes/orgs","repos_url":"https://api.github.com/users/pearkes/repos","events_url":"https://api.github.com/users/pearkes/events{/privacy}","received_events_url":"https://api.github.com/users/pearkes/received_events","type":"User","site_admin":false},"created_at":"2018-11-28T23:51:13Z","updated_at":"2018-11-28T23:51:13Z","author_association":"MEMBER","body":"I'm actually looking into migrating our modules in the repository to the [Terraform Module Registry](https://registry.terraform.io/) and then marking them as deprecated as we don't intend to continue maintaining them, but that would move them out of git and give a place for folks to migrate to if they are relying on them today."}}
{"actor":{"display_login":"pearkes"}}