Fatih Degirmenci | e799508 | 2019-03-24 20:49:21 +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 | |
Fatih Degirmenci | 665d4f0 | 2019-05-02 10:50:51 -0600 | [diff] [blame^] | 20 | - hosts: baremetal |
| 21 | remote_user: root |
| 22 | gather_facts: true |
| 23 | become: true |
| 24 | vars_files: |
| 25 | - "roles/post-deployment/vars/main.yml" |
| 26 | tasks: |
| 27 | - name: Install necessary utilities for CEPH |
| 28 | apt: |
| 29 | name: |
| 30 | - xfsprogs |
| 31 | - gdisk |
| 32 | state: present |
| 33 | - name: Remove existing rook data directories |
| 34 | file: |
| 35 | path: "{{ rook_data_dir_path }}" |
| 36 | state: absent |
| 37 | ignore_errors: yes |
| 38 | tags: reset |
| 39 | - name: Remove existing rook storage directories |
| 40 | file: |
| 41 | path: "{{ rook_storage_dir_path }}" |
| 42 | state: absent |
| 43 | ignore_errors: yes |
| 44 | tags: reset |
| 45 | - name: Remove existing rook ceph osds |
| 46 | script: "roles/post-deployment/files/clean-ceph-osd.sh {{ rook_node_device_filter }}" |
| 47 | ignore_errors: yes |
| 48 | tags: reset |
| 49 | |
Fatih Degirmenci | e799508 | 2019-03-24 20:49:21 +0000 | [diff] [blame] | 50 | - hosts: localhost |
| 51 | connection: local |
| 52 | gather_facts: true |
| 53 | become: yes |
| 54 | vars_files: |
Fatih Degirmenci | 665d4f0 | 2019-05-02 10:50:51 -0600 | [diff] [blame^] | 55 | - "{{ engine_path }}/engine/var/versions.yml" |
Fatih Degirmenci | e799508 | 2019-03-24 20:49:21 +0000 | [diff] [blame] | 56 | - "{{ engine_path }}/engine/var/global.yml" |
Fatih Degirmenci | 665d4f0 | 2019-05-02 10:50:51 -0600 | [diff] [blame^] | 57 | - "{{ pdf_file }}" |
| 58 | - "{{ idf_file }}" |
Fatih Degirmenci | e799508 | 2019-03-24 20:49:21 +0000 | [diff] [blame] | 59 | |
Fatih Degirmenci | 18c7c31 | 2019-04-09 16:44:45 +0000 | [diff] [blame] | 60 | # TODO: enable the execution of scenario specific post-deployment tasks |
Fatih Degirmenci | e799508 | 2019-03-24 20:49:21 +0000 | [diff] [blame] | 61 | roles: |
| 62 | - role: post-deployment |
| 63 | |
| 64 | # vim: set ts=2 sw=2 expandtab: |