index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Lord Anton Hvornum <anton.hvo@gmail.com> | 2018-05-24 20:39:35 +0200 |
---|---|---|
committer | Lord Anton Hvornum <anton.hvo@gmail.com> | 2018-05-24 20:39:35 +0200 |
commit | 022b375185dacebcce15bea72486279b159f1a4b (patch) | |
tree | f2343015b880f3eb0a61ae90651cf7ac8d668e90 /deployments/dns_server.json | |
parent | 225b0b6451f6bb5eaf558c8ba309d64bde3910ef (diff) |
-rw-r--r-- | deployments/dns_server.json | 29 |
diff --git a/deployments/dns_server.json b/deployments/dns_server.json new file mode 100644 index 00000000..423fe872 --- /dev/null +++ b/deployments/dns_server.json @@ -0,0 +1,29 @@ +{ + "args" : { + "password" : "0000", + "post" : "stay" + }, + "post" : { + "Installing DNS + Database": { + "pacman -Syy --noconfirm powerdns postgresql" : null + }, + "Setup Database": { + "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, + "psql -U pdns -d pdns -a -f /usr/share/doc/powerdns/schema.pgsql.sql" : null + }, + "Install DNS Entries": { + + }, + "Setup autostarts": { + "systemctl enable dhcpcd" : null, + "systemctl enable postgresql" : null, + "systemctl enable powerdns" : null + } + } +} |