[hopem] Added use-syslog cfg option to allow logging to syslog
This commit is contained in:
parent
718d2de520
commit
60bef47702
@ -110,3 +110,8 @@ options:
|
|||||||
description: |
|
description: |
|
||||||
Key ID to import to the apt keyring to support use with arbitary source
|
Key ID to import to the apt keyring to support use with arbitary source
|
||||||
configuration from outside of Launchpad archives or PPA's.
|
configuration from outside of Launchpad archives or PPA's.
|
||||||
|
use-syslog:
|
||||||
|
type: boolean
|
||||||
|
default: False
|
||||||
|
description: |
|
||||||
|
If set to True, supporting services will log to syslog.
|
||||||
|
@ -72,7 +72,8 @@ def emit_cephconf():
|
|||||||
'mon_hosts': ' '.join(get_mon_hosts()),
|
'mon_hosts': ' '.join(get_mon_hosts()),
|
||||||
'fsid': config('fsid'),
|
'fsid': config('fsid'),
|
||||||
'version': ceph.get_ceph_version(),
|
'version': ceph.get_ceph_version(),
|
||||||
'osd_journal_size': config('osd-journal-size')
|
'osd_journal_size': config('osd-journal-size'),
|
||||||
|
'use_syslog': str(config('use-syslog')).lower()
|
||||||
}
|
}
|
||||||
# Install ceph.conf as an alternative to support
|
# Install ceph.conf as an alternative to support
|
||||||
# co-existence with other charms that write this file
|
# co-existence with other charms that write this file
|
||||||
|
@ -9,6 +9,10 @@
|
|||||||
keyring = /etc/ceph/$cluster.$name.keyring
|
keyring = /etc/ceph/$cluster.$name.keyring
|
||||||
mon host = {{ mon_hosts }}
|
mon host = {{ mon_hosts }}
|
||||||
fsid = {{ fsid }}
|
fsid = {{ fsid }}
|
||||||
|
log to syslog = {{ use_syslog }}
|
||||||
|
err to syslog = {{ use_syslog }}
|
||||||
|
clog to syslog = {{ use_syslog }}
|
||||||
|
mon cluster log to syslog = {{ use_syslog }}
|
||||||
|
|
||||||
[mon]
|
[mon]
|
||||||
keyring = /var/lib/ceph/mon/$cluster-$id/keyring
|
keyring = /var/lib/ceph/mon/$cluster-$id/keyring
|
||||||
|
Loading…
x
Reference in New Issue
Block a user