blob: 24e3b8cb2ca9c904a6118e0b09d564c1f6fc7c6f [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# deploy-xos-playbook.yml
19
Andy Baviera6cffe12017-03-15 17:33:42 -040020# This playbook is used for development. It walks through CORD's
21# fetch -> build -> deploy container pipeline for XOS.
22
Zack Williamsa2763112017-01-03 11:38:38 -070023- name: Include vars
24 hosts: all
25 tasks:
26 - name: Include variables
27 include_vars: "{{ item }}"
28 with_items:
29 - "profile_manifests/{{ cord_profile }}.yml"
30 - profile_manifests/local_vars.yml
31
32# for docker, docker-compose
33- include: devel-tools-playbook.yml
34
Andy Baviera6cffe12017-03-15 17:33:42 -040035# pull / build base XOS images
36- include: ../../orchestration/xos/pull-xos-playbook.yml
37- include: ../../orchestration/xos/build-xos-playbook.yml
Andy Bavier1cac0012017-03-13 10:06:18 -040038
Andy Bavier9e7d54a2017-04-17 11:37:02 -040039# build XOS core
40- include: build-platform-install-playbook.yml
41
Zack Williamsc989f262017-05-11 13:02:59 -070042- include: cord-config-playbook.yml
Andy Baviera6cffe12017-03-15 17:33:42 -040043
44- name: Pull other docker images if not present
Andy Bavier1cac0012017-03-13 10:06:18 -040045 hosts: head
46 roles:
Andy Baviera6cffe12017-03-15 17:33:42 -040047 - pull-xos-docker-images
Zack Williamsa2763112017-01-03 11:38:38 -070048
Andy Baviera6cffe12017-03-15 17:33:42 -040049- include: launch-xos-playbook.yml