-
-
Notifications
You must be signed in to change notification settings - Fork 476
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
Azure Snapshot Repository #1087
base: master
Are you sure you want to change the base?
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
Jenkins test this please |
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.
@jtbrush56 Thank you for taking the time to make these additions.
A few comments that need addressing.
I'd also like to see the new properites added to the unit tests.[1][2]
Also, could you add an example to the README.md[3]
[1] https://github.com/elastic/puppet-elasticsearch/blob/master/spec/unit/type/elasticsearch_snapshot_repository_spec.rb
[2] https://github.com/elastic/puppet-elasticsearch/blob/master/spec/unit/provider/elasticsearch_snapshot_repository/ruby_spec.rb
[3] https://github.com/elastic/puppet-elasticsearch#snapshot-repositories
:base_path => api_object['settings']['base_path'], | ||
:client => api_object['settings']['client'], | ||
:readonly => api_object['settigns']['readonly'], | ||
:location_mode => api_object['settings']['location_mode'], |
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.
These new fields will need to be added as optional
fields on the generate_body
method below.
@@ -32,6 +32,30 @@ | |||
newproperty(:location) do | |||
desc 'Repository location' | |||
end | |||
|
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.
Looks like rubocop
is complaining about trailing whitespace here.
end | ||
|
||
newproperty(:container) do | ||
defaultto 'elasticsearch-snapshots' |
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.
I don't think we should set a default
value for this field. Instead it should be a conscious decision by the user as to what they want to call their Azure container.
@@ -37,7 +37,22 @@ | |||
# Snapshot repository type. | |||
# | |||
# @param location | |||
# Location of snapshots. Mandatory | |||
# Location of snapshots. |
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.
This field is still mandatory when type => "fs"
, so we should state that.
manifests/snapshot_repository.pp
Outdated
Enum['absent', 'present'] $ensure = 'present', | ||
Optional[String] $client = undef, |
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 sort out the alignment on these lines? Should all align on =
.
updated with requested changes. |
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.
It looks like rubocop
is still complaining about trailing whitespace on https://github.com/elastic/puppet-elasticsearch/pull/1087/files#diff-9240f318e7e1ac50308c77dfa32622ddR49-R54
You should be able to test rubocop
locally by running bundle exec rake rubocop
.
Dear @jtbrush56, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli Github Bot. I noticed that your pull request has CI failures. Can you please have a look at the failing CI jobs? |
Dear @jtbrush56, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Pull request acceptance prerequisites: