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
This commit is contained in:
slava 2016-01-15 14:41:20 +03:00 committed by Valyavskiy Viacheslav
parent 539db08fa8
commit f82e0e8ea5
2 changed files with 2 additions and 2 deletions

View File

@ -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',
}

View File

@ -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