[hopem] Added use-syslog cfg option to allow logging to syslog
This commit is contained in:
parent
07912e33eb
commit
39bb4dc453
|
@ -41,3 +41,8 @@ options:
|
||||||
default: 600
|
default: 600
|
||||||
type: int
|
type: int
|
||||||
description: Interval between revocation checks to keystone.
|
description: Interval between revocation checks to keystone.
|
||||||
|
use-syslog:
|
||||||
|
type: boolean
|
||||||
|
default: False
|
||||||
|
description: |
|
||||||
|
If set to True, supporting services will log to syslog.
|
||||||
|
|
|
@ -73,7 +73,8 @@ def emit_cephconf():
|
||||||
'auth_supported': get_auth() or 'none',
|
'auth_supported': get_auth() or 'none',
|
||||||
'mon_hosts': ' '.join(get_mon_hosts()),
|
'mon_hosts': ' '.join(get_mon_hosts()),
|
||||||
'hostname': get_unit_hostname(),
|
'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
|
# Check to ensure that correct version of ceph is
|
||||||
|
|
|
@ -7,6 +7,9 @@
|
||||||
auth client required = {{ auth_supported }}
|
auth client required = {{ auth_supported }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
mon host = {{ mon_hosts }}
|
mon host = {{ mon_hosts }}
|
||||||
|
log to syslog = {{ use_syslog }}
|
||||||
|
err to syslog = {{ use_syslog }}
|
||||||
|
clog to syslog = {{ use_syslog }}
|
||||||
|
|
||||||
[client.radosgw.gateway]
|
[client.radosgw.gateway]
|
||||||
host = {{ hostname }}
|
host = {{ hostname }}
|
||||||
|
|
Loading…
Reference in New Issue