Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 17 | --- |
| 18 | # exampleservice-config/tasks/main.yml |
| 19 | |
| 20 | - name: Create fake/empty ssh keys if profile hasn't created them |
| 21 | copy: |
| 22 | remote_src: True # file is local to the remote machine |
| 23 | force: False # only copy if destination file doesn't exist |
| 24 | src: "/dev/null" |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 25 | dest: "{{ head_cord_profile_dir }}/key_import/{{ item }}" |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 26 | mode: 0600 |
| 27 | with_items: |
| 28 | - exampleservice_rsa |
| 29 | - exampleservice_rsa.pub |
| 30 | |
| 31 | - name: Copy exampleservice onboarding TOSCA files to cord_profile |
| 32 | copy: |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 33 | src: "{{ head_cord_dir }}/orchestration/xos_services/exampleservice/xos/exampleservice-onboard.yaml" |
| 34 | dest: "{{ head_cord_profile_dir }}/exampleservice-onboard.yaml" |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 35 | |
| 36 | - name: TOSCA to mount exampleservice volume in XOS container |
| 37 | template: |
| 38 | src: "xos-exampleservice.yaml.j2" |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 39 | dest: "{{ head_cord_profile_dir }}/xos-exampleservice.yaml" |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 40 | |
| 41 | - name: TOSCA to create exampleservice test config |
| 42 | template: |
| 43 | src: "test-exampleservice.yaml.j2" |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 44 | dest: "{{ head_cord_profile_dir }}/test-exampleservice.yaml" |
Zack Williams | a276311 | 2017-01-03 11:38:38 -0700 | [diff] [blame] | 45 | |