Opsview supports using Amazon Relational Database Services (RDS) as its own database. Here's how to set it up.
## Preparation and considerations
Prior to setting up Opsview to use a MySQL RDS instance as its database, you must:
set up your MySQL RDS instance (other types of database are not supported)
have a root-privileged user that Opsview can use on your MySQL RDS instance (it should have the username 'root').
set admin_opsview's password so that it matches the one specified in `
/opt/opsview/deploy/etc/user_secrets.yml` on the line starting `
In the following steps, you should replace the variables as appropriate for your system.
Study the example configurations carefully before copying them and remember to back up your old settings before making any changes.
## The Set Up
### 1. Configure opsview_deploy.yml
Create an empty section called database_hosts in `
You can do this by appending the below to this file.
Why is this section blank?
The existence of this section tells opsview_deploy to set up an external database.
Populating this section, notably with the database IP address, will cause opsview_deploy to fail.
### 2. Configure user_vars.yml
The following changes must be made to `
Create a section called opsview_database_backend_nodes
Declare the database FQDN
Declare the database name
Declare the database root username (`
### 3. Run opsview_deploy
Execute the below command as root.