From 0e59d8b1ce851d08bea9eab2a4130d82f7adc423 Mon Sep 17 00:00:00 2001 From: Witek Bedyk Date: Mon, 18 Feb 2019 18:21:25 +0100 Subject: [PATCH] Update documentation to use new default config The new default configuration file name has changed to monasca-persister.conf. This change updates documentation to use the new default. Change-Id: Ic271221f19cdc86e8297ed88cdcf4a86df4374b8 Story: 2004867 Task: 29534 --- config-generator/persister.conf | 2 +- monasca_persister/README.md | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config-generator/persister.conf b/config-generator/persister.conf index 99d83b5a..c5e36148 100644 --- a/config-generator/persister.conf +++ b/config-generator/persister.conf @@ -1,5 +1,5 @@ [DEFAULT] -output_file = etc/monasca/persister.conf.sample +output_file = etc/monasca/monasca-persister.conf.sample wrap_width = 90 format = ini namespace = monasca_persister diff --git a/monasca_persister/README.md b/monasca_persister/README.md index f4cefa02..485b440e 100644 --- a/monasca_persister/README.md +++ b/monasca_persister/README.md @@ -91,15 +91,15 @@ write access to the log directory. There is minimum amount of configuration which must be performed before running the persister. A template configuration file is installed in the -default location of /etc/monasca/persister.conf. +default location of /etc/monasca/monasca-persister.conf. Note that the configuration will contain authentication information for the database being used, so depending on your environment it may be desirable to inhibit read access except for the monasca-persister group. ``` -sudo chown root:monasca /etc/monasca/persister.conf -sudo chmod 640 /etc/monasca/persister.conf +sudo chown root:monasca /etc/monasca/monasca-persister.conf +sudo chmod 640 /etc/monasca/monasca-persister.conf ``` Most of the configuration options should be left at default, but at a @@ -132,7 +132,7 @@ which may be useful for troubleshooting: ``` sudo -u mon-persister \ monasca-persister \ - --config-file /etc/monasca/persister.conf + --config-file /etc/monasca/monasca-persister.conf ``` Note that it is important to deploy the daemon in a manner such that the daemon @@ -151,7 +151,7 @@ Description=OpenStack Monasca Persister Documentation=https://github.com/openstack/monasca-persister/monasca-persister/README.md Requires=network.target remote-fs.target After=network.target remote-fs.target -ConditionPathExists=/etc/monasca/persister.conf +ConditionPathExists=/etc/monasca/monasca-persister.conf ConditionPathExists=/var/lib/monasca-persister ConditionPathExists=/var/log/monasca/persister @@ -161,7 +161,7 @@ PIDFile=/var/run/monasca-persister.pid User=mon-persister Group=monasca WorkingDirectory=/var/lib/monasca-persister -ExecStart=/usr/local/bin/monasca-persister --config-file /etc/monasca/persister.conf +ExecStart=/usr/local/bin/monasca-persister --config-file /etc/monasca/monasca-persister.conf Restart=on-failure RestartSec=5 SyslogIdentifier=monasca-persister