From: Sebastian Harl Date: Sun, 10 Mar 2013 18:37:06 +0000 (+0100) Subject: Renamed sysdbd.conf to sysdbd.conf.sample. X-Git-Tag: sysdb-0.1.0~436 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=b7a4c85eca8befee05122d56d31127ad5eb397f2 Renamed sysdbd.conf to sysdbd.conf.sample. Also, unconditionally install that file; the user is expected to not change the .sample file but rather use her own custom sysdbd.conf (there is no generic config file anyway that could be shipped and enabled by default). --- diff --git a/src/Makefile.am b/src/Makefile.am index 787ecda..b75bfff 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -48,6 +48,9 @@ sysdbd_CFLAGS = $(AM_CFLAGS) -DBUILD_DATE="\"$$( date --utc '+%F %T' ) (UTC)\"" sysdbd_LDADD = libsysdb.la liboconfig/liboconfig.la sysdbd_DEPENDENCIES = liboconfig/liboconfig.la +sdbconfdir = $(sysconfdir)/sysdb +dist_sdbconf_DATA = daemon/sysdbd.conf.sample + pkgbackendlibdir = $(pkglibdir)/backend pkgbackendlib_LTLIBRARIES = @@ -85,13 +88,3 @@ include/sysdb.h: include/sysdb.h.in ../version -e "s/@SDB_VERSION_STRING@/$$VERSION_STRING/g" \ include/sysdb.h.in > include/sysdb.h -install-exec-hook: - $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/sysdb - if test -e $(DESTDIR)$(sysconfdir)/sysdb/sysdbd.conf; then \ - $(INSTALL) -m 0640 daemon/sysdbd.conf \ - $(DESTDIR)$(sysconfdir)/sysdb/sysdbd.conf.pkg-orig; \ - else \ - $(INSTALL) -m 0640 daemon/sysdbd.conf \ - $(DESTDIR)$(sysconfdir)/sysdb/sysdbd.conf; \ - fi - diff --git a/src/daemon/sysdbd.conf b/src/daemon/sysdbd.conf deleted file mode 100644 index f6749e1..0000000 --- a/src/daemon/sysdbd.conf +++ /dev/null @@ -1,58 +0,0 @@ -# -# Configuration file for the System DataBase daemon (SysDBd). -# - -#----------------------------------------------------------------------------# -# Global options: # -# This section defines global settings and default values for the daemon. # -#----------------------------------------------------------------------------# - -# default interval used for actively polling plugins -Interval 300 - -#----------------------------------------------------------------------------# -# Plugins: # -# Plugins are the working horses of SysDB. Load any of the following plugins # -# to active the respective feature. # -# # -# "Backends" are plugins which collect information to be stored in SysDB # -# while other plugins may add additional features to the daemon. Each # -# backend may use its own custom query interval by specifying the 'Interval' # -# option: # -# # -# Interval 60 # -# # -#----------------------------------------------------------------------------# - -LoadBackend "collectd" -LoadBackend "mk-livestatus" -LoadBackend "puppet-storeconfigs" - -#----------------------------------------------------------------------------# -# Plugin configuration: # -#----------------------------------------------------------------------------# - - - - Socket "/var/run/collectd-unixsock" - - - - - - Socket "/var/lib/nagios4/rw/live" - - - - - - DBAdapter "pgsql" - DBName "puppet" - DBServer "puppet.domain.tld" - DBPort "5432" - DBUser "puppet" - DBPassword "secret1" - DBIOption "name" "value" - - - diff --git a/src/daemon/sysdbd.conf.sample b/src/daemon/sysdbd.conf.sample new file mode 100644 index 0000000..60a4656 --- /dev/null +++ b/src/daemon/sysdbd.conf.sample @@ -0,0 +1,58 @@ +# +# Sample configuration file for the System DataBase daemon (SysDBd). +# + +#----------------------------------------------------------------------------# +# Global options: # +# This section defines global settings and default values for the daemon. # +#----------------------------------------------------------------------------# + +# default interval used for actively polling plugins +Interval 300 + +#----------------------------------------------------------------------------# +# Plugins: # +# Plugins are the working horses of SysDB. Load any of the following plugins # +# to active the respective feature. # +# # +# "Backends" are plugins which collect information to be stored in SysDB # +# while other plugins may add additional features to the daemon. Each # +# backend may use its own custom query interval by specifying the 'Interval' # +# option: # +# # +# Interval 60 # +# # +#----------------------------------------------------------------------------# + +LoadBackend "collectd" +LoadBackend "mk-livestatus" +LoadBackend "puppet-storeconfigs" + +#----------------------------------------------------------------------------# +# Plugin configuration: # +#----------------------------------------------------------------------------# + + + + Socket "/var/run/collectd-unixsock" + + + + + + Socket "/var/lib/nagios4/rw/live" + + + + + + DBAdapter "pgsql" + DBName "puppet" + DBServer "puppet.domain.tld" + DBPort "5432" + DBUser "puppet" + DBPassword "secret1" + DBIOption "name" "value" + + +