diff --git a/roles/dbscripts/templates/gen_rsyncd.conf.pl b/roles/dbscripts/templates/gen_rsyncd.conf.pl index 60276f0efcbd914fed5f10c919162dddc2bed9c8..bcca6e092a78c53f21d0d6503db75b6e41a4ba19 100755 --- a/roles/dbscripts/templates/gen_rsyncd.conf.pl +++ b/roles/dbscripts/templates/gen_rsyncd.conf.pl @@ -6,9 +6,9 @@ use DBI; use Data::Dumper; # TODO put these into credentials.ini and use Config::Simple to read it -my $user = 'archweb_rsync'; -my $pass = '{{ postgres_users.archweb_rsync }}'; -my $db = 'DBI:Pg:dbname=archweb;host=gudrun.archlinux.org;sslmode=require'; +my $user = '{{ archweb_db_dbscripts_user }}'; +my $pass = '{{ archweb_db_dbscripts_password }}'; +my $db = 'DBI:Pg:dbname={{ archweb_db }};host={{ archweb_db_host }};sslmode=require'; my $scriptdir="/etc/rsyncd-conf-genscripts"; my $infile="$scriptdir/rsyncd.conf.proto";