blob: 45d7075b26659a22c9d296a7e59d6ac6daa57e54 [file] [log] [blame]
Matteo Scandoloede125b2017-08-08 13:05:25 -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
Scott Bakerc41914d2017-06-26 14:00:52 -070017---
18- hosts: localhost
19 vars:
20 amc_hostname: "localhost:3456"
21 amc_username: "co@opencloud.us"
22 amc_password: "XOScdn123$"
23 amc_plc_name: "CoBlitz Test"
24 tasks:
25 - name: Create service provider
26 act_sp:
27 name: cord
28 account: cord
29 enabled: true
30 username: "{{ amc_username }}"
31 password: "{{ amc_password }}"
32 hostname: "{{ amc_hostname }}"
33 plc_name: "{{ amc_plc_name }}"
34 state: present
35
36 - name: Create content provider
37 act_cp:
38 name: cord
39 account: cord
40 enabled: true
41 service_provider: cord
42 username: "{{ amc_username }}"
43 password: "{{ amc_password }}"
44 hostname: "{{ amc_hostname }}"
45 plc_name: "{{ amc_plc_name }}"
46 state: present
47
48 - name: Create origin server
49 act_origin:
50 url: "{{ item }}"
51 content_provider: cord
52 username: "{{ amc_username }}"
53 password: "{{ amc_password }}"
54 hostname: "{{ amc_hostname }}"
55 plc_name: "{{ amc_plc_name }}"
56 state: present
57 with_items:
58 - http://www.cs.arizona.edu
59 - http://onlab.vicci.org
60
61 - name: Create CDN Prefix
62 act_cdnprefix:
63 cdn_prefix: "{{ item.cdn_prefix }}"
64 default_origin_server: "{{ item.default_origin_server }}"
65 content_provider: cord
66 enabled: True
67 username: "{{ amc_username }}"
68 password: "{{ amc_password }}"
69 hostname: "{{ amc_hostname }}"
70 plc_name: "{{ amc_plc_name }}"
71 state: present
72 with_items:
73 - cdn_prefix: test.vicci.org
74 default_origin_server: http://www.cs.arizona.edu
75 - cdn_prefix: onlab.vicci.org
76 default_origin_server: http://onlab.vicci.org
77
78