Skip to content

Commit

Permalink
Update documentation to use new default config
Browse files Browse the repository at this point in the history
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
  • Loading branch information
witekest committed Feb 18, 2019
1 parent 5d082a9 commit 0e59d8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config-generator/persister.conf
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 6 additions & 6 deletions monasca_persister/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0e59d8b

Please sign in to comment.