saltstack-formulas / zabbix-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
50 stars 121 forks source link

fix(pgsql): do not try to create db and user with schema #150

Closed ghormoon closed 3 years ago

ghormoon commented 3 years ago

PR progress checklist (to be filled in by reviewers)


What type of PR is this?

Primary type

Does this PR introduce a BREAKING CHANGE?

Unlikely. I assume that people who want to both create db/user and a schema, use both states, zabbix.pgsql.conf and zabbix.pgsql.schema as documentation says. Potentially someone can be using only zabbix.pgsql.schema and rely on the sideeffect to create a db/user, in that case they need start to use also zabbix.pgsql.conf

Describe the changes you're proposing

Split off required packages to separate state, so zabbix.pgsql.schema can be used independently from zabbix.pgsql.conf. Especially useful if you want to use remote db and for security reasons postgres user cannot login remotely.

Pillar / config required to test the proposed changes

use state zabbix.pgsql.schema

Documentation checklist

Testing checklist

hatifnatt commented 3 years ago

@ghormoon thanks!

saltstack-formulas-travis commented 3 years ago

:tada: This PR is included in version 1.2.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: