Your Name | 1816e39 | 2019-12-12 14:02:40 +0000 | [diff] [blame^] | 1 | --- |
| 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: |
| 23 | src: "{{ engine_cache }}/offline/repos/" |
| 24 | 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: |
| 51 | src: "{{ engine_cache }}/offline/images/" |
| 52 | dest: "/httpboot" |
| 53 | become: true |
| 54 | |
| 55 | # vim: set ts=2 sw=2 expandtab: |