blob: 45d7075b26659a22c9d296a7e59d6ac6daa57e54 [file] [log] [blame]
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
- hosts: localhost
vars:
amc_hostname: "localhost:3456"
amc_username: "co@opencloud.us"
amc_password: "XOScdn123$"
amc_plc_name: "CoBlitz Test"
tasks:
- name: Create service provider
act_sp:
name: cord
account: cord
enabled: true
username: "{{ amc_username }}"
password: "{{ amc_password }}"
hostname: "{{ amc_hostname }}"
plc_name: "{{ amc_plc_name }}"
state: present
- name: Create content provider
act_cp:
name: cord
account: cord
enabled: true
service_provider: cord
username: "{{ amc_username }}"
password: "{{ amc_password }}"
hostname: "{{ amc_hostname }}"
plc_name: "{{ amc_plc_name }}"
state: present
- name: Create origin server
act_origin:
url: "{{ item }}"
content_provider: cord
username: "{{ amc_username }}"
password: "{{ amc_password }}"
hostname: "{{ amc_hostname }}"
plc_name: "{{ amc_plc_name }}"
state: present
with_items:
- http://www.cs.arizona.edu
- http://onlab.vicci.org
- name: Create CDN Prefix
act_cdnprefix:
cdn_prefix: "{{ item.cdn_prefix }}"
default_origin_server: "{{ item.default_origin_server }}"
content_provider: cord
enabled: True
username: "{{ amc_username }}"
password: "{{ amc_password }}"
hostname: "{{ amc_hostname }}"
plc_name: "{{ amc_plc_name }}"
state: present
with_items:
- cdn_prefix: test.vicci.org
default_origin_server: http://www.cs.arizona.edu
- cdn_prefix: onlab.vicci.org
default_origin_server: http://onlab.vicci.org