blob: c13f0ebf9e08cf357923ba102558571e9a32a0e5 [file] [log] [blame]
Andy Bavier24926192016-01-29 11:42:29 -05001tosca_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
42 relationship: tosca.relationships.SiteDeployment
43 requirements:
44 - controller:
45 node: MyOpenStack
46 relationship: tosca.relationships.UsesController
47
48 # This user already exists in XOS with this password
49 # It's an example of how to create new users
50 padmin@vicci.org:
51 type: tosca.nodes.User
52 requirements:
53 - site:
54 node: mysite
55 relationship: tosca.relationships.MemberOfSite
56 properties:
57 is_admin: true
58 is_active: true
59 firstname: XOS
60 lastname: admin
61 password: letmein