host: {{ arvados.cluster.database.host }}
password: {{ arvados.cluster.database.password | yaml_encode }}
user: {{ arvados.cluster.database.user }}
- client_encoding: {{ arvados.cluster.database.client_encoding }}
{%- if arvados.cluster.database.extra_conn_params is defined %}
{{ arvados.cluster.database.extra_conn_params | yaml(False) | indent(8) }}
{%- endif %}
host: 127.0.0.1
password: changeme_arvados
user: arvados
- encoding: en_US.utf8
- client_encoding: UTF8
# You can pass extra database connections parameters here,
# which will be rendered as yaml.
# extra_conn_params:
# sslmode: prefer
# verify-ca: false
+ # client_encoding: UTF8
tls:
http://api.internal:8004: {}
RAILS_STANZA
+database_stanza = <<-DATABASE_STANZA
+ ### DATABASE CONFIGURATION
+ PostgreSQL:
+ ConnectionPool: 32
+ Connection:
+ # All parameters here are passed to the PG client library in a connection string;
+ # see https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS
+ dbname: arvados
+ host: 127.0.0.1
+ password: "changeme_arvados"
+ user: arvados
+ client_encoding: UTF8
+DATABASE_STANZA
+
group = case os[:name]
when 'centos'
'nginx'
end
its('content') { should include(api_stanza) }
its('content') { should include(rails_stanza) }
+ its('content') { should include(database_stanza) }
end
end
host: 127.0.0.1
password: changeme_arvados
user: arvados
- encoding: en_US.utf8
- client_encoding: UTF8
+ extra_conn_params:
+ client_encoding: UTF8
# Centos7 does not enable SSL by default, so we disable
# it here just for testing of the formula purposes only.
# You should not do this in production, and should
# configure Postgres certificates correctly
{%- if grains.os_family in ('RedHat',) %}
- extra_conn_params:
sslmode: disable
{%- endif %}
host: 127.0.0.1
password: changeme_arvados
user: arvados
- encoding: en_US.utf8
- client_encoding: UTF8
+ extra_conn_params:
+ client_encoding: UTF8
tls:
# certificate: ''