Updated bootstrap repos after fuel-bootstrap-cli reinstall
Default fuel-bootstrap-cli conf file which is provided by the package does not contain repos. We need to update repos from astute.yaml before being able to build bootstrap image. Change-Id: I30ed1c372e7b2107f810e784c1d56807d3412527 Closes-Bug: #1644411
This commit is contained in:
parent
a9d37168cd
commit
bd45d96f39
|
@ -430,9 +430,18 @@ def check_package_version_injected_in_bootstraps(
|
|||
def update_bootstrap_cli_yaml():
|
||||
actions = BaseActions()
|
||||
path = "/etc/fuel-bootstrap-cli/fuel_bootstrap_cli.yaml"
|
||||
new_repo = {'name': 'auxiliary', 'priority': "1200",
|
||||
'section': 'main restricted',
|
||||
'suite': 'auxiliary', 'type': 'deb',
|
||||
'uri': 'http://127.0.0.1:8080/ubuntu/auxiliary/'}
|
||||
astute_yaml_path = "/etc/fuel/astute.yaml"
|
||||
|
||||
with YamlEditor(astute_yaml_path, ip=actions.admin_ip) as editor:
|
||||
repos = editor.content["BOOTSTRAP"]["repos"]
|
||||
|
||||
repos.append({
|
||||
'name': 'auxiliary',
|
||||
'priority': "1200",
|
||||
'section': 'main restricted',
|
||||
'suite': 'auxiliary',
|
||||
'type': 'deb',
|
||||
'uri': 'http://127.0.0.1:8080/ubuntu/auxiliary/'})
|
||||
|
||||
with YamlEditor(path, ip=actions.admin_ip) as editor:
|
||||
editor.content['repos'].append(new_repo)
|
||||
editor.content['repos'] = repos
|
||||
|
|
Loading…
Reference in New Issue