blob: 165c4a96469f1d83d939144285044679dd7f565b [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
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 Williamsa2763112017-01-03 11:38:38 -070017---
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 Williamsc989f262017-05-11 13:02:59 -070025 dest: "{{ head_cord_profile_dir }}/key_import/{{ item }}"
Zack Williamsa2763112017-01-03 11:38:38 -070026 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 Williamsc989f262017-05-11 13:02:59 -070033 src: "{{ head_cord_dir }}/orchestration/xos_services/exampleservice/xos/exampleservice-onboard.yaml"
34 dest: "{{ head_cord_profile_dir }}/exampleservice-onboard.yaml"
Zack Williamsa2763112017-01-03 11:38:38 -070035
36- name: TOSCA to mount exampleservice volume in XOS container
37 template:
38 src: "xos-exampleservice.yaml.j2"
Zack Williamsc989f262017-05-11 13:02:59 -070039 dest: "{{ head_cord_profile_dir }}/xos-exampleservice.yaml"
Zack Williamsa2763112017-01-03 11:38:38 -070040
41- name: TOSCA to create exampleservice test config
42 template:
43 src: "test-exampleservice.yaml.j2"
Zack Williamsc989f262017-05-11 13:02:59 -070044 dest: "{{ head_cord_profile_dir }}/test-exampleservice.yaml"
Zack Williamsa2763112017-01-03 11:38:38 -070045