Skip to content

Commit 9a5a7ed

Browse files
committed
Avoid unresolvable hostname
... to avoid the following error during service startup. ERROR: epmd error for host foobar: nxdomain (non-existing domain)
1 parent 15e539d commit 9a5a7ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/acceptance/clustering_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ class { 'rabbitmq':
6767
end
6868
end
6969

70-
context 'rabbitmq::cluster[:local_node] = foobar' do
70+
context 'rabbitmq::cluster[:local_node] = localhost' do
7171
it 'runs successfully' do
7272
pp = <<-EOS
7373
class { 'erlang': } ->
7474
class { 'rabbitmq':
75-
cluster => { 'name' => 'rabbit_cluster', 'init_node' => 'foobar', 'local_node' => 'foobar' },
75+
cluster => { 'name' => 'rabbit_cluster', 'init_node' => 'localhost', 'local_node' => 'localhost' },
7676
config_cluster => true,
77-
cluster_nodes => ['foobar', 'rabbit2'],
77+
cluster_nodes => ['localhost', 'rabbit2'],
7878
cluster_node_type => 'ram',
79-
environment_variables => { 'NODENAME' => 'rabbit@foobar' },
79+
environment_variables => { 'NODENAME' => 'rabbit@localhost' },
8080
erlang_cookie => 'TESTCOOKIE',
8181
}
8282
EOS

0 commit comments

Comments
 (0)