Andy Bavier | 094e716 | 2016-11-02 17:01:22 -0400 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Adds OpenCloud Sites, Deployments, and Controllers. |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | |
| 8 | topology_template: |
| 9 | node_templates: |
| 10 | |
| 11 | # Nodes |
| 12 | trusty-server-multi-nic: |
| 13 | type: tosca.nodes.Image |
| 14 | properties: |
| 15 | disk_format: QCOW2 |
| 16 | container_format: BARE |
| 17 | |
| 18 | campus: |
| 19 | type: tosca.nodes.Deployment |
| 20 | properties: |
| 21 | flavors: m1.large, m1.medium, m1.small |
| 22 | requirements: |
| 23 | - image: |
| 24 | node: trusty-server-multi-nic |
| 25 | relationship: tosca.relationships.SupportsImage |
| 26 | |
| 27 | # controllers |
| 28 | campus-arizona: |
| 29 | type: tosca.nodes.Controller |
| 30 | requirements: |
| 31 | - deployment: |
| 32 | node: campus |
| 33 | relationship: tosca.relationships.ControllerDeployment |
| 34 | properties: |
| 35 | backend_type: CORD |
| 36 | version: 1.1 |
| 37 | auth_url: http://192.168.33.10:9999/ |
| 38 | admin_user: padmin@vicci.org |
| 39 | admin_password: letmein |
| 40 | admin_tenant: admin |
| 41 | domain: Default |
| 42 | |
| 43 | # Sites |
| 44 | arizona: |
| 45 | type: tosca.nodes.Site |
| 46 | properties: |
| 47 | display_name: Arizona |
| 48 | site_url: http://opencloud.us/ |
| 49 | hosts_nodes: false |
| 50 | requirements: |
| 51 | - deployment: |
| 52 | node: campus |
| 53 | relationship: tosca.relationships.MemberOfDeployment |
| 54 | - controller: |
| 55 | node: campus-arizona |
| 56 | relationship: tosca.relationships.UsesController |
| 57 | |
| 58 | # Users |
| 59 | padmin@vicci.org: |
| 60 | type: tosca.nodes.User |
| 61 | requirements: |
| 62 | - site: |
| 63 | node: arizona |
| 64 | relationship: tosca.relationships.MemberOfSite |
| 65 | properties: |
| 66 | is_admin: true |
| 67 | is_active: true |
| 68 | firstname: XOS |
| 69 | lastname: admin |
| 70 | password: letmein |
| 71 | |
| 72 | acb@cs.princeton.edu: |
| 73 | type: tosca.nodes.User |
| 74 | requirements: |
| 75 | - site: |
| 76 | node: arizona |
| 77 | relationship: tosca.relationships.MemberOfSite |
| 78 | properties: |
| 79 | is_admin: true |
| 80 | is_active: true |
| 81 | firstname: Andy |
| 82 | lastname: Bavier |
| 83 | password: letmein |
| 84 | |
| 85 | # Slices |
| 86 | arizona_myslice: |
| 87 | description: A test slice at the Arizona site |
| 88 | type: tosca.nodes.Slice |
| 89 | properties: |
| 90 | network: noauto |
| 91 | requirements: |
| 92 | - site: |
| 93 | node: arizona |
| 94 | relationship: tosca.relationships.MemberOfSite |
| 95 | - privilege: |
| 96 | node: acb@cs.princeton.edu |
| 97 | relationship: tosca.relationships.AccessPrivilege |
| 98 | - image: |
| 99 | node: trusty-server-multi-nic |
| 100 | relationship: tosca.relationships.DefaultImage |
| 101 | # Services |