horizon.xml revision 6854
6854N/A<?xml version="1.0" ?>
6854N/A<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
6854N/A<!--
6854N/A Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6854N/A
6854N/A Licensed under the Apache License, Version 2.0 (the "License"); you may
6854N/A not use this file except in compliance with the License. You may obtain
6854N/A a copy of the License at
6854N/A
6854N/A http://www.apache.org/licenses/LICENSE-2.0
6854N/A
6854N/A Unless required by applicable law or agreed to in writing, software
6854N/A distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
6854N/A WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
6854N/A License for the specific language governing permissions and limitations
6854N/A under the License.
6854N/A
6854N/A NOTE: This service manifest is not editable; its contents will
6854N/A be overwritten by package or patch operations, including
6854N/A operating system upgrade. Make customizations in a different
6854N/A file.
6854N/A-->
6854N/A<service_bundle type="manifest" name="horizon">
6854N/A
6854N/A <service version="1" type="service"
6854N/A name="application/openstack/horizon">
6854N/A
6854N/A <dependency name='multiuser' grouping='require_all' restart_on='error'
6854N/A type='service'>
6854N/A <service_fmri value='svc:/milestone/multi-user:default' />
6854N/A </dependency>
6854N/A
6854N/A <dependency name='upgrade' grouping='require_all' restart_on='none'
6854N/A type='service'>
6854N/A <service_fmri
6854N/A value='svc:/application/openstack/horizon/horizon-upgrade' />
6854N/A </dependency>
6854N/A
6854N/A <exec_method timeout_seconds="60" type="method" name="start"
6854N/A exec="/lib/svc/method/horizon %m">
6854N/A <method_context>
6854N/A <method_credential user='webservd' group='webservd'
6854N/A privileges='basic,{zone}:/system/volatile/openstack_dashboard_wsgi_*'/>
6854N/A </method_context>
6854N/A </exec_method>
6854N/A
6854N/A <exec_method timeout_seconds="60" type="method" name="stop"
6854N/A exec="/lib/svc/method/horizon %m">
6854N/A <method_context>
6854N/A <method_credential user='webservd' group='webservd'/>
6854N/A </method_context>
6854N/A </exec_method>
6854N/A
6854N/A <exec_method timeout_seconds="60" type="method" name="restart"
6854N/A exec="/lib/svc/method/horizon %m">
6854N/A <method_context>
6854N/A <method_credential user='webservd' group='webservd' />
6854N/A </method_context>
6854N/A </exec_method>
6854N/A
6854N/A <property_group type="framework" name="startd">
6854N/A <propval type="astring" name="ignore_error" value="core,signal"/>
6854N/A </property_group>
6854N/A
6854N/A <instance name='default' enabled='false'>
6854N/A <!-- to start/stop/refresh the service -->
6854N/A <property_group name='general' type='framework'>
6854N/A <propval name='action_authorization' type='astring'
6854N/A value='solaris.smf.manage.horizon' />
6854N/A <propval name='value_authorization' type='astring'
6854N/A value='solaris.smf.value.horizon' />
6854N/A </property_group>
6854N/A
6854N/A <property_group name='horizon_stencil' type='configfile'>
6854N/A <propval name='path' type='astring'
6854N/A value='/var/lib/openstack_dashboard/openstack_dashboard.httpd.conf'/>
6854N/A <propval name='stencil' type='astring' value='horizon.stencil'/>
6854N/A <propval name='mode' type='astring' value='0444'/>
6854N/A <propval name='owner' type='astring' value='webservd'/>
6854N/A <propval name='group' type='astring' value='webservd'/>
6854N/A </property_group>
6854N/A
6854N/A <property_group name='horizon_use_tls_stencil' type='configfile'>
6854N/A <propval name='path' type='astring'
6854N/A value='/etc/openstack_dashboard/local_settings.d/use_tls.py'/>
6854N/A <propval name='stencil' type='astring' value='use_tls.stencil'/>
6854N/A <propval name='mode' type='astring' value='0444'/>
6854N/A <propval name='owner' type='astring' value='root'/>
6854N/A <propval name='group' type='astring' value='root'/>
6854N/A </property_group>
6854N/A
6854N/A <property_group name='config' type='application'>
6854N/A <propval name='servername' type='astring' value='127.0.0.1'/>
6854N/A <propval name='access_log' type='astring'
6854N/A value='/var/log/openstack_dashboard/openstack_dashboard_access.log'/>
6854N/A <propval name='error_log' type='astring'
6854N/A value='/var/log/openstack_dashboard/openstack_dashboard_error.log'/>
6854N/A <propval name='port' type='count' value='6788'/>
6854N/A <propval name='use_tls' type='boolean' value='true'/>
6854N/A </property_group>
6854N/A </instance>
6854N/A
6854N/A <template>
6854N/A <common_name>
6854N/A <loctext xml:lang="C">
6854N/A OpenStack Horizon Dashboard Service
6854N/A </loctext>
6854N/A </common_name>
6854N/A <description>
6854N/A <loctext xml:lang="C">
6854N/A horizon provides a web-based dashboard for OpenStack.
6854N/A </loctext>
6854N/A </description>
6854N/A
6854N/A <pg_pattern required='true' type='application' name='config'>
6854N/A <prop_pattern required='true' type='astring' name='servername'>
6854N/A <description>
6854N/A <loctext xml:lang='C'>
6854N/A The Apache ServerName Directive. Hostname and port that the
6854N/A server uses to identify itself.
6854N/A </loctext>
6854N/A </description>
6854N/A </prop_pattern>
6854N/A
6854N/A <prop_pattern required='true' type='astring' name='access_log'>
6854N/A <description>
6854N/A <loctext xml:lang='C'>
6854N/A The absolute path for the Apache access log file. Defaults to
6854N/A /var/log/openstack_dashboard/openstack_dashboard_access.log
6854N/A </loctext>
6854N/A </description>
6854N/A </prop_pattern>
6854N/A
6854N/A <prop_pattern required='true' type='astring' name='error_log'>
6854N/A <description>
6854N/A <loctext xml:lang='C'>
6854N/A The absolute path for the Apache error log file. Defaults to
6854N/A /var/log/openstack_dashboard/openstack_dashboard_error.log
6854N/A </loctext>
6854N/A </description>
6854N/A </prop_pattern>
6854N/A
6854N/A <prop_pattern required='true' type='count' name='port'>
6854N/A <description>
6854N/A <loctext xml:lang='C'>
6854N/A The port for requests. Default value is 6788.
6854N/A </loctext>
6854N/A </description>
6854N/A </prop_pattern>
6854N/A
6854N/A <prop_pattern required='false' type='astring' name='ssl_cert_file'>
6854N/A <description>
6854N/A <loctext xml:lang='C'>
6854N/A Server PEM-encoded X.509 Certificate file.
6854N/A </loctext>
6854N/A </description>
6854N/A </prop_pattern>
6854N/A
6854N/A <prop_pattern required='false' type='astring' name='ssl_ca_cert_file'>
6854N/A <description>
6854N/A <loctext xml:lang='C'>
6854N/A File of concatenated PEM-encoded CA Certificates for Client authentication.
6854N/A </loctext>
6854N/A </description>
6854N/A </prop_pattern>
6854N/A
6854N/A <prop_pattern required='false' type='astring' name='ssl_cert_key_file'>
6854N/A <description>
6854N/A <loctext xml:lang='C'>
6854N/A Server PEM-encoded Private Key file.
6854N/A </loctext>
6854N/A </description>
6854N/A </prop_pattern>
6854N/A
6854N/A <prop_pattern required='true' type='boolean' name='use_tls'>
6854N/A <description>
6854N/A <loctext xml:lang='C'>
6854N/A Boolean property to indicate usage of TLS. Defaults to 'true'.
6854N/A </loctext>
6854N/A </description>
6854N/A </prop_pattern>
6854N/A
6854N/A </pg_pattern>
6854N/A </template>
6854N/A </service>
6854N/A</service_bundle>