blob: fc647856719ae680db248f32ff576e0557644409 [file] [log] [blame]
Your Name1816e392019-12-12 14:02:40 +00001---
2# ============LICENSE_START=======================================================
3# Copyright (C) 2019 The Nordix Foundation. All rights reserved.
4# ================================================================================
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17# SPDX-License-Identifier: Apache-2.0
18# ============LICENSE_END=========================================================
19
20# Set-up Bifrost dependencies for offline installation
21- name: Unpack local repositories in engine cache
22 synchronize:
Fatih Degirmenci481f2fd2020-03-03 14:27:19 +000023 src: "{{ engine_workspace }}/offline/git/"
Your Name1816e392019-12-12 14:02:40 +000024 dest: "{{ engine_cache }}/repos"
25
26- name: Create folder to override Bifrost dependencies
27 file:
28 path: "{{ engine_cache }}/repos/bifrost/playbooks/roles/bifrost-prep-for-install/vars"
29 state: directory
30
31- name: Configure local copy of Bifrost dependencies
32 template:
33 src: "offline-repos.j2"
34 dest: "{{ engine_cache }}/repos/bifrost/playbooks/roles/bifrost-prep-for-install/vars/main.yml"
35
36- name: Enable use of local repositories in Bifrost
37 lineinfile:
38 path: "{{ engine_cache }}/repos/bifrost/playbooks/roles/bifrost-prep-for-install/defaults/main.yml"
39 regexp: "^copy_from_local_path:.*"
40 line: "copy_from_local_path: true"
41
42# This is necessary due to an "&" condition in Bifrost code which should be "|"
43- name: Enable use of local repositories in Bifrost
44 lineinfile:
45 path: "{{ engine_cache }}/repos/bifrost/playbooks/roles/bifrost-prep-for-install/defaults/main.yml"
46 regexp: "^ci_testing_zuul:.*"
47 line: "ci_testing_zuul: true"
48
49- name: Copy offline images
50 synchronize:
Fatih Degirmenci481f2fd2020-03-03 14:27:19 +000051 src: "{{ engine_workspace }}/offline/dib/"
Your Name1816e392019-12-12 14:02:40 +000052 dest: "/httpboot"
53 become: true
54
55# vim: set ts=2 sw=2 expandtab: