[hopem] Added use-syslog cfg option to allow logging to syslog

This commit is contained in:
Edward Hope-Morley 2014-03-25 18:44:22 +00:00
parent 07912e33eb
commit 39bb4dc453
4 changed files with 11 additions and 2 deletions

View File

@ -41,3 +41,8 @@ options:
default: 600
type: int
description: Interval between revocation checks to keystone.
use-syslog:
type: boolean
default: False
description: |
If set to True, supporting services will log to syslog.

View File

@ -73,7 +73,8 @@ def emit_cephconf():
'auth_supported': get_auth() or 'none',
'mon_hosts': ' '.join(get_mon_hosts()),
'hostname': get_unit_hostname(),
'version': ceph.get_ceph_version('radosgw')
'version': ceph.get_ceph_version('radosgw'),
'use_syslog': str(config('use-syslog')).lower()
}
# Check to ensure that correct version of ceph is

View File

@ -1 +1 @@
25
26

View File

@ -7,6 +7,9 @@
auth client required = {{ auth_supported }}
{% endif %}
mon host = {{ mon_hosts }}
log to syslog = {{ use_syslog }}
err to syslog = {{ use_syslog }}
clog to syslog = {{ use_syslog }}
[client.radosgw.gateway]
host = {{ hostname }}