Include linux.storage.loopback
diff --git a/README b/README
index 1ea725f..ef3e5c2 100644
--- a/README
+++ b/README
@@ -3,8 +3,6 @@
apt update
apt install -y salt-master salt-minion reclass make
-sed -i '/^::1/ s/$/ all01/' /etc/hosts
-
rm /etc/salt/minion_id
rm -f /etc/salt/pki/minion/minion_master.pub
echo "id: all01.local" > /etc/salt/minion
@@ -67,10 +65,6 @@
cd -
done
-fallocate -l 10G /lvm.img
-losetup /dev/loop0 /lvm.img
-echo -e '#!/bin/bash\nlosetup /dev/loop0 /lvm.img' > /etc/rc.local
-
# Apply all
salt-call state.apply # minimum two times or until success
diff --git a/classes/cluster/virtual-mcp-allinone/init.yml b/classes/cluster/virtual-mcp-allinone/init.yml
index 4aaa814..e17f129 100755
--- a/classes/cluster/virtual-mcp-allinone/init.yml
+++ b/classes/cluster/virtual-mcp-allinone/init.yml
@@ -1,5 +1,6 @@
classes:
- system.linux.system.single
+- system.linux.storage.loopback
- service.mysql.server.single
- system.mysql.client
- system.memcached.server.single
@@ -11,6 +12,7 @@
mysql_admin_password: workshop
rabbitmq_secret_key: workshop
rabbitmq_admin_password: workshop
+ loopback_device_size: 10
linux:
network:
bridge: openvswitch