-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postgresql examples #1238
Postgresql examples #1238
Conversation
|
||
The example `sensu-backend.pp` will be applied to the Sensu Go backend. | ||
|
||
The example `postgersql.pp` will be applied to both the master and standby PostgreSQL servers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo in filename
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed typo
``` | ||
systemctl stop postgresql-9.6.service | ||
rm -rf /var/lib/pgsql/9.6/data/* | ||
sudo -u postgres pg_basebackup -h 192.168.52.11 -D /var/lib/pgsql/9.6/data -P -U repl -R --xlog-method=stream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have to use IP's here or can you just use the FQDN?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation I found used IPs, but I would think FQDN works too. I used IPs because it was easier in testing with Vagrant.
$password = 'sensu' | ||
$repl_password = 'secret' | ||
$pgpassword = 'password' | ||
$master_ip = '192.168.52.11' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should match docs and use primary instead of master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced instances of master with primary
} | ||
postgresql::server::config_entry { 'ssl': | ||
value => 'on', | ||
# path => $postgresql_config_file, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove commented out code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed commented code
user => 'sensu', | ||
password => postgresql_password('sensu', $password), | ||
} | ||
postgresql::server::pg_hba_rule { 'allow access to sensu database': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a new line between resources so it is easier to read
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added newlines
315c044
to
dedd371
Compare
dedd371
to
178c4f5
Compare
Pull Request Checklist
Description
Add example of remote postgresql with SSL that is part of the acceptance tests.
Also add example of postgresql replication that is not part of acceptance tests.
Add examples section to README