summaryrefslogtreecommitdiff
path: root/vmdebootstrap
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-08-20 19:33:08 +0300
committerLars Wirzenius <liw@liw.fi>2021-08-20 19:33:08 +0300
commit085bb29bbecca4f8c0114c1bd09734905f6cec62 (patch)
tree35ad4d98339bc113b815460fbe3885a54dbb10e2 /vmdebootstrap
parentcb437c9e3a1f7b25e1306e504656286c24186e4c (diff)
downloadansibleness-085bb29bbecca4f8c0114c1bd09734905f6cec62.tar.gz
drop more old crap
Diffstat (limited to 'vmdebootstrap')
-rw-r--r--vmdebootstrap/authorized_keys1
-rwxr-xr-xvmdebootstrap/base-create.sh21
-rw-r--r--vmdebootstrap/base-debian7-amd64.conf4
-rw-r--r--vmdebootstrap/base-debian7-i386.conf5
-rw-r--r--vmdebootstrap/base-debian8-amd64.conf4
-rw-r--r--vmdebootstrap/base-debian8-i386.conf5
-rw-r--r--vmdebootstrap/base-unstable-amd64.conf4
-rw-r--r--vmdebootstrap/base-unstable-i386.conf5
-rw-r--r--vmdebootstrap/base.conf11
-rwxr-xr-xvmdebootstrap/base.customize46
10 files changed, 0 insertions, 106 deletions
diff --git a/vmdebootstrap/authorized_keys b/vmdebootstrap/authorized_keys
deleted file mode 100644
index b7e5273..0000000
--- a/vmdebootstrap/authorized_keys
+++ /dev/null
@@ -1 +0,0 @@
-ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAzc5k+s8dm6zwxlfgIAUVY8x1UPOXDnxLgIpMbS7DuHmtpo7a6doFRGdaPnQStteliLWmmggVwh5q3PPvgegTT6SIc3mPoL3UK/2bnkU+wGwUfhykP/Uulhtzr6Dsr3vgTNp6dFCvSd5ZEb+ih9I9nRviWM9vDYXccc4jKoxb9Zepb6QWp3F8dPpUFEf6GbH+WunE2TFj8aJ5f4R77phpof+vLfiJyV0QTUVpf3BYPfnnmbOVLy/3t4YvdUde+FMdXiWwmfb35ZNmRqpD0U4jzFVGg2TgeGXCu18kva04i20S2yrQEY5oQndnaRZdbWa7Hp83WRIuk1d0X1TXViVPcw== liw
diff --git a/vmdebootstrap/base-create.sh b/vmdebootstrap/base-create.sh
deleted file mode 100755
index f4318b1..0000000
--- a/vmdebootstrap/base-create.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-#
-# Create all missing disk images.
-# This needs to be run as root, from the directory it exists in.
-
-set -eu
-
-# Add my git checkout of the vmdebootstrap git repository to PATH,
-# so that I can run, on my jessie machine, the current version.
-PATH="$PATH:/home/liw/vmdebootstrap/vmdebootstrap"
-
-for conf in $(find . -maxdepth 1 -name 'base-*.conf')
-do
- img=$(vmdebootstrap --config base.conf --config "$conf" --dump-config |
- awk '$1 == "image" { print $3 }')
- if [ ! -e "$img" ]
- then
- echo "==== Building $conf"
- vmdebootstrap --config base.conf --config "$conf"
- fi
-done
diff --git a/vmdebootstrap/base-debian7-amd64.conf b/vmdebootstrap/base-debian7-amd64.conf
deleted file mode 100644
index b007ba4..0000000
--- a/vmdebootstrap/base-debian7-amd64.conf
+++ /dev/null
@@ -1,4 +0,0 @@
-[config]
-arch = amd64
-distribution = wheezy
-image = base-debian7-amd64.img
diff --git a/vmdebootstrap/base-debian7-i386.conf b/vmdebootstrap/base-debian7-i386.conf
deleted file mode 100644
index d1cea68..0000000
--- a/vmdebootstrap/base-debian7-i386.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-[config]
-arch = i386
-distribution = wheezy
-image = base-debian7-i386.img
-kernel-package = linux-image-486
diff --git a/vmdebootstrap/base-debian8-amd64.conf b/vmdebootstrap/base-debian8-amd64.conf
deleted file mode 100644
index 150fb62..0000000
--- a/vmdebootstrap/base-debian8-amd64.conf
+++ /dev/null
@@ -1,4 +0,0 @@
-[config]
-arch = amd64
-distribution = jessie
-image = base-debian8-amd64.img
diff --git a/vmdebootstrap/base-debian8-i386.conf b/vmdebootstrap/base-debian8-i386.conf
deleted file mode 100644
index ef9c395..0000000
--- a/vmdebootstrap/base-debian8-i386.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-[config]
-arch = i386
-distribution = jessie
-image = base-debian8-i386.img
-kernel-package = linux-image-586
diff --git a/vmdebootstrap/base-unstable-amd64.conf b/vmdebootstrap/base-unstable-amd64.conf
deleted file mode 100644
index f5cf3bf..0000000
--- a/vmdebootstrap/base-unstable-amd64.conf
+++ /dev/null
@@ -1,4 +0,0 @@
-[config]
-arch = amd64
-distribution = unstable
-image = base-unstable-amd64.img
diff --git a/vmdebootstrap/base-unstable-i386.conf b/vmdebootstrap/base-unstable-i386.conf
deleted file mode 100644
index 39b6c6f..0000000
--- a/vmdebootstrap/base-unstable-i386.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-[config]
-arch = i386
-distribution = unstable
-image = base-unstable-i386.img
-kernel-package = linux-image-586
diff --git a/vmdebootstrap/base.conf b/vmdebootstrap/base.conf
deleted file mode 100644
index dff561f..0000000
--- a/vmdebootstrap/base.conf
+++ /dev/null
@@ -1,11 +0,0 @@
-[config]
-mirror = http://192.168.122.1/debian
-enable-dhcp = yes
-size = 4G
-verbose = no
-grub = yes
-sparse = yes
-sudo = yes
-package = ssh, python
-customize = ./base.customize
-hostname = base
diff --git a/vmdebootstrap/base.customize b/vmdebootstrap/base.customize
deleted file mode 100755
index 9c007f7..0000000
--- a/vmdebootstrap/base.customize
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/sh
-#
-# base.customize - configure base disk image for management by ansible
-#
-# This sets up a very basic image, just enough to allow ansible to log
-# in and become root with sudo. All the rest of the configuration
-# happens via ansible.
-#
-# Copyright 2015 Lars Wirzenius
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-
-set -eu
-
-# Avoid any problems (mainly weird perl warnings) from inherited
-# locale from user.
-export LC_ALL=C
-
-rootdir="$1"
-
-# Create an account for ansible.
-chroot "$rootdir" adduser --gecos 'Ansible' --disabled-password ansible
-
-# Install an authorize_keys file so that ansible can access the account.
-chroot "$rootdir" install -d -o ansible -g ansible -m 0700 /home/ansible/.ssh
-install -m 0600 authorized_keys "$rootdir/home/ansible/.ssh/authorized_keys"
-chroot "$rootdir" chown ansible:ansible /home/ansible/.ssh/authorized_keys
-
-# Add ansible to sudoers, without password.
-cat <<EOF >> "$rootdir/etc/sudoers.d/ansible"
-ansible ALL=(ALL:ALL) NOPASSWD: ALL
-EOF
-chroot "$rootdir" chown root:root /etc/sudoers.d/ansible
-chroot "$rootdir" chmod 0440 /etc/sudoers.d/ansible