Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework devcamcar's OpenStack Swift remote for new style state/remote. #2254

Merged
merged 4 commits into from
Jun 8, 2015
Merged

Rework devcamcar's OpenStack Swift remote for new style state/remote. #2254

merged 4 commits into from
Jun 8, 2015

Conversation

hartzell
Copy link
Contributor

@hartzell hartzell commented Jun 6, 2015

@devcamcar had a pull request that added a useful feature but used the old style remote interface.

I've remixed it to work with the state/remote interface. Get() changed up a bit to work with the current Gophercloud API's, but otherwise it's a straight transmogrification of his work.

It works with our Nebula (RIP) OpenStack cloud.

George Hartzell added 4 commits June 5, 2015 12:10
Rework devcamcar's OpenStack Swift remote [pull
request](#942) to work with
Terraform's new `state/remote` and Gophercloud's current implementation.

`Get()` changed up a bit from devcamcar's version (using different
Gopercloud functionality resulted in less fussing around to figure out
the error case).

Otherwise this is a transliteration/remix of his ideas.
Rework devcamcar's OpenStack Swift remote [pull
request](#942) to work with
Terraform's new `state/remote` and Gophercloud's current implementation.

`Get()` changed up a bit from devcamcar's version (using different
Gopercloud functionality resulted in less fussing around to figure out
the error case).

Otherwise this is a transliteration/remix of his ideas.
Only run the Swift remote tests when OpenStack seems
to have been set up and when the autho host is reachable.
@hartzell
Copy link
Contributor Author

hartzell commented Jun 6, 2015

ps. I wonder if there are places in the documentation that I should have mentioned this change?

@mitchellh
Copy link
Contributor

This LGTM. Great job. I'll update the website sources.

mitchellh added a commit that referenced this pull request Jun 8, 2015
Rework devcamcar's OpenStack Swift remote for new style state/remote.
@mitchellh mitchellh merged commit 6836bd5 into hashicorp:master Jun 8, 2015
@hartzell
Copy link
Contributor Author

hartzell commented Jun 8, 2015

I've been trying to use the thing that I've helped create, and I'm confused.

The purpose of the remote storage of state is to avoid having to keep the state file consistent amongst multiple copies of the configuration directory (e.g. multiple users or work vs. home machines or...).

Before remote storage existed, the state file could be kept consistent by committing it to source code control.

Now it seems that we have to keep track of the fact that a system is using a particular remote state configuration by keeping the .terraform/terraform.state file in source control.

We've traded an obvious file for a non-obvious file.

It seems like it would make more sense to specify the remote state configuration in the config file with the rest of the system definition?

[Is there a thread where this was discussed? I feel as if there's a mailing list or a chat room or .... that I should be following].

@ghost
Copy link

ghost commented May 2, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants