Forgot to create the pdns user
This commit is contained in:
parent
c277b96345
commit
81df161ffc
|
|
@ -276,7 +276,7 @@ if __name__ == '__main__':
|
|||
o = run("arch-chroot /mnt sh -c \"echo '{hostname}' > /etc/hostname\"".format(**args))
|
||||
o = run("arch-chroot /mnt sh -c \"echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen\"")
|
||||
o = run("arch-chroot /mnt sh -c \"echo 'LANG=en_US.UTF-8' > /etc/locale.conf\"")
|
||||
o = run('arch-chroot /mnt locale-gen', echo=True)
|
||||
o = run('arch-chroot /mnt locale-gen')
|
||||
o = run('arch-chroot /mnt chmod 700 /root')
|
||||
|
||||
## == Passwords
|
||||
|
|
|
|||
|
|
@ -8,9 +8,10 @@
|
|||
"pacman -Syy --noconfirm powerdns postgresql" : null
|
||||
},
|
||||
"Setup Database": {
|
||||
"sh -c \"echo 'postgres:{pin}' | chpasswd\"" : {"debug" : true},
|
||||
"su - postgres -c \"initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data'\"" : {"debug" : true},
|
||||
"systemctl start postgresql" : null
|
||||
"sh -c \"echo 'postgres:{pin}' | chpasswd\"" : null,
|
||||
"su - postgres -c \"initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data'\"" : null,
|
||||
"systemctl start postgresql" : null,
|
||||
"su - postgres -c \"psql -c 'CREATE USER pdns WITH PASSWORD \\'SomePassword\\';'\"" : {"debug" : true}
|
||||
},
|
||||
"Setup DNS": {
|
||||
"sh -c \"echo -e 'launch=gpgsql\ngpgsql-host=127.0.0.1\ngpgsql-user=pdns\ngpgsql-dbname=pdns\ngpgsql-password={PIN}' >> /etc/powerdns/pdns.conf\"" : null,
|
||||
|
|
|
|||
Loading…
Reference in New Issue