Scott Baker | c41914d | 2017-06-26 14:00:52 -0700 | [diff] [blame^] | 1 | --- |
| 2 | - hosts: localhost |
| 3 | vars: |
| 4 | amc_hostname: "localhost:3456" |
| 5 | amc_username: "co@opencloud.us" |
| 6 | amc_password: "XOScdn123$" |
| 7 | amc_plc_name: "CoBlitz Test" |
| 8 | tasks: |
| 9 | - name: Create service provider |
| 10 | act_sp: |
| 11 | name: cord |
| 12 | account: cord |
| 13 | enabled: true |
| 14 | username: "{{ amc_username }}" |
| 15 | password: "{{ amc_password }}" |
| 16 | hostname: "{{ amc_hostname }}" |
| 17 | plc_name: "{{ amc_plc_name }}" |
| 18 | state: present |
| 19 | |
| 20 | - name: Create content provider |
| 21 | act_cp: |
| 22 | name: cord |
| 23 | account: cord |
| 24 | enabled: true |
| 25 | service_provider: cord |
| 26 | username: "{{ amc_username }}" |
| 27 | password: "{{ amc_password }}" |
| 28 | hostname: "{{ amc_hostname }}" |
| 29 | plc_name: "{{ amc_plc_name }}" |
| 30 | state: present |
| 31 | |
| 32 | - name: Create origin server |
| 33 | act_origin: |
| 34 | url: "{{ item }}" |
| 35 | content_provider: cord |
| 36 | username: "{{ amc_username }}" |
| 37 | password: "{{ amc_password }}" |
| 38 | hostname: "{{ amc_hostname }}" |
| 39 | plc_name: "{{ amc_plc_name }}" |
| 40 | state: present |
| 41 | with_items: |
| 42 | - http://www.cs.arizona.edu |
| 43 | - http://onlab.vicci.org |
| 44 | |
| 45 | - name: Create CDN Prefix |
| 46 | act_cdnprefix: |
| 47 | cdn_prefix: "{{ item.cdn_prefix }}" |
| 48 | default_origin_server: "{{ item.default_origin_server }}" |
| 49 | content_provider: cord |
| 50 | enabled: True |
| 51 | username: "{{ amc_username }}" |
| 52 | password: "{{ amc_password }}" |
| 53 | hostname: "{{ amc_hostname }}" |
| 54 | plc_name: "{{ amc_plc_name }}" |
| 55 | state: present |
| 56 | with_items: |
| 57 | - cdn_prefix: test.vicci.org |
| 58 | default_origin_server: http://www.cs.arizona.edu |
| 59 | - cdn_prefix: onlab.vicci.org |
| 60 | default_origin_server: http://onlab.vicci.org |
| 61 | |
| 62 | |