[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 718d2de520
commit 60bef47702
4 changed files with 12 additions and 2 deletions

View File

@ -110,3 +110,8 @@ options:
description: |
Key ID to import to the apt keyring to support use with arbitary source
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.

View File

@ -72,7 +72,8 @@ def emit_cephconf():
'mon_hosts': ' '.join(get_mon_hosts()),
'fsid': config('fsid'),
'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
# co-existence with other charms that write this file

View File

@ -1 +1 @@
104
105

View File

@ -9,6 +9,10 @@
keyring = /etc/ceph/$cluster.$name.keyring
mon host = {{ mon_hosts }}
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]
keyring = /var/lib/ceph/mon/$cluster-$id/keyring