mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
use echo
This commit is contained in:
parent
9d042079af
commit
ebe2fb3ba1
1 changed files with 11 additions and 13 deletions
22
Makefile
22
Makefile
|
|
@ -207,11 +207,11 @@ clean:
|
||||||
rm -f $(_BASE_DIR)/*.log || true
|
rm -f $(_BASE_DIR)/*.log || true
|
||||||
|
|
||||||
install-deps:
|
install-deps:
|
||||||
if [[ "$(PACKAGE_MANAGER)" =~ apt.* ]]; then $(PACKAGE_MANAGER) update; fi
|
if [ "$(PACKAGE_MANAGER)" =~ apt.* ]; then $(PACKAGE_MANAGER) update; fi
|
||||||
$(PACKAGE_MANAGER) install -y lorax xorriso skopeo flatpak dbus-daemon ostree coreutils gettext git
|
$(PACKAGE_MANAGER) install -y lorax xorriso skopeo flatpak dbus-daemon ostree coreutils gettext git
|
||||||
|
|
||||||
install-test-deps:
|
install-test-deps:
|
||||||
if [[ "$(PACKAGE_MANAGER)" =~ apt.* ]]; then $(PACKAGE_MANAGER) update; fi
|
if [ "$(PACKAGE_MANAGER)" =~ apt.* ]; then $(PACKAGE_MANAGER) update; fi
|
||||||
$(PACKAGE_MANAGER) install -y qemu qemu-utils xorriso unzip qemu-system-x86 netcat socat jq isomd5sum ansible make coreutils squashfs-tools
|
$(PACKAGE_MANAGER) install -y qemu qemu-utils xorriso unzip qemu-system-x86 netcat socat jq isomd5sum ansible make coreutils squashfs-tools
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -248,16 +248,14 @@ test-iso:
|
||||||
sudo umount /mnt/iso
|
sudo umount /mnt/iso
|
||||||
|
|
||||||
ansible_inventory:
|
ansible_inventory:
|
||||||
cat << EOF > ansible_inventory
|
echo "ungrouped:" > ansible_inventory
|
||||||
ungrouped:
|
echo " hosts:" >> ansible_inventory
|
||||||
hosts:
|
echo " vm:" >> ansible_inventory
|
||||||
vm:
|
echo " ansible_host: ${VM_IP}" >> ansible_inventory
|
||||||
ansible_host: ${VM_IP}
|
echo " ansible_port: ${VM_PORT}" >> ansible_inventory
|
||||||
ansible_port: ${VM_PORT}
|
echo " ansible_user: ${VM_USER}" >> ansible_inventory
|
||||||
ansible_user: ${VM_USER}
|
echo " ansible_password: ${VM_PASS}" >> ansible_inventory
|
||||||
ansible_password: ${VM_PASS}
|
echo " ansible_ssh_common_args: '-o StrictHostKeyChecking=no'" >> ansible_inventory
|
||||||
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
|
|
||||||
EOF
|
|
||||||
|
|
||||||
test-vm: ansible_inventory
|
test-vm: ansible_inventory
|
||||||
$(eval _TESTS = $(filter-out README.md,$(shell ls tests/vm)))
|
$(eval _TESTS = $(filter-out README.md,$(shell ls tests/vm)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue