Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/deployments/08:00:27:6f:0c:25.json
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2018-05-24 20:30:46 +0200
committerGitHub <noreply@github.com>2018-05-24 20:30:46 +0200
commitf85301544827b20a2ba206092affd3da379842a1 (patch)
tree7f2dc83a9af0fa53085538ffb1210fa5840047c8 /deployments/08:00:27:6f:0c:25.json
parent4031af07597002747ae344dd3e8594520688f4e9 (diff)
parent30010a418a0338ba3f513028794552469a9dae11 (diff)
Merge pull request #3 from Torxed/net-deploy
Network deployment features added.
Diffstat (limited to 'deployments/08:00:27:6f:0c:25.json')
-rw-r--r--deployments/08:00:27:6f:0c:25.json29
1 files changed, 29 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..423fe872
--- /dev/null
+++ b/deployments/08:00:27:6f:0c:25.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
+ }
+ }
+}