Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/deployments
diff options
context:
space:
mode:
Diffstat (limited to 'deployments')
-rw-r--r--deployments/08:00:27:36:83:9b.json21
-rw-r--r--deployments/08:00:27:6f:0c:25.json29
-rw-r--r--deployments/08:00:27:e0:e0:e6.json31
3 files changed, 81 insertions, 0 deletions
diff --git a/deployments/08:00:27:36:83:9b.json b/deployments/08:00:27:36:83:9b.json
new file mode 100644
index 00000000..c6e4f698
--- /dev/null
+++ b/deployments/08:00:27:36:83:9b.json
@@ -0,0 +1,21 @@
+{
+ "args" : {
+ "password" : "0000"
+ },
+ "pre" : {
+ "sh -c \"echo -n -e '[arch_offline]\nSigLevel = Optional TrustAll\nServer = http://localmirror.lan/archlinux/os/${arch}' >> /etc/pacman.conf\"" : null
+ },
+ "post" : {
+ "Setup openssh": {
+ "pacman -Syy --noconfirm openssh" : null
+ },
+ "Setup OpenVPN": {
+ "pacman -Syy --noconfirm openvpn" : null
+ },
+ "Setup autostarts": {
+ "systemctl enable dhcpcd" : null,
+ "systemctl enable openssh" : null,
+ "systemctl enable openvpn-client@testclient" : null
+ }
+ }
+}
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
+ }
+ }
+}
diff --git a/deployments/08:00:27:e0:e0:e6.json b/deployments/08:00:27:e0:e0:e6.json
new file mode 100644
index 00000000..79347f8b
--- /dev/null
+++ b/deployments/08:00:27:e0:e0:e6.json
@@ -0,0 +1,31 @@
+{
+ "args" : {
+ "password" : "0001"
+ },
+ "post" : {
+ "Setup temp build env": {
+ "pacman -Syy --noconfirm git" : null,
+ "useradd -m -G wheel builder" : null,
+ "sed -i 's/# %wheel ALL=(ALL) NO/%wheel ALL=(ALL) NO/' /etc/sudoers" : null
+ },
+ "install lighttpd2-git": {
+ "git clone https://aur.archlinux.org/lighttpd2-git.git /home/builder/lighttpd2" : null,
+ "chown -R builder.builder /home/builder/lighttpd2" : null,
+ "su - builder -c \"(cd /home/builder/lighttpd2/; /usr/bin/makepkg -s --noconfirm)\"" : null,
+ "sh -c 'pacman -U --noconfirm /home/builder/lighttpd2/*.xz'" : null
+ },
+ "Remove temp build env": {
+ "rm -rf /home/builder/lighttpd2" : null,
+ "sed -i 's/%wheel ALL=(ALL) NO/# %wheel ALL=(ALL) NO/' /etc/sudoers" : null
+ },
+ "Create mirror": {
+ "mkdir -p /srv/http/archlinux/arch_offline/os/x86_64" : null,
+ "pacman --noconfirm --dbpath /tmp/ -Syu -w --cachedir /srv/http/archlinux/arch_offline/os/x86_64 base base-devel git python python-systemd awesome xorg-xinit xorg-server xterm nano screen sudo iptables mesa-libgl dhclient dnsmasq darkhttpd openssh sshfs openssl openvpn gcc openvpn rtorrent powerdns postgresql" : null,
+ "sh -c 'repo-add /srv/http/archlinux/arch_offline/os/x86_64/arch_offline.db.tar.gz /srv/http/archlinux/arch_offline/os/x86_64/*.pkg.tar.xz'" : null
+ },
+ "Setup autostarts": {
+ "systemctl enable dhcpcd" : null,
+ "systemctl enable lighttpd2" : null
+ }
+ }
+}