meta-google: Add default rsyslog config for gBMC

Enable common config for imjournal to use across all gBMC, so that we
don't have to manage it seperately.

Change-Id: I96057e3ee8246afdd0030fb2b90bcf01f9709137
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/meta-google/recipes-extended/rsyslog/rsyslog/rsyslog.conf b/meta-google/recipes-extended/rsyslog/rsyslog/rsyslog.conf
new file mode 100644
index 0000000..fd1085a
--- /dev/null
+++ b/meta-google/recipes-extended/rsyslog/rsyslog/rsyslog.conf
@@ -0,0 +1,12 @@
+module(load="imuxsock" SysSock.Use="off")
+module(
+  load="imjournal"
+  StateFile="/var/log/state"
+  RateLimit.Interval="60"
+  RateLimit.Burst="4000"
+)
+
+#
+# Include all config files in /etc/rsyslog.d/
+#
+include(file="/etc/rsyslog.d/*.conf")
diff --git a/meta-google/recipes-extended/rsyslog/rsyslog_%.bbappend b/meta-google/recipes-extended/rsyslog/rsyslog_%.bbappend
new file mode 100644
index 0000000..df1524c
--- /dev/null
+++ b/meta-google/recipes-extended/rsyslog/rsyslog_%.bbappend
@@ -0,0 +1,5 @@
+FILESEXTRAPATHS:prepend:gbmc := "${THISDIR}/${PN}:"
+
+SRC_URI:append:gbmc = " \
+  file://rsyslog.conf \
+"