components/openstack/swift/files/swift-object-auditor.xml
author Danek Duvall <danek.duvall@oracle.com>
Tue, 13 May 2014 15:55:28 -0600
changeset 1896 f83e6dde6c3b
child 1944 56ac2df1785b
permissions -rw-r--r--
18551677 Request to integrate Swift into userland
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1896
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     1
<?xml version="1.0" ?>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     2
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     3
<!--
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     4
 Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     5
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     6
 Licensed under the Apache License, Version 2.0 (the "License"); you may
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     7
 not use this file except in compliance with the License. You may obtain
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     8
 a copy of the License at
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     9
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    10
      http://www.apache.org/licenses/LICENSE-2.0
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    11
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    12
 Unless required by applicable law or agreed to in writing, software
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    13
 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    14
 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    15
 License for the specific language governing permissions and limitations
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    16
 under the License.
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    17
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    18
 NOTE:  This service manifest is not editable; its contents will
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    19
 be overwritten by package or patch operations, including
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    20
 operating system upgrade.  Make customizations in a different
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    21
 file.
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    22
-->
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    23
<service_bundle type="manifest" name="swift-object-auditor">
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    24
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    25
  <service version="1" type="service"
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    26
    name="application/openstack/swift/swift-object-auditor">
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    27
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    28
    <dependency name='multiuser' grouping='require_all' restart_on='error'
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    29
      type='service'>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    30
      <service_fmri value='svc:/milestone/multi-user:default' />
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    31
    </dependency>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    32
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    33
    <exec_method timeout_seconds="60" type="method" name="start"
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    34
      exec="/lib/svc/method/swift-object-auditor %m">
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    35
      <method_context>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    36
        <method_credential user='swift' group='swift'
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    37
          privileges='basic,{zone}:/system/volatile/swift' />
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    38
      </method_context>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    39
    </exec_method>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    40
    <exec_method timeout_seconds="60" type="method" name="stop"
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    41
      exec=":kill"/>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    42
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    43
    <instance name='default' enabled='false'>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    44
      <!-- to start/stop/refresh the service -->
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    45
      <property_group name='general' type='framework'>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    46
        <propval name='action_authorization' type='astring'
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    47
                 value='solaris.smf.manage.swift' />
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    48
        <propval name='value_authorization' type='astring'
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    49
                 value='solaris.smf.value.swift' />
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    50
      </property_group>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    51
    </instance>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    52
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    53
    <template>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    54
      <common_name>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    55
        <loctext xml:lang="C">
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    56
          OpenStack Swift Object Auditor Service
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    57
        </loctext>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    58
      </common_name>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    59
      <description>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    60
        <loctext xml:lang="C">
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    61
          The Swift object auditor checks objects, quarantining corrupt
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    62
          data and requesting clean data from another replica.
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    63
        </loctext>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    64
      </description>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    65
      <documentation>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    66
        <manpage title="swift-object-auditor" section="1" />
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    67
        <manpage title="object-server.conf" section="4" />
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    68
      </documentation>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    69
    </template>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    70
  </service>
f83e6dde6c3b 18551677 Request to integrate Swift into userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    71
</service_bundle>