aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-extended
diff options
context:
space:
mode:
authorKeith Holman <Keith.Holman@windriver.com>2014-05-26 15:52:32 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-05-26 16:02:41 -0400
commit293cbfc7e52bfb40d6e09e1dc9bd4f76c6e2a3d3 (patch)
treece33308fcb29a9b45604083764c8c1cb9edc4b8d /meta-openstack/recipes-extended
parenteeac2153f8bcc83d02643353cea76a202c9d89fd (diff)
downloadmeta-cloud-services-293cbfc7e52bfb40d6e09e1dc9bd4f76c6e2a3d3.tar.gz
meta-cloud-services-293cbfc7e52bfb40d6e09e1dc9bd4f76c6e2a3d3.tar.bz2
meta-cloud-services-293cbfc7e52bfb40d6e09e1dc9bd4f76c6e2a3d3.zip
sysklogd: add syslog user and group and add dependency
Some OpenStack components expect the system to contain a syslog user for logging purposes and fail if one doesn't exist. This fix adds the syslog user and group within the sysklogd package since it responsible for the system logging capabilities of the system. This fix also adds a dependency between the package requiring the syslog user to exist. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-extended')
-rw-r--r--meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.4.bb5
-rw-r--r--meta-openstack/recipes-extended/sysklogd/sysklogd_1.5.bbappend6
-rw-r--r--meta-openstack/recipes-extended/syslog/syslog-user.inc10
3 files changed, 20 insertions, 1 deletions
diff --git a/meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.4.bb b/meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.4.bb
index f639d4b..57f689d 100644
--- a/meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.4.bb
+++ b/meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.4.bb
@@ -34,4 +34,7 @@ FILES_${PN} += "${sysconfdir}/* \
${datadir}/*"
INITSCRIPT_PACKAGES = "${PN}"
-INITSCRIPT_NAME_${BPN} = "cloud-init" \ No newline at end of file
+INITSCRIPT_NAME_${BPN} = "cloud-init"
+
+RDEPENDS_${PN} = "sysklogd \
+ "
diff --git a/meta-openstack/recipes-extended/sysklogd/sysklogd_1.5.bbappend b/meta-openstack/recipes-extended/sysklogd/sysklogd_1.5.bbappend
new file mode 100644
index 0000000..8da640f
--- /dev/null
+++ b/meta-openstack/recipes-extended/sysklogd/sysklogd_1.5.bbappend
@@ -0,0 +1,6 @@
+#
+# Copyright (C) 2014 Wind River Systems, Inc.
+#
+
+require recipes-extended/syslog/syslog-user.inc
+
diff --git a/meta-openstack/recipes-extended/syslog/syslog-user.inc b/meta-openstack/recipes-extended/syslog/syslog-user.inc
new file mode 100644
index 0000000..57aba00
--- /dev/null
+++ b/meta-openstack/recipes-extended/syslog/syslog-user.inc
@@ -0,0 +1,10 @@
+#
+# Copyright (C) 2014 Wind River Systems, Inc.
+#
+
+inherit useradd
+
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "--system syslog"
+USERADD_PARAM_${PN} = "--system --home /var/log -g syslog syslog"
+