Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2018-04-11 23:02:08 +0200
committerGitHub <noreply@github.com>2018-04-11 23:02:08 +0200
commit8535c1035371f8d148c3770226139823fb1d25ec (patch)
treee421ac143e5ff1a0d6fcaa3cde69d0b3765c58a0
parentd7bf058251c58a91d608af3650b878960fb553df (diff)
DNS Server
-rw-r--r--deployments/08:00:27:6f:0c:25.json23
1 files changed, 23 insertions, 0 deletions
diff --git a/deployments/08:00:27:6f:0c:25.json b/deployments/08:00:27:6f:0c:25.json
new file mode 100644
index 00000000..a65ab0b0
--- /dev/null
+++ b/deployments/08:00:27:6f:0c:25.json
@@ -0,0 +1,23 @@
+{
+ "args" : {
+ "password" : "0000"
+ },
+ "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
+ },
+ "Setup DNS": {
+ "sh -c \"echo -n -e 'launch=gpgsql\ngpgsql-host=127.0.0.1\ngpgsql-user=pdns\ngpgsql-dbname=pdns\ngpgsql-password={PIN}' >> /etc/powerdns/pdns.conf\"" : null
+ },
+ "Setup autostarts": {
+ "systemctl enable dhcpcd" : null,
+ "systemctl enable postgresql" : null,
+ "systemctl enable powerdns" : null
+ }
+ }
+}