-
Notifications
You must be signed in to change notification settings - Fork 28
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
INT-536_remove_aws_config #34
Conversation
34e9204
to
c3e1fa6
Compare
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.
+1 LGTM but I'll admin I don't know chef well so feel free to consider this a +0 😀
recipes/hazelcast.rb
Outdated
@@ -0,0 +1,14 @@ | |||
# |
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 this should be called hazelcast but rather aws-hazelcast or something indicating it is for aws?
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 is not strictly AWS specific (also supports static, multicast,..). so I renamed it to ha-hazelcast.
we might add HA for redhat or cubernetes,... c4917c8
recipes/hazelcast.rb
Outdated
hazelcast_xml = node['nexus_repository_manager']['nexus_home']['path'] + '/etc/fabric/hazelcast.xml' | ||
|
||
template hazelcast_xml do | ||
source 'hazelcast.xml.erb' |
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.
Likewise this file should indicate it's aws specific.
a0a0346
to
7017fc8
Compare
381cccd
to
c4917c8
Compare
a816775
to
2c9342c
Compare
bdd7728
to
ef15abb
Compare
b5d902b
to
a0ce7fa
Compare
its('content') { should include '<password>nexus123</password>' } | ||
end | ||
|
||
context 'when multicast is enabled' do |
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 we dropped tests for some of these? They are still in the template.
- multicast enabled
- tcp-ip disabled
- aws disabled
- iam_role
- region
- tag key/value
- hazelcast discovery disabled
Do we not need to test these?
+1 pending the answer to this question
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 tests are removed only from this place because they no longer apply to the default configuration, but they are duplicated across all the other tests. for example (not exclusively):
multicast enabled is here: https://github.com/sonatype/chef-nexus-repository-manager/blob/master/test/smoke/multicast_enabled/configure_test.rb#L13
tcp-ip disabled: https://github.com/sonatype/chef-nexus-repository-manager/blob/master/test/smoke/multicast_enabled/configure_test.rb#L29
aws disabled: https://github.com/sonatype/chef-nexus-repository-manager/blob/master/test/smoke/multicast_enabled/configure_test.rb#L25
discovery disabled: https://github.com/sonatype/chef-nexus-repository-manager/blob/master/test/smoke/aws_enabled/configure_test.rb#L41
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.
Great! Thanks!
a0ce7fa
to
2efff6c
Compare
2efff6c
to
abffc63
Compare
Description
Hazelcast configuration is no longer updated in the default recipe when building docker images.
Jira
https://issues.sonatype.org/browse/INT-536
Screencast
https://youtu.be/-qaquP14mJw