1111Role Variables
1212--------------
1313
14- | Name | Type | Default | Example | Description |
15- | -----------------------------| --------| -------------------------------------------| ---------------------| --------------------------------------------------------------------------------|
16- | ` private_fireedge_endpoint ` | ` str ` | ` http://localhost:2616 ` | | FireEdge URL used internally in Sunstone / reverse proxies. |
17- | ` one_token ` | ` str ` | undefined | ` asd123as:123asd12 ` | OpenNebula Enterprise Edition subscription token. |
18- | ` one_fqdn ` | ` str ` | undefined | ` nebula.example.io ` | Fully qualified domain name of the OpenNebula instance. |
19- | ` one_vip ` | ` str ` | undefined | ` 10.11.12.13 ` | When OpenNebula is in HA mode it points to the Leader. |
20- | ` ssl.web_server ` | ` enum ` | ` apache ` | (check below) | Enable reverse proxy with SSL termination with Apache2 or nginx over HTTPS/443.|
21- | ` ssl.key ` | ` str ` | ` /etc/ssl/private/opennebula-key.pem ` | | Private key path on the target Front-end (the file must be readable). |
22- | ` ssl.certchain ` | ` str ` | ` /etc/ssl/certs/opennebula-certchain.pem ` | | Certificate chain path on the target Front-end (the file must be readable). |
23- | ` ssl.generate_cert ` | ` bool ` | ` false ` | ` true ` | Generate a CA and a certificate signed by that CA for the reverse proxy. |
14+ | Name | Type | Default | Example | Description |
15+ | --------------------------------| --------| --------------------------------------------------------| ---------------------| ----------------------------------------------------------------------------------|
16+ | ` private_fireedge_endpoint ` | ` str ` | ` http://localhost:2616 ` | | FireEdge URL used internally in Sunstone / reverse proxies. |
17+ | ` one_token ` | ` str ` | undefined | ` asd123as:123asd12 ` | OpenNebula Enterprise Edition subscription token. |
18+ | ` one_fqdn ` | ` str ` | undefined | ` nebula.example.io ` | Fully qualified domain name of the OpenNebula instance. |
19+ | ` one_vip ` | ` str ` | undefined | ` 10.11.12.13 ` | When OpenNebula is in HA mode it points to the Leader. |
20+ | ` ssl.web_server ` | ` enum ` | ` apache ` | (check below) | Enable reverse proxy with SSL termination with Apache2 or nginx over HTTPS/443. |
21+ | ` ssl.key ` | ` str ` | ` /etc/ssl/private/opennebula-key.pem ` | | Private key path on the target Front-end (the file must be readable). |
22+ | ` ssl.certchain ` | ` str ` | ` /etc/ssl/certs/opennebula-certchain.pem ` | | Certificate chain path on the target Front-end (the file must be readable). |
23+ | ` ssl.generate_cert ` | ` bool ` | ` false ` | ` true ` | Generate a CA and a certificate signed by that CA for the reverse proxy. |
24+ | ` sunstone_views_base_dir ` | ` str ` | ` /etc/one/fireedge/sunstone/views/ ` | | Default destination for view definitions on OpenNebula Front-ends. |
25+ | ` sunstone_views_config_file ` | ` str ` | ` /etc/one/fireedge/sunstone/views/sunstone-views.yaml ` | | Default sunstone-views.yaml file path on OpenNebula Front-ends. |
26+ | ` sunstone_views[].name ` | ` str ` | undefined | ` customview ` | A name of the view (a key inside sunstone_views.yml). |
27+ | ` sunstone_views[].label ` | ` str ` | undefined | ` Custom View ` | A label of the view (visible in Sunstone UI). |
28+ | ` sunstone_views[].description ` | ` str ` | undefined | ` A custom view ` | A description of the view. |
29+ | ` sunstone_views[].groups ` | ` list ` | undefined | ` [users] ` | Members of these groups can use the view in Sunstone UI. |
30+ | ` sunstone_views[].source_dir ` | ` str ` | undefined | ` customview ` | A directory relative to "{{ inventory_dir }}/views/" containing view definition. |
2431
2532Dependencies
2633------------
@@ -39,6 +46,12 @@ Example Playbook
3946 web_server: nginx
4047 key: /etc/ssl/private/ssl-cert-snakeoil.key
4148 certchain: /etc/ssl/certs/ssl-cert-snakeoil.pem
49+ sunstone_views:
50+ - name: customview
51+ label: Custom View
52+ description: A custom view
53+ groups: [oneadmin, users]
54+ source_dir: customview/ # "{{ inventory_dir }}/views/customview/" -> "{{ sunstone_views_base_dir }}/customview/"
4255 roles:
4356 - role: opennebula.deploy.helper.facts
4457 - role: opennebula.deploy.gui
0 commit comments