-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
(#359) Datacenter support to consul_key_value #365
Conversation
same problem with travis, i asked their support for help |
cd70122
to
d2ed2b5
Compare
This looks pretty good. Can you expand the section on the k/v in the README and then I'll merge and make a major release. |
Sure,
If you can want to wait a little longer.
I was planning on optimizing the code so that we only update consul when we
need changes.
And if you want it in the module:
I am starting to build a function to query the kv.
Something along the lines of:
$data = consul::key_value_query(path)
Jos
…On Mon, 11 Sep 2017 at 16:46, Kyle Anderson ***@***.***> wrote:
This looks pretty good. Can you expand the section on the k/v in the
README and then I'll merge and make a major release.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#365 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAo8rsjAd5ewg6pIxkAh8Vur8EPyNepIks5shUfBgaJpZM4PQ4El>
.
|
Any chance we can see this merged? |
README.md
Outdated
This provider allows you to manage key/value pairs. It tries to be smart in two ways: | ||
|
||
1. It caches the data accessible from the kv store with the specified acl token. | ||
2. It does not update the key if the value & flag are allready correct. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already
README.md
Outdated
|
||
Allowed parameters for this type and their default values: | ||
|
||
Name | Default value | Comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make this more "markdown"y?
omg once again I neglected to click the "submit review" button which has delayed this. @houtmanj please fix the few minor issues and I will merge. It is ok to add future functions in a new PR. |
This includes tests for the provider that mock the consul API.
$ bundle install --without development --path=${BUNDLE_PATH:-vendor/bundle} Fetching gem metadata from https://rubygems.org/...Retrying dependency api due to error (2/3): Bundler::HTTPError Net::HTTPClientError: Too many gems! (use --full-index instead) Retrying dependency api due to error (3/3): Bundler::HTTPError Net::HTTPClientError: Too many gems! (use --full-index instead)
public_suffix is pinned to a version that supports ruby 1.9.3. puppet is updated to 3.8.4 since that is the minimal version for the tests.
Test if the value in the keyvalue store is allready what we want it to be and skip the update. Value and flags are both tested.
This what you intended? |
Looks great! |
(voxpupuli#359) Datacenter support to consul_key_value
This includes tests for the provider that mock the consul API
Fixes #363