Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Improve etcd managed by docker UX #21

Merged
merged 1 commit into from
Apr 24, 2017
Merged

Improve etcd managed by docker UX #21

merged 1 commit into from
Apr 24, 2017

Conversation

bogdando
Copy link
Contributor

  • Synch config opts from official docs
  • Add member's enable_v2, quota_backend_bytes and
    cluster's force_new_cluster config params
  • Add a YAML conf file and ensure it under the
    /etc/etcd/etcd.yml, owned by the etcd u/g.
    This may to be used on a user's will, e.g.:
    "docker run .. /usr/bin/etcd --config-file..."

Closes #20
Related #17

Signed-off-by: Bogdan Dobrelya bogdando@mail.ru

@bogdando
Copy link
Contributor Author

@cristifalcas
Copy link
Owner

Hey @bogdando , thank you for the PR and sorry that it took so long to check it.

I didn't checked the yaml file, but I presume it's ok.

The only issue I have is with force_new_cluster. I don't see any benefits for this to exist in puppet and I can see it only as very dangerous. When it's needed, it's probably safer to do it manually.

@bogdando
Copy link
Contributor Author

@cristifalcas Thanks! The YAML config worked for me as I tested etcd in a container depoloyed by TripleO (OpenStack installer).
Note, I've added force_new_cluster as it presents in the example config file for the etcd repo. It is defaults to false and looks safe enough. I could remove it as well, np. Just let me know.

@cristifalcas
Copy link
Owner

cristifalcas commented Apr 21, 2017

I would prefer the parameter to be removed. I don't see any scenario where multiple runs with the parameter set to true is desired. So, I see it as "one time use" only.

And I find it dangerous to provide it for automation.

* Synch config opts from official docs
* Add member's enable_v2, quota_backend_bytes and
  cluster's force_new_cluster config params.
* Never force_new_cluster, it is a one-shot op, it
  might be destructive for periodic configuration
  management enforcement runs. Set it to False to
  protect from defaults' future changes as well.
* Add a YAML conf file and ensure it under the
  /etc/etcd/etcd.yml, owned by the etcd u/g.
  This may to be used on a user's will, e.g.:
  "docker run .. /usr/bin/etcd --config-file..."

Closes #20
Related #17

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
@bogdando
Copy link
Contributor Author

@cristifalcas Hi, done!

@cristifalcas
Copy link
Owner

Thank you @bogdando

@cristifalcas cristifalcas merged commit f44a69b into cristifalcas:master Apr 24, 2017
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.

3 participants