Skip to content

Commit

Permalink
removed localhost condition as default as it could be a localhost con…
Browse files Browse the repository at this point in the history
…nection.
  • Loading branch information
mkayontour committed Jan 16, 2024
1 parent 9fbc7da commit f95f098
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion molecule/local-default-pgsql/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
become: true
vars:
icingadb_database_type: pgsql
icingadb_database_host: 127.0.0.1
icingadb_database_host: localhost
icingadb_database_port: 5432
icingadb_database_name: icingadb
icingadb_database_user: icingadb
icingadb_database_password: icingadb
Expand Down
2 changes: 1 addition & 1 deletion roles/icingadb/tasks/manage_schema_pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
_tmp_pgsqlcmd: >-
PGPASSWORD="{{ icingadb_database_password }}"
psql
"{% if icingadb_database_host | default('localhost') != 'localhost' %} host="{{ icingadb_database_host }}" {%- endif %}
"{% if icingadb_database_host %} host="{{ icingadb_database_host }}" {%- endif %}
{% if icingadb_database_port is defined %} port={{ icingadb_database_port }} {%- endif %}
user={{ icingadb_database_user | default('icingadb') }}
dbname={{ icingadb_database_name | default('icingadb') }}
Expand Down

0 comments on commit f95f098

Please sign in to comment.