Skip to content

Commit

Permalink
Merge pull request #2 from zalando/feature/snakeoil_certificate
Browse files Browse the repository at this point in the history
Feature/snakeoil certificate
  • Loading branch information
feikesteenbergen committed May 19, 2015
2 parents 7a6e63d + e20a14e commit b8c5b17
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 88 deletions.
6 changes: 3 additions & 3 deletions postgres-appliance/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ RUN curl -L https://github.com/coreos/etcd/releases/download/v${ETCDVERSION}/etc

ENV PATH $PATH:/usr/lib/postgresql-${PGVERSION}/bin

# Copy the snakeoil certificates for usage as dummy certificates
RUN cp /etc/ssl/private/ssl-cert-snakeoil.key /home/postgres/dummy.key && cp /etc/ssl/certs/ssl-cert-snakeoil.pem /home/postgres/dummy.crt

ADD postgres_ha.sh /home/postgres/
ADD certs/dummy.key /home/postgres/
ADD certs/dummy.crt /home/postgres/
RUN chown postgres:postgres /home/postgres -R
RUN chmod 700 /home/postgres/postgres_ha.sh
RUN chmod 700 /home/postgres/dummy.key

ENV ETCD_DISCOVERY_URL postgres.acid.example.com
ENV SCOPE test
Expand Down
32 changes: 0 additions & 32 deletions postgres-appliance/certs/dummy.crt

This file was deleted.

52 changes: 0 additions & 52 deletions postgres-appliance/certs/dummy.key

This file was deleted.

4 changes: 3 additions & 1 deletion postgres-appliance/postgres_ha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ postgresql:
archive_timeout: 1800s
max_replication_slots: 5
hot_standby: "on"
ssl: "off"
ssl: "on"
ssl_cert_file: "/home/postgres/dummy.crt"
ssl_key_file: "/home/postgres/dummy.key"
recovery_conf:
restore_command: "envdir ${WALE_ENV_DIR} wal-e --aws-instance-profile wal-fetch \"%f\" \"%p\" -p 1"
__EOF__
Expand Down

0 comments on commit b8c5b17

Please sign in to comment.