From f82e0e8ea57fe3c5c43da68a46f125bf70394163 Mon Sep 17 00:00:00 2001 From: slava Date: Fri, 15 Jan 2016 14:41:20 +0300 Subject: [PATCH] Add loopback ip into direct repo addresses array Some of repositories are located on master node by default. All external repositories will be accessible through proxy instead of local repositories in case fuel master is isolated. Change-Id: Ia62d7ea5567e76584f962d5bd17b1378b2688fe1 Closes-bug: #1533227 --- deployment/puppet/nailgun/examples/host-only.pp | 2 +- tests/noop/spec/hosts/master/host-only_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/puppet/nailgun/examples/host-only.pp b/deployment/puppet/nailgun/examples/host-only.pp index 3538761c23..a913d68df3 100644 --- a/deployment/puppet/nailgun/examples/host-only.pp +++ b/deployment/puppet/nailgun/examples/host-only.pp @@ -94,7 +94,7 @@ class { 'nailgun::client': class { 'nailgun::bootstrap_cli': settings => $::fuel_settings['BOOTSTRAP'], - direct_repo_addresses => [ $::fuel_settings['ADMIN_NETWORK']['ipaddress'] ], + direct_repo_addresses => [ $::fuel_settings['ADMIN_NETWORK']['ipaddress'], '127.0.0.1' ], bootstrap_cli_package => 'fuel-bootstrap-cli', config_path => '/etc/fuel-bootstrap-cli/fuel_bootstrap_cli.yaml', } diff --git a/tests/noop/spec/hosts/master/host-only_spec.rb b/tests/noop/spec/hosts/master/host-only_spec.rb index 3163000cd1..ca17313598 100644 --- a/tests/noop/spec/hosts/master/host-only_spec.rb +++ b/tests/noop/spec/hosts/master/host-only_spec.rb @@ -26,7 +26,7 @@ describe manifest do } additional_settings_hash = { - 'direct_repo_addresses' => ['10.109.0.2'] + 'direct_repo_addresses' => ['10.109.0.2', '127.0.0.1'] } it 'should declare nailgun::bootstrap_cli class with proper arguments' do