remove postgres integration
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-10-26 21:40:53 +02:00
parent c6733cb5c6
commit 7f5f8a7456
4 changed files with 22 additions and 79 deletions

View File

@ -74,38 +74,17 @@ freshrss_limits_max_registrations: "1"
freshrss_extensions_enabled: freshrss_extensions_enabled:
- "Tumblr-GDPR" - "Tumblr-GDPR"
freshrss_postgres_ssl_mode: disable ttrss_db_type: pgsql
freshrss_postgres_ssl_rootcert: /etc/ssl/certs/ca-certificates.crt freshrss_db_server: localhost
freshrss_postgres_server: "{{ inventory_hostname }}" freshrss_db_port: 5432
freshrss_postgres_port: 5432 freshrss_db_name: freshrss
freshrss_postgres_superuser: postgres freshrss_db_user: pgfreshrss
freshrss_postgres_password: postgres freshrss_db_password: secure
freshrss_postgres_db: # @var freshrss_db_ssl_mode:description: This variable is only supported for `pgsql` DB type.
name: freshrss freshrss_db_ssl_mode: disable
lc_collate: en_US.UTF-8 # @var freshrss_db_ssl_mode:description: This variable is only supported for `pgsql` DB type.
lc_ctype: en_US.UTF-8' freshrss_db_ssl_rootcert: /etc/ssl/certs/ca-certificates.crt
encoding: UTF-8
template: template0
login_user: "{{ freshrss_postgres_superuser }}"
login_password: "{{ freshrss_postgres_password }}"
# login_unix_socket: # defaults to not set
port: "{{ freshrss_postgres_port }}"
# owner: # defaults to not set
state: present
freshrss_postgres_user:
name: pgfreshrss
password: freshrss
encrypted: 'yes'
# priv: # defaults to not set
# role_attr_flags: # defaults to not set
db: "{{ freshrss_postgres_db.name }}"
login_user: "{{ freshrss_postgres_superuser }}"
login_password: "{{ freshrss_postgres_password }}"
# login_unix_socket: # defaults to not set
port: "{{ freshrss_postgres_port }}"
state: present
freshrss_iptables_enabled: False freshrss_iptables_enabled: False
freshrss_open_ports: freshrss_open_ports:

View File

@ -4,12 +4,12 @@
vars: vars:
postgres_repository_enabled: True postgres_repository_enabled: True
postgres_users: postgres_users:
- name: "postgres" - name: "pgfreshrss"
password: "postgres" password: "secure"
role_attr_flags: SUPERUSER priv: ALL
login_host: localhost db: "freshrss"
state: present postgres_dbs:
pam_user: True - name: "freshrss"
dockerengine_packages_extra: dockerengine_packages_extra:
- epel-release - epel-release
- python2-pip - python2-pip

View File

@ -6,39 +6,3 @@
mode: 0755 mode: 0755
become: True become: True
become_user: root become_user: root
- block:
- name: Setup postgres db '{{ freshrss_postgres_db.name }}'
postgresql_db:
name: "{{ freshrss_postgres_db.name }}"
lc_collate: "{{ freshrss_postgres_db.lc_collate | default('en_US.UTF-8') }}"
lc_ctype: "{{ freshrss_postgres_db.lc_ctype | default('en_US.UTF-8') }}"
encoding: "{{ freshrss_postgres_db.encoding | default('UTF-8') }}"
template: "{{ freshrss_postgres_db.template | default('template0') }}"
login_host: "{{ freshrss_postgres_db.login_host | default('localhost') }}"
login_password: "{{ freshrss_postgres_db.login_password | default(omit) }}"
login_user: "{{ freshrss_postgres_db.login_user | default(omit) }}"
login_unix_socket: "{{ freshrss_postgres_db.login_unix_socket | default(omit) }}"
port: "{{ freshrss_postgres_db.port | default(omit) }}"
owner: "{{ freshrss_postgres_db.owner | default(omit) }}"
state: "{{ freshrss_postgres_db.state | default('present') }}"
no_log: "{{ False if freshrss_ansible_debug | default(False) else True }}"
when: freshrss_postgres_db is defined
- name: Setup postgres user '{{ freshrss_postgres_user.name }}'
postgresql_user:
name: "{{ freshrss_postgres_user.name }}"
password: "{{ 'md5' + (freshrss_postgres_user.password + freshrss_postgres_user.name) | hash('md5') }}"
encrypted: "{{ freshrss_postgres_user.encrypted | default('yes') }}"
priv: "{{ freshrss_postgres_user.priv | default(omit) }}"
role_attr_flags: "{{ freshrss_postgres_user.role_attr_flags | default(omit) }}"
db: "{{ freshrss_postgres_user.db | default(omit) }}"
login_host: "{{ freshrss_postgres_user.login_host | default('localhost') }}"
login_password: "{{ freshrss_postgres_user.login_password | default(omit) }}"
login_user: "{{ freshrss_postgres_user.login_user | default(omit) }}"
login_unix_socket: "{{ freshrss_postgres_user.login_unix_socket | default(omit) }}"
port: "{{ freshrss_postgres_user.port | default(omit) }}"
state: "{{ freshrss_postgres_user.state | default('present') }}"
no_log: "{{ False if freshrss_ansible_debug | default(False) else True }}"
when: freshrss_postgres_user is defined
delegate_to: "{{ freshrss_postgres_server }}"

View File

@ -69,12 +69,12 @@ services:
- FRESHRSS_CURLOPT_PROXYUSERPWD={{ freshrss_curlopt_proxyuserpwd }} - FRESHRSS_CURLOPT_PROXYUSERPWD={{ freshrss_curlopt_proxyuserpwd }}
{% endif %} {% endif %}
- FRESHRSS_DB_TYPE=pgsql - FRESHRSS_DB_TYPE=pgsql
- FRESHRSS_DB_HOST={{ freshrss_postgres_server }};sslmode={{ freshrss_postgres_ssl_mode }} - FRESHRSS_DB_HOST={{ freshrss_db_server }}{% if ttrss_db_type == "pgsql" %};sslmode={{ freshrss_db_ssl_mode }}{% endif %}
- FRESHRSS_POSTGRES_SSL_ROOTCERT={{ freshrss_postgres_ssl_rootcert }} - FRESHRSS_db_SSL_ROOTCERT={{ freshrss_db_ssl_rootcert }}
- FRESHRSS_DB_PORT={{ freshrss_postgres_port }} - FRESHRSS_DB_PORT={{ freshrss_db_port }}
- FRESHRSS_DB_USER={{ freshrss_postgres_user.name }} - FRESHRSS_DB_USER={{ freshrss_db_user }}
- FRESHRSS_DB_PASSWORD={{ freshrss_postgres_user.password }} - FRESHRSS_DB_PASSWORD={{ freshrss_db_password }}
- FRESHRSS_DB_BASE={{ freshrss_postgres_db.name }} - FRESHRSS_DB_BASE={{ freshrss_db_name }}
- FRESHRSS_DB_PREFIX=freshrss_ - FRESHRSS_DB_PREFIX=freshrss_
- FRESHRSS_EXTENSIONS_ENABLED={{ freshrss_extensions_enabled | join(',') }} - FRESHRSS_EXTENSIONS_ENABLED={{ freshrss_extensions_enabled | join(',') }}
{% if freshrss_memory_limit is defined %} {% if freshrss_memory_limit is defined %}