blob: fc647856719ae680db248f32ff576e0557644409 [file] [log] [blame]
---
# ============LICENSE_START=======================================================
# Copyright (C) 2019 The Nordix Foundation. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
# Set-up Bifrost dependencies for offline installation
- name: Unpack local repositories in engine cache
synchronize:
src: "{{ engine_workspace }}/offline/git/"
dest: "{{ engine_cache }}/repos"
- name: Create folder to override Bifrost dependencies
file:
path: "{{ engine_cache }}/repos/bifrost/playbooks/roles/bifrost-prep-for-install/vars"
state: directory
- name: Configure local copy of Bifrost dependencies
template:
src: "offline-repos.j2"
dest: "{{ engine_cache }}/repos/bifrost/playbooks/roles/bifrost-prep-for-install/vars/main.yml"
- name: Enable use of local repositories in Bifrost
lineinfile:
path: "{{ engine_cache }}/repos/bifrost/playbooks/roles/bifrost-prep-for-install/defaults/main.yml"
regexp: "^copy_from_local_path:.*"
line: "copy_from_local_path: true"
# This is necessary due to an "&" condition in Bifrost code which should be "|"
- name: Enable use of local repositories in Bifrost
lineinfile:
path: "{{ engine_cache }}/repos/bifrost/playbooks/roles/bifrost-prep-for-install/defaults/main.yml"
regexp: "^ci_testing_zuul:.*"
line: "ci_testing_zuul: true"
- name: Copy offline images
synchronize:
src: "{{ engine_workspace }}/offline/dib/"
dest: "/httpboot"
become: true
# vim: set ts=2 sw=2 expandtab: