The APT is aware of the version, so simply passing the new version to the existing recipe should install PostgreSQL 10.
The configuration template file was obtained by: 1. Run `apt-get install postgresql-10` 1. Modify the content of `/etc/postgresql/10/main/postgresql.conf` and replace variable parts found in the current 9.6 template.