blob: 20b1b12b4db0d18bc114c69d4b0bf26e6bb2782f [file] [log] [blame]
Scott Bakerf93a06c2016-07-11 17:04:49 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: >
4 * Adds OpenCloud Sites, Deployments, and Controllers.
5
6imports:
7 - custom_types/xos.yaml
8
9topology_template:
10 node_templates:
11
12 MyDeployment:
13 type: tosca.nodes.Deployment
14 properties:
15 flavors: m1.large, m1.medium, m1.small
16
17 MyOpenStack:
18 type: tosca.nodes.Controller
19 requirements:
20 - deployment:
21 node: MyDeployment
22 relationship: tosca.relationships.ControllerDeployment
23 properties:
24 backend_type: OpenStack
25 version: Kilo
26 auth_url: { get_script_env: [ SELF, adminrc, OS_AUTH_URL, LOCAL_FILE] }
27 admin_user: { get_script_env: [ SELF, adminrc, OS_USERNAME, LOCAL_FILE] }
28 admin_password: { get_script_env: [ SELF, adminrc, OS_PASSWORD, LOCAL_FILE] }
29 admin_tenant: { get_script_env: [ SELF, adminrc, OS_TENANT_NAME, LOCAL_FILE] }
30 domain: Default
31 artifacts:
32 adminrc: /root/setup/admin-openrc.sh
33
34 mysite:
35 type: tosca.nodes.Site
36 properties:
37 display_name: MySite
38 site_url: http://xosproject.org/
39 requirements:
40 - deployment:
41 node: MyDeployment
Scott Baker039cb682016-10-06 15:18:46 -070042 relationship: tosca.relationships.MemberOfDeployment
43 - controller:
44 node: MyOpenStack
45 relationship: tosca.relationships.UsesController
Scott Bakerf93a06c2016-07-11 17:04:49 -070046
47 # This user already exists in XOS with this password
48 # It's an example of how to create new users
49 padmin@vicci.org:
50 type: tosca.nodes.User
51 requirements:
52 - site:
53 node: mysite
54 relationship: tosca.relationships.MemberOfSite
55 properties:
56 is_admin: true
57 is_active: true
58 firstname: XOS
59 lastname: admin
60 password: letmein