From 277ee87f1fe31aba70ab5fd77eb3ff4c273de938 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Wed, 3 Mar 2021 12:20:37 +0100 Subject: [PATCH] F #5076: New provision template names - provisions (top level) are now edge-clusters - New edge-clusters: metal and virtual - New qemu IM driver - Removed previous templates (hybrid+) --- install.sh | 55 ++++++++++++- .../edge-clusters/metal/description.md | 8 ++ .../metal}/providers/aws/aws-eu-central-1.yml | 7 +- .../metal}/providers/aws/aws-eu-west-2.yml | 7 +- .../metal}/providers/aws/aws-us-east-1.yml | 7 +- .../metal}/providers/aws/aws-us-west-1.yml | 7 +- .../metal}/providers/packet/packet-ams1.yml | 4 +- .../metal}/providers/packet/packet-ewr1.yml | 4 +- .../metal}/providers/packet/packet-nrt1.yml | 4 +- .../metal}/providers/packet/packet-sjc1.yml | 4 +- .../metal}/provisions/aws.d/datastores.yml | 1 + .../metal}/provisions/aws.d/fireedge.yml | 2 +- .../metal}/provisions/aws.d/inputs.yml | 8 ++ .../metal}/provisions/aws.d/networks.yml | 0 .../metal}/provisions/aws.yml | 17 ++-- .../metal}/provisions/common.d/defaults.yml | 3 +- .../metal/provisions/common.d/hosts.yml} | 6 +- .../metal}/provisions/common.d/resources.yml | 7 -- .../metal}/provisions/packet.d/datastores.yml | 1 + .../metal}/provisions/packet.d/fireedge.yml | 2 +- .../metal}/provisions/packet.d/inputs.yml | 8 ++ .../metal}/provisions/packet.d/networks.yml | 0 .../metal}/provisions/packet.yml | 17 ++-- .../edge-clusters/virtual/description.md | 8 ++ .../providers/aws/aws-eu-central-1.yml | 4 +- .../virtual}/providers/aws/aws-eu-west-2.yml | 4 +- .../virtual}/providers/aws/aws-us-east-1.yml | 4 +- .../virtual}/providers/aws/aws-us-west-1.yml | 4 +- .../virtual}/provisions/aws.d/datastores.yml | 0 .../virtual}/provisions/aws.d/fireedge.yml | 2 +- .../virtual}/provisions/aws.d/inputs.yml | 9 ++- .../virtual}/provisions/aws.d/networks.yml | 0 .../virtual}/provisions/aws.yml | 17 ++-- .../virtual}/provisions/common.d/defaults.yml | 9 ++- .../virtual/provisions/common.d/hosts.yml} | 6 +- .../provisions/common.d/resources.yml | 7 -- .../provisions/hybrid+/description.md | 3 - .../providers/aws/aws-eu-central-1.yml | 24 ------ .../hybrid+/providers/aws/aws-eu-west-2.yml | 24 ------ .../hybrid+/providers/aws/aws-us-east-1.yml | 24 ------ .../hybrid+/providers/aws/aws-us-west-1.yml | 24 ------ .../hybrid+/provisions/aws.d/defaults.yml | 26 ------- .../hybrid+/provisions/aws.d/inputs.yml | 38 --------- .../hybrid+/provisions/common.d/defaults.yml | 29 ------- .../hybrid+/provisions/packet.d/defaults.yml | 24 ------ .../hybrid+_firecracker/description.md | 7 -- .../providers/packet/packet-ams1.yml | 24 ------ .../providers/packet/packet-ewr1.yml | 26 ------- .../providers/packet/packet-nrt1.yml | 26 ------- .../providers/packet/packet-sjc1.yml | 26 ------- .../provisions/aws.d/datastores.yml | 46 ----------- .../provisions/aws.d/defaults.yml | 26 ------- .../provisions/aws.d/fireedge.yml | 20 ----- .../hybrid+_firecracker/provisions/aws.yml | 78 ------------------- .../provisions/common.d/firecracker_hosts.yml | 35 --------- .../provisions/common.d/resources.yml | 36 --------- .../provisions/packet.d/datastores.yml | 46 ----------- .../provisions/packet.d/defaults.yml | 24 ------ .../provisions/packet.d/fireedge.yml | 20 ----- .../provisions/packet.d/inputs.yml | 38 --------- .../provisions/packet.d/networks.yml | 40 ---------- .../hybrid+_firecracker/provisions/packet.yml | 73 ----------------- .../provisions/hybrid+_qemu/description.md | 7 -- .../provisions/aws.d/defaults.yml | 26 ------- .../provisions/aws.d/networks.yml | 40 ---------- src/im_mad/remotes/qemu-probes.d | 1 + src/im_mad/remotes/qemu.d | 1 + 67 files changed, 161 insertions(+), 974 deletions(-) create mode 100644 share/oneprovision/edge-clusters/metal/description.md rename share/oneprovision/{provisions/hybrid+_firecracker => edge-clusters/metal}/providers/aws/aws-eu-central-1.yml (77%) rename share/oneprovision/{provisions/hybrid+_firecracker => edge-clusters/metal}/providers/aws/aws-eu-west-2.yml (77%) rename share/oneprovision/{provisions/hybrid+_firecracker => edge-clusters/metal}/providers/aws/aws-us-east-1.yml (77%) rename share/oneprovision/{provisions/hybrid+_firecracker => edge-clusters/metal}/providers/aws/aws-us-west-1.yml (76%) rename share/oneprovision/{provisions/hybrid+ => edge-clusters/metal}/providers/packet/packet-ams1.yml (80%) rename share/oneprovision/{provisions/hybrid+ => edge-clusters/metal}/providers/packet/packet-ewr1.yml (80%) rename share/oneprovision/{provisions/hybrid+ => edge-clusters/metal}/providers/packet/packet-nrt1.yml (81%) rename share/oneprovision/{provisions/hybrid+ => edge-clusters/metal}/providers/packet/packet-sjc1.yml (80%) rename share/oneprovision/{provisions/hybrid+_qemu => edge-clusters/metal}/provisions/aws.d/datastores.yml (97%) rename share/oneprovision/{provisions/hybrid+ => edge-clusters/metal}/provisions/aws.d/fireedge.yml (97%) rename share/oneprovision/{provisions/hybrid+_firecracker => edge-clusters/metal}/provisions/aws.d/inputs.yml (91%) rename share/oneprovision/{provisions/hybrid+ => edge-clusters/metal}/provisions/aws.d/networks.yml (100%) rename share/oneprovision/{provisions/hybrid+ => edge-clusters/metal}/provisions/aws.yml (89%) rename share/oneprovision/{provisions/hybrid+_firecracker => edge-clusters/metal}/provisions/common.d/defaults.yml (93%) rename share/oneprovision/{provisions/hybrid+_qemu/provisions/common.d/qemu_hosts.yml => edge-clusters/metal/provisions/common.d/hosts.yml} (94%) rename share/oneprovision/{provisions/hybrid+_qemu => edge-clusters/metal}/provisions/common.d/resources.yml (92%) rename share/oneprovision/{provisions/hybrid+ => edge-clusters/metal}/provisions/packet.d/datastores.yml (97%) rename share/oneprovision/{provisions/hybrid+ => edge-clusters/metal}/provisions/packet.d/fireedge.yml (97%) rename share/oneprovision/{provisions/hybrid+ => edge-clusters/metal}/provisions/packet.d/inputs.yml (90%) rename share/oneprovision/{provisions/hybrid+ => edge-clusters/metal}/provisions/packet.d/networks.yml (100%) rename share/oneprovision/{provisions/hybrid+ => edge-clusters/metal}/provisions/packet.yml (89%) create mode 100644 share/oneprovision/edge-clusters/virtual/description.md rename share/oneprovision/{provisions/hybrid+_qemu => edge-clusters/virtual}/providers/aws/aws-eu-central-1.yml (83%) rename share/oneprovision/{provisions/hybrid+_qemu => edge-clusters/virtual}/providers/aws/aws-eu-west-2.yml (83%) rename share/oneprovision/{provisions/hybrid+_qemu => edge-clusters/virtual}/providers/aws/aws-us-east-1.yml (82%) rename share/oneprovision/{provisions/hybrid+_qemu => edge-clusters/virtual}/providers/aws/aws-us-west-1.yml (82%) rename share/oneprovision/{provisions/hybrid+ => edge-clusters/virtual}/provisions/aws.d/datastores.yml (100%) rename share/oneprovision/{provisions/hybrid+_qemu => edge-clusters/virtual}/provisions/aws.d/fireedge.yml (97%) rename share/oneprovision/{provisions/hybrid+_qemu => edge-clusters/virtual}/provisions/aws.d/inputs.yml (88%) rename share/oneprovision/{provisions/hybrid+_firecracker => edge-clusters/virtual}/provisions/aws.d/networks.yml (100%) rename share/oneprovision/{provisions/hybrid+_qemu => edge-clusters/virtual}/provisions/aws.yml (89%) rename share/oneprovision/{provisions/hybrid+_qemu => edge-clusters/virtual}/provisions/common.d/defaults.yml (91%) rename share/oneprovision/{provisions/hybrid+/provisions/common.d/kvm_hosts.yml => edge-clusters/virtual/provisions/common.d/hosts.yml} (94%) rename share/oneprovision/{provisions/hybrid+ => edge-clusters/virtual}/provisions/common.d/resources.yml (92%) delete mode 100644 share/oneprovision/provisions/hybrid+/description.md delete mode 100644 share/oneprovision/provisions/hybrid+/providers/aws/aws-eu-central-1.yml delete mode 100644 share/oneprovision/provisions/hybrid+/providers/aws/aws-eu-west-2.yml delete mode 100644 share/oneprovision/provisions/hybrid+/providers/aws/aws-us-east-1.yml delete mode 100644 share/oneprovision/provisions/hybrid+/providers/aws/aws-us-west-1.yml delete mode 100644 share/oneprovision/provisions/hybrid+/provisions/aws.d/defaults.yml delete mode 100644 share/oneprovision/provisions/hybrid+/provisions/aws.d/inputs.yml delete mode 100644 share/oneprovision/provisions/hybrid+/provisions/common.d/defaults.yml delete mode 100644 share/oneprovision/provisions/hybrid+/provisions/packet.d/defaults.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/description.md delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-ams1.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-ewr1.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-nrt1.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-sjc1.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/datastores.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/defaults.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/fireedge.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/provisions/common.d/firecracker_hosts.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/provisions/common.d/resources.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/datastores.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/defaults.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/fireedge.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/inputs.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/networks.yml delete mode 100644 share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.yml delete mode 100644 share/oneprovision/provisions/hybrid+_qemu/description.md delete mode 100644 share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/defaults.yml delete mode 100644 share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/networks.yml create mode 120000 src/im_mad/remotes/qemu-probes.d create mode 120000 src/im_mad/remotes/qemu.d diff --git a/install.sh b/install.sh index 6a8657c467..5d6b094f53 100755 --- a/install.sh +++ b/install.sh @@ -337,6 +337,13 @@ VAR_DIRS="$VAR_LOCATION/remotes \ $VAR_LOCATION/remotes/im/kvm-probes.d/vm/monitor \ $VAR_LOCATION/remotes/im/kvm-probes.d/vm/status \ $VAR_LOCATION/remotes/im/kvm-probes.d/vm/snapshot \ + $VAR_LOCATION/remotes/im/qemu.d \ + $VAR_LOCATION/remotes/im/qemu-probes.d/host/beacon \ + $VAR_LOCATION/remotes/im/qemu-probes.d/host/monitor \ + $VAR_LOCATION/remotes/im/qemu-probes.d/host/system \ + $VAR_LOCATION/remotes/im/qemu-probes.d/vm/monitor \ + $VAR_LOCATION/remotes/im/qemu-probes.d/vm/status \ + $VAR_LOCATION/remotes/im/qemu-probes.d/vm/snapshot \ $VAR_LOCATION/remotes/im/dummy.d \ $VAR_LOCATION/remotes/im/dummy-probes.d/host/beacon \ $VAR_LOCATION/remotes/im/dummy-probes.d/host/monitor \ @@ -558,6 +565,7 @@ INSTALL_FILES=( IM_PROBES_FILES:$VAR_LOCATION/remotes/im IM_PROBES_LIB_FILES:$VAR_LOCATION/remotes/im/lib IM_PROBES_KVM_FILES:$VAR_LOCATION/remotes/im/kvm.d + IM_PROBES_QEMU_FILES:$VAR_LOCATION/remotes/im/qemu.d IM_PROBES_FIRECRACKER_FILES:$VAR_LOCATION/remotes/im/firecracker.d IM_PROBES_DUMMY_FILES:$VAR_LOCATION/remotes/im/dummy.d IM_PROBES_LXD_FILES:$VAR_LOCATION/remotes/im/lxd.d @@ -573,6 +581,13 @@ INSTALL_FILES=( IM_PROBES_KVM_VM_STATUS_FILES:$VAR_LOCATION/remotes/im/kvm-probes.d/vm/status IM_PROBES_KVM_VM_SNAPSHOT_FILES:$VAR_LOCATION/remotes/im/kvm-probes.d/vm/snapshot IM_PROBES_ETC_KVM_PROBES_FILES:$VAR_LOCATION/remotes/etc/im/kvm-probes.d + IM_PROBES_QEMU_HOST_BEACON_FILES:$VAR_LOCATION/remotes/im/kvm-probes.d/host/beacon + IM_PROBES_QEMU_HOST_MONITOR_FILES:$VAR_LOCATION/remotes/im/kvm-probes.d/host/monitor + IM_PROBES_QEMU_HOST_SYSTEM_FILES:$VAR_LOCATION/remotes/im/kvm-probes.d/host/system + IM_PROBES_QEMU_VM_MONITOR_FILES:$VAR_LOCATION/remotes/im/kvm-probes.d/vm/monitor + IM_PROBES_QEMU_VM_STATUS_FILES:$VAR_LOCATION/remotes/im/kvm-probes.d/vm/status + IM_PROBES_QEMU_VM_SNAPSHOT_FILES:$VAR_LOCATION/remotes/im/kvm-probes.d/vm/snapshot + IM_PROBES_ETC_QEMU_PROBES_FILES:$VAR_LOCATION/remotes/etc/im/kvm-probes.d IM_PROBES_DUMMY_HOST_BEACON_FILES:$VAR_LOCATION/remotes/im/dummy-probes.d/host/beacon IM_PROBES_DUMMY_HOST_MONITOR_FILES:$VAR_LOCATION/remotes/im/dummy-probes.d/host/monitor IM_PROBES_DUMMY_HOST_SYSTEM_FILES:$VAR_LOCATION/remotes/im/dummy-probes.d/host/system @@ -1314,6 +1329,44 @@ IM_PROBES_ETC_KVM_PROBES_FILES="\ src/im_mad/remotes/kvm-probes.d/pci.conf \ src/im_mad/remotes/lib/probe_db.conf" +IM_PROBES_QEMU_FILES="\ + src/im_mad/remotes/qemu.d/monitord-client_control.sh \ + src/im_mad/remotes/qemu.d/monitord-client.rb" + +IM_PROBES_QEMU_HOST_BEACON_FILES="\ + src/im_mad/remotes/qemu-probes.d/host/beacon/monitord-client-shepherd.sh \ + src/im_mad/remotes/qemu-probes.d/host/beacon/date.sh" + +IM_PROBES_QEMU_HOST_MONITOR_FILES="\ + src/im_mad/remotes/qemu-probes.d/host/monitor/linux_usage.rb \ + src/im_mad/remotes/qemu-probes.d/host/monitor/numa_usage.rb" + +IM_PROBES_QEMU_HOST_SYSTEM_FILES="\ + src/im_mad/remotes/qemu-probes.d/host/system/architecture.sh \ + src/im_mad/remotes/qemu-probes.d/host/system/cpu.sh \ + src/im_mad/remotes/qemu-probes.d/host/system/linux_host.rb \ + src/im_mad/remotes/qemu-probes.d/host/system/machines_models.rb \ + src/im_mad/remotes/qemu-probes.d/host/system/monitor_ds.rb \ + src/im_mad/remotes/qemu-probes.d/host/system/name.sh \ + src/im_mad/remotes/qemu-probes.d/host/system/numa_host.rb \ + src/im_mad/remotes/qemu-probes.d/host/system/wild_vm.rb \ + src/im_mad/remotes/qemu-probes.d/host/system/pci.rb \ + src/im_mad/remotes/qemu-probes.d/host/system/version.sh" + +IM_PROBES_QEMU_VM_MONITOR_FILES="\ + src/im_mad/remotes/qemu-probes.d/vm/monitor/poll.rb \ + src/im_mad/remotes/qemu-probes.d/vm/monitor/monitor_ds_vm.rb" + +IM_PROBES_QEMU_VM_STATUS_FILES="\ + src/im_mad/remotes/qemu-probes.d/vm/status/state.rb" + +IM_PROBES_QEMU_VM_SNAPSHOT_FILES="\ + src/im_mad/remotes/qemu-probes.d/vm/snapshot/recovery.rb" + +IM_PROBES_ETC_QEMU_PROBES_FILES="\ + src/im_mad/remotes/qemu-probes.d/pci.conf \ + src/im_mad/remotes/lib/probe_db.conf" + # DUMMY PROBES IM_PROBES_DUMMY_FILES="\ src/im_mad/remotes/dummy.d/monitord-client_control.sh \ @@ -2277,7 +2330,7 @@ ONEPROVISION_CONF_FILES="src/cli/etc/oneprovision.yaml \ ONEPROVISION_ANSIBLE_FILES="share/oneprovision/ansible" -ONEPROVISION_TEMPLATES_FILES="share/oneprovision/provisions/" +ONEPROVISION_TEMPLATES_FILES="share/oneprovision/edge-clusters/" ONEPROVISION_LIB_FILES="src/oneprovision/lib/oneprovision.rb \ src/oneprovision/lib/provision_element.rb" diff --git a/share/oneprovision/edge-clusters/metal/description.md b/share/oneprovision/edge-clusters/metal/description.md new file mode 100644 index 0000000000..d4d2b1cbd2 --- /dev/null +++ b/share/oneprovision/edge-clusters/metal/description.md @@ -0,0 +1,8 @@ +The metal edge provision uses bare-metal instances to build an **edge cluster**. This provision will give you the best performance. It features the following characteristics: + +* Hosts are provisioned as metal instances in the selected provider. +* Supported virtualization technologies: QEMU/KVM and Firecracker/KVM +* The provision includes a public network (Internet reachable IPs) +* It also includes a virtual network template to create private VLANs. You need to instantiate this network template. + +More information [about](about) using this provision can be found in the [OpenNebula documentation](https://opennebula.io) diff --git a/share/oneprovision/provisions/hybrid+_firecracker/providers/aws/aws-eu-central-1.yml b/share/oneprovision/edge-clusters/metal/providers/aws/aws-eu-central-1.yml similarity index 77% rename from share/oneprovision/provisions/hybrid+_firecracker/providers/aws/aws-eu-central-1.yml rename to share/oneprovision/edge-clusters/metal/providers/aws/aws-eu-central-1.yml index 541bbfcfbb..0f35f33d77 100644 --- a/share/oneprovision/provisions/hybrid+_firecracker/providers/aws/aws-eu-central-1.yml +++ b/share/oneprovision/edge-clusters/metal/providers/aws/aws-eu-central-1.yml @@ -1,12 +1,12 @@ name: 'aws-frankfurt' -description: 'Elastic cluster on AWS in Frankfurt' +description: 'Edge cluster in AWS Frankfurt' provider: 'aws' plain: image: 'AWS' location_key: 'region' - provision_type: 'hybrid+_firecracker' + provision_type: 'metal' connection: access_key: 'AWS access key' @@ -21,6 +21,7 @@ inputs: - name: 'aws_instance_type' type: 'list' options: - - 'c5n.metal' + - 'c5.metal' - 'i3.metal' - 'm5.metal' + - 'r5.metal' diff --git a/share/oneprovision/provisions/hybrid+_firecracker/providers/aws/aws-eu-west-2.yml b/share/oneprovision/edge-clusters/metal/providers/aws/aws-eu-west-2.yml similarity index 77% rename from share/oneprovision/provisions/hybrid+_firecracker/providers/aws/aws-eu-west-2.yml rename to share/oneprovision/edge-clusters/metal/providers/aws/aws-eu-west-2.yml index b40418e08b..de2eada238 100644 --- a/share/oneprovision/provisions/hybrid+_firecracker/providers/aws/aws-eu-west-2.yml +++ b/share/oneprovision/edge-clusters/metal/providers/aws/aws-eu-west-2.yml @@ -1,12 +1,12 @@ name: 'aws-london' -description: 'Elastic cluster on AWS in London' +description: 'Edge cluster in AWS London' provider: 'aws' plain: image: 'AWS' location_key: 'region' - provision_type: 'hybrid+_firecracker' + provision_type: 'metal' connection: access_key: 'AWS access key' @@ -21,6 +21,7 @@ inputs: - name: 'aws_instance_type' type: 'list' options: - - 'c5n.metal' + - 'c5.metal' + - 'i3.metal' - 'm5.metal' - 'r5.metal' diff --git a/share/oneprovision/provisions/hybrid+_firecracker/providers/aws/aws-us-east-1.yml b/share/oneprovision/edge-clusters/metal/providers/aws/aws-us-east-1.yml similarity index 77% rename from share/oneprovision/provisions/hybrid+_firecracker/providers/aws/aws-us-east-1.yml rename to share/oneprovision/edge-clusters/metal/providers/aws/aws-us-east-1.yml index 7237002208..b163dd454d 100644 --- a/share/oneprovision/provisions/hybrid+_firecracker/providers/aws/aws-us-east-1.yml +++ b/share/oneprovision/edge-clusters/metal/providers/aws/aws-us-east-1.yml @@ -1,12 +1,12 @@ name: 'aws-north-virginia' -description: 'Elastic cluster on AWS in North Virginia' +description: 'Edge cluster in AWS North Virginia' provider: 'aws' plain: image: 'AWS' location_key: 'region' - provision_type: 'hybrid+_firecracker' + provision_type: 'metal' connection: access_key: 'AWS access key' @@ -21,6 +21,7 @@ inputs: - name: 'aws_instance_type' type: 'list' options: - - 'c5n.metal' + - 'c5.metal' - 'i3.metal' - 'm5.metal' + - 'r5.metal' diff --git a/share/oneprovision/provisions/hybrid+_firecracker/providers/aws/aws-us-west-1.yml b/share/oneprovision/edge-clusters/metal/providers/aws/aws-us-west-1.yml similarity index 76% rename from share/oneprovision/provisions/hybrid+_firecracker/providers/aws/aws-us-west-1.yml rename to share/oneprovision/edge-clusters/metal/providers/aws/aws-us-west-1.yml index 12865ce939..14b4e1045f 100644 --- a/share/oneprovision/provisions/hybrid+_firecracker/providers/aws/aws-us-west-1.yml +++ b/share/oneprovision/edge-clusters/metal/providers/aws/aws-us-west-1.yml @@ -1,12 +1,12 @@ name: 'aws-north-california' -description: 'Elastic cluster on AWS in North California' +description: 'Edge cluster in AWS North California' provider: 'aws' plain: image: 'AWS' location_key: 'region' - provision_type: 'hybrid+_firecracker' + provision_type: 'metal' connection: access_key: 'AWS access key' @@ -21,6 +21,7 @@ inputs: - name: 'aws_instance_type' type: 'list' options: - - 'c5n.metal' + - 'c5.metal' - 'i3.metal' - 'm5.metal' + - 'r5.metal' diff --git a/share/oneprovision/provisions/hybrid+/providers/packet/packet-ams1.yml b/share/oneprovision/edge-clusters/metal/providers/packet/packet-ams1.yml similarity index 80% rename from share/oneprovision/provisions/hybrid+/providers/packet/packet-ams1.yml rename to share/oneprovision/edge-clusters/metal/providers/packet/packet-ams1.yml index d647be0cd4..ff4a2fcb01 100644 --- a/share/oneprovision/provisions/hybrid+/providers/packet/packet-ams1.yml +++ b/share/oneprovision/edge-clusters/metal/providers/packet/packet-ams1.yml @@ -1,12 +1,12 @@ name: 'packet-amsterdam' -description: 'Elastic cluster on Packet in Amsterdam' +description: 'Edge cluster in Equinix Amsterdam' provider: 'packet' plain: image: 'EQUINIX' location_key: 'facility' - provision_type: 'hybrid+' + provision_type: 'metal' connection: token: 'Packet token' diff --git a/share/oneprovision/provisions/hybrid+/providers/packet/packet-ewr1.yml b/share/oneprovision/edge-clusters/metal/providers/packet/packet-ewr1.yml similarity index 80% rename from share/oneprovision/provisions/hybrid+/providers/packet/packet-ewr1.yml rename to share/oneprovision/edge-clusters/metal/providers/packet/packet-ewr1.yml index ffabb0a85c..fb43269a55 100644 --- a/share/oneprovision/provisions/hybrid+/providers/packet/packet-ewr1.yml +++ b/share/oneprovision/edge-clusters/metal/providers/packet/packet-ewr1.yml @@ -1,12 +1,12 @@ name: 'packet-ewr1' -description: 'Elastic cluster on Packet in Parsippany, USA, NJ' +description: 'Edge cluster in Equinix Parsippany, USA, NJ' provider: 'packet' plain: image: 'EQUINIX' location_key: 'facility' - provision_type: 'hybrid+' + provision_type: 'metal' connection: token: 'Packet token' diff --git a/share/oneprovision/provisions/hybrid+/providers/packet/packet-nrt1.yml b/share/oneprovision/edge-clusters/metal/providers/packet/packet-nrt1.yml similarity index 81% rename from share/oneprovision/provisions/hybrid+/providers/packet/packet-nrt1.yml rename to share/oneprovision/edge-clusters/metal/providers/packet/packet-nrt1.yml index 34b2032187..1e43ce1651 100644 --- a/share/oneprovision/provisions/hybrid+/providers/packet/packet-nrt1.yml +++ b/share/oneprovision/edge-clusters/metal/providers/packet/packet-nrt1.yml @@ -1,12 +1,12 @@ name: 'packet-nrt1' -description: 'Elastic cluster on Packet in Tokyo, Japan' +description: 'Edge cluster in Equinix Tokyo, Japan' provider: 'packet' plain: image: 'EQUINIX' location_key: 'facility' - provision_type: 'hybrid+' + provision_type: 'metal' connection: token: 'Packet token' diff --git a/share/oneprovision/provisions/hybrid+/providers/packet/packet-sjc1.yml b/share/oneprovision/edge-clusters/metal/providers/packet/packet-sjc1.yml similarity index 80% rename from share/oneprovision/provisions/hybrid+/providers/packet/packet-sjc1.yml rename to share/oneprovision/edge-clusters/metal/providers/packet/packet-sjc1.yml index dd53ed20c6..2bdb5a21e1 100644 --- a/share/oneprovision/provisions/hybrid+/providers/packet/packet-sjc1.yml +++ b/share/oneprovision/edge-clusters/metal/providers/packet/packet-sjc1.yml @@ -1,12 +1,12 @@ name: 'packet-sjc1' -description: 'Elastic cluster on Packet in Sunnyvale, USA, CA' +description: 'Edge cluster in Equinix, USA, CA' provider: 'packet' plain: image: 'EQUINIX' location_key: 'facility' - provision_type: 'hybrid+' + provision_type: 'metal' connection: token: 'Packet token' diff --git a/share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/datastores.yml b/share/oneprovision/edge-clusters/metal/provisions/aws.d/datastores.yml similarity index 97% rename from share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/datastores.yml rename to share/oneprovision/edge-clusters/metal/provisions/aws.d/datastores.yml index 78bb9bf37f..d1dda640fe 100644 --- a/share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/datastores.yml +++ b/share/oneprovision/edge-clusters/metal/provisions/aws.d/datastores.yml @@ -20,6 +20,7 @@ # drivers. It creates the following datastores, using Replica driver: # 1. Image datastore, ${cluster_name}-image # 2. System datastore, ${cluster_name}-system +# 3. File datastore, ${cluster_name}-files # # Configuration/Input attributes: # - replica_host: The host that will hold the cluster replicas and snapshots. diff --git a/share/oneprovision/provisions/hybrid+/provisions/aws.d/fireedge.yml b/share/oneprovision/edge-clusters/metal/provisions/aws.d/fireedge.yml similarity index 97% rename from share/oneprovision/provisions/hybrid+/provisions/aws.d/fireedge.yml rename to share/oneprovision/edge-clusters/metal/provisions/aws.d/fireedge.yml index a386ce3b1a..de32a20717 100644 --- a/share/oneprovision/provisions/hybrid+/provisions/aws.d/fireedge.yml +++ b/share/oneprovision/edge-clusters/metal/provisions/aws.d/fireedge.yml @@ -17,4 +17,4 @@ image: 'OPENNEBULA-AWS' provider: 'aws' -provision_type: 'hybrid+' +provision_type: 'metal' diff --git a/share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/inputs.yml b/share/oneprovision/edge-clusters/metal/provisions/aws.d/inputs.yml similarity index 91% rename from share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/inputs.yml rename to share/oneprovision/edge-clusters/metal/provisions/aws.d/inputs.yml index 8f82ecc900..dc72b62163 100644 --- a/share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/inputs.yml +++ b/share/oneprovision/edge-clusters/metal/provisions/aws.d/inputs.yml @@ -35,4 +35,12 @@ inputs: type: text description: "AWS instance type, use bare-metal instances" default: '' + + - name: 'one_hypervisor' + type: list + description: "Virtualization technology for the cluster hosts" + options: + - 'kvm' + - 'firecracker' + ... diff --git a/share/oneprovision/provisions/hybrid+/provisions/aws.d/networks.yml b/share/oneprovision/edge-clusters/metal/provisions/aws.d/networks.yml similarity index 100% rename from share/oneprovision/provisions/hybrid+/provisions/aws.d/networks.yml rename to share/oneprovision/edge-clusters/metal/provisions/aws.d/networks.yml diff --git a/share/oneprovision/provisions/hybrid+/provisions/aws.yml b/share/oneprovision/edge-clusters/metal/provisions/aws.yml similarity index 89% rename from share/oneprovision/provisions/hybrid+/provisions/aws.yml rename to share/oneprovision/edge-clusters/metal/provisions/aws.yml index 8f88c9351d..42afab5d2f 100644 --- a/share/oneprovision/provisions/hybrid+/provisions/aws.yml +++ b/share/oneprovision/edge-clusters/metal/provisions/aws.yml @@ -25,23 +25,15 @@ name: 'aws-cluster' extends: - common.d/defaults.yml - common.d/resources.yml - - common.d/kvm_hosts.yml + - common.d/hosts.yml - aws.d/datastores.yml - - aws.d/defaults.yml - aws.d/fireedge.yml - aws.d/inputs.yml - aws.d/networks.yml #------------------------------------------------------------------------------- -# playbook: Ansible playbook used for hosts configuration.The aws playbook -# include the following roles: -# - ddc -# - opennebula-repository -# - opennebula-node-kvm -# - opennebula-ssh -# - tuntap -# - bridged-networking -# - iptables +# playbook: Ansible playbook used for hosts configuration. Check ansible/aws.yml +# for the specific roles applied. #------------------------------------------------------------------------------- playbook: - aws @@ -68,10 +60,11 @@ defaults: #-------------------------------------------------------------------------------- cluster: name: "${provision}" - description: 'AWS cluster' + description: 'AWS edge cluster' reserved_cpu: '0' reserved_mem: '0' datastores: - 1 + - 2 provision: cidr: '10.0.0.0/16' diff --git a/share/oneprovision/provisions/hybrid+_firecracker/provisions/common.d/defaults.yml b/share/oneprovision/edge-clusters/metal/provisions/common.d/defaults.yml similarity index 93% rename from share/oneprovision/provisions/hybrid+_firecracker/provisions/common.d/defaults.yml rename to share/oneprovision/edge-clusters/metal/provisions/common.d/defaults.yml index 6a56a62cef..de0187c799 100644 --- a/share/oneprovision/provisions/hybrid+_firecracker/provisions/common.d/defaults.yml +++ b/share/oneprovision/edge-clusters/metal/provisions/common.d/defaults.yml @@ -21,7 +21,8 @@ defaults: configuration: - oneprovision_hypervisor: 'firecracker' + # Select the hypervisor package to install + oneprovision_hypervisor: "${input.one_hypervisor}" # required for copying recovery VM snaphosts to the replica host opennebula_ssh_deploy_private_key: true diff --git a/share/oneprovision/provisions/hybrid+_qemu/provisions/common.d/qemu_hosts.yml b/share/oneprovision/edge-clusters/metal/provisions/common.d/hosts.yml similarity index 94% rename from share/oneprovision/provisions/hybrid+_qemu/provisions/common.d/qemu_hosts.yml rename to share/oneprovision/edge-clusters/metal/provisions/common.d/hosts.yml index abd1a1e91d..b6c1f11407 100644 --- a/share/oneprovision/provisions/hybrid+_qemu/provisions/common.d/qemu_hosts.yml +++ b/share/oneprovision/edge-clusters/metal/provisions/common.d/hosts.yml @@ -27,9 +27,9 @@ #------------------------------------------------------------------------------- hosts: - - im_mad: 'kvm' - vm_mad: 'qemu' + - im_mad: "${input.one_hypervisor}" + vm_mad: "${input.one_hypervisor}" provision: count: "${input.number_hosts}" - hostname: "qemu-host${index}" + hostname: "edge-host${index}" ... diff --git a/share/oneprovision/provisions/hybrid+_qemu/provisions/common.d/resources.yml b/share/oneprovision/edge-clusters/metal/provisions/common.d/resources.yml similarity index 92% rename from share/oneprovision/provisions/hybrid+_qemu/provisions/common.d/resources.yml rename to share/oneprovision/edge-clusters/metal/provisions/common.d/resources.yml index d015fa7cd2..f79444a509 100644 --- a/share/oneprovision/provisions/hybrid+_qemu/provisions/common.d/resources.yml +++ b/share/oneprovision/edge-clusters/metal/provisions/common.d/resources.yml @@ -29,10 +29,3 @@ # - by index, eg. ${datastore.0.id} to get the OpenNebula ID of the **first** # datastore defined in the provision #------------------------------------------------------------------------------- -marketplaceapps: - - appname: "Alpine Linux 3.10" - name: "alpine" - dsid: "${datastore.0.id}" - meta: - wait: true - wait_timeout: 60 diff --git a/share/oneprovision/provisions/hybrid+/provisions/packet.d/datastores.yml b/share/oneprovision/edge-clusters/metal/provisions/packet.d/datastores.yml similarity index 97% rename from share/oneprovision/provisions/hybrid+/provisions/packet.d/datastores.yml rename to share/oneprovision/edge-clusters/metal/provisions/packet.d/datastores.yml index 78bb9bf37f..d1dda640fe 100644 --- a/share/oneprovision/provisions/hybrid+/provisions/packet.d/datastores.yml +++ b/share/oneprovision/edge-clusters/metal/provisions/packet.d/datastores.yml @@ -20,6 +20,7 @@ # drivers. It creates the following datastores, using Replica driver: # 1. Image datastore, ${cluster_name}-image # 2. System datastore, ${cluster_name}-system +# 3. File datastore, ${cluster_name}-files # # Configuration/Input attributes: # - replica_host: The host that will hold the cluster replicas and snapshots. diff --git a/share/oneprovision/provisions/hybrid+/provisions/packet.d/fireedge.yml b/share/oneprovision/edge-clusters/metal/provisions/packet.d/fireedge.yml similarity index 97% rename from share/oneprovision/provisions/hybrid+/provisions/packet.d/fireedge.yml rename to share/oneprovision/edge-clusters/metal/provisions/packet.d/fireedge.yml index 93f704049a..f814b3abdc 100644 --- a/share/oneprovision/provisions/hybrid+/provisions/packet.d/fireedge.yml +++ b/share/oneprovision/edge-clusters/metal/provisions/packet.d/fireedge.yml @@ -17,4 +17,4 @@ image: 'OPENNEBULA-EQUINIX' provider: 'packet' -provision_type: 'hybrid+' +provision_type: 'metal' diff --git a/share/oneprovision/provisions/hybrid+/provisions/packet.d/inputs.yml b/share/oneprovision/edge-clusters/metal/provisions/packet.d/inputs.yml similarity index 90% rename from share/oneprovision/provisions/hybrid+/provisions/packet.d/inputs.yml rename to share/oneprovision/edge-clusters/metal/provisions/packet.d/inputs.yml index 2af11a55bc..8f001cdb77 100644 --- a/share/oneprovision/provisions/hybrid+/provisions/packet.d/inputs.yml +++ b/share/oneprovision/edge-clusters/metal/provisions/packet.d/inputs.yml @@ -36,3 +36,11 @@ inputs: description: "Packet host operating system" default: 'centos_8' + - name: 'one_hypervisor' + type: list + description: "Virtualization technology for the cluster hosts" + options: + - 'kvm' + - 'firecracker' + +... diff --git a/share/oneprovision/provisions/hybrid+/provisions/packet.d/networks.yml b/share/oneprovision/edge-clusters/metal/provisions/packet.d/networks.yml similarity index 100% rename from share/oneprovision/provisions/hybrid+/provisions/packet.d/networks.yml rename to share/oneprovision/edge-clusters/metal/provisions/packet.d/networks.yml diff --git a/share/oneprovision/provisions/hybrid+/provisions/packet.yml b/share/oneprovision/edge-clusters/metal/provisions/packet.yml similarity index 89% rename from share/oneprovision/provisions/hybrid+/provisions/packet.yml rename to share/oneprovision/edge-clusters/metal/provisions/packet.yml index 2972cbc97e..8a249c6927 100644 --- a/share/oneprovision/provisions/hybrid+/provisions/packet.yml +++ b/share/oneprovision/edge-clusters/metal/provisions/packet.yml @@ -25,23 +25,15 @@ name: 'packet-cluster' extends: - common.d/defaults.yml - common.d/resources.yml - - common.d/kvm_hosts.yml + - common.d/hosts.yml - packet.d/datastores.yml - - packet.d/defaults.yml - packet.d/fireedge.yml - packet.d/inputs.yml - packet.d/networks.yml #------------------------------------------------------------------------------- -# playbook: Ansible playbook used for hosts configuration.The packet playbook -# include the following roles: -# - ddc -# - opennebula-repository -# - opennebula-node-kvm -# - opennebula-ssh -# - tuntap -# - bridged-networking -# - iptables +# playbook: Ansible playbook used for hosts configuration. Check +# ansible/packet.yml for the specific roles applied. #------------------------------------------------------------------------------- playbook: - packet @@ -65,8 +57,9 @@ defaults: #-------------------------------------------------------------------------------- cluster: name: "${provision}" - description: 'Packet cluster' + description: 'Equinix edge cluster' datastores: - 1 + - 2 reserved_cpu: '0' reserved_mem: '0' diff --git a/share/oneprovision/edge-clusters/virtual/description.md b/share/oneprovision/edge-clusters/virtual/description.md new file mode 100644 index 0000000000..296c530f23 --- /dev/null +++ b/share/oneprovision/edge-clusters/virtual/description.md @@ -0,0 +1,8 @@ +The virtual edge provision uses virtual instances (VMs) to build an **edge cluster**. This provision is useful for developing and testing or light workloads. It features the following characteristics: + +* Hosts are provisioned as metal instances in the selected provider. +* Supported virtualization technologies: QEMU (nested virtualization) and LXC (system containers) +* The provision includes a public network (Internet reachable IPs) +* It also includes a virtual network template to create private VLANs. You need to instantiate this network template. + +More information [about](about) using this provision can be found in the [OpenNebula documentation](https://opennebula.io) diff --git a/share/oneprovision/provisions/hybrid+_qemu/providers/aws/aws-eu-central-1.yml b/share/oneprovision/edge-clusters/virtual/providers/aws/aws-eu-central-1.yml similarity index 83% rename from share/oneprovision/provisions/hybrid+_qemu/providers/aws/aws-eu-central-1.yml rename to share/oneprovision/edge-clusters/virtual/providers/aws/aws-eu-central-1.yml index 7a7d3bf59e..acf7644f0d 100644 --- a/share/oneprovision/provisions/hybrid+_qemu/providers/aws/aws-eu-central-1.yml +++ b/share/oneprovision/edge-clusters/virtual/providers/aws/aws-eu-central-1.yml @@ -1,12 +1,12 @@ name: 'aws-frankfurt' -description: 'Elastic cluster on AWS in Frankfurt' +description: 'Elastic cluster in AWS Frankfurt' provider: 'aws' plain: image: 'AWS' location_key: 'region' - provision_type: 'hybrid+_qemu' + provision_type: 'virtual' connection: access_key: 'AWS access key' diff --git a/share/oneprovision/provisions/hybrid+_qemu/providers/aws/aws-eu-west-2.yml b/share/oneprovision/edge-clusters/virtual/providers/aws/aws-eu-west-2.yml similarity index 83% rename from share/oneprovision/provisions/hybrid+_qemu/providers/aws/aws-eu-west-2.yml rename to share/oneprovision/edge-clusters/virtual/providers/aws/aws-eu-west-2.yml index 25dcfafaea..52e951cbf8 100644 --- a/share/oneprovision/provisions/hybrid+_qemu/providers/aws/aws-eu-west-2.yml +++ b/share/oneprovision/edge-clusters/virtual/providers/aws/aws-eu-west-2.yml @@ -1,12 +1,12 @@ name: 'aws-london' -description: 'Elastic cluster on AWS in London' +description: 'Elastic cluster in AWS London' provider: 'aws' plain: image: 'AWS' location_key: 'region' - provision_type: 'hybrid+_qemu' + provision_type: 'virtual' connection: access_key: 'AWS access key' diff --git a/share/oneprovision/provisions/hybrid+_qemu/providers/aws/aws-us-east-1.yml b/share/oneprovision/edge-clusters/virtual/providers/aws/aws-us-east-1.yml similarity index 82% rename from share/oneprovision/provisions/hybrid+_qemu/providers/aws/aws-us-east-1.yml rename to share/oneprovision/edge-clusters/virtual/providers/aws/aws-us-east-1.yml index 348b52164b..0ab25edbcf 100644 --- a/share/oneprovision/provisions/hybrid+_qemu/providers/aws/aws-us-east-1.yml +++ b/share/oneprovision/edge-clusters/virtual/providers/aws/aws-us-east-1.yml @@ -1,12 +1,12 @@ name: 'aws-north-virginia' -description: 'Elastic cluster on AWS in North Virginia' +description: 'Elastic cluster in AWS North Virginia' provider: 'aws' plain: image: 'AWS' location_key: 'region' - provision_type: 'hybrid+_qemu' + provision_type: 'virtual' connection: access_key: 'AWS access key' diff --git a/share/oneprovision/provisions/hybrid+_qemu/providers/aws/aws-us-west-1.yml b/share/oneprovision/edge-clusters/virtual/providers/aws/aws-us-west-1.yml similarity index 82% rename from share/oneprovision/provisions/hybrid+_qemu/providers/aws/aws-us-west-1.yml rename to share/oneprovision/edge-clusters/virtual/providers/aws/aws-us-west-1.yml index 1c7a524b42..b3521b2ec8 100644 --- a/share/oneprovision/provisions/hybrid+_qemu/providers/aws/aws-us-west-1.yml +++ b/share/oneprovision/edge-clusters/virtual/providers/aws/aws-us-west-1.yml @@ -1,12 +1,12 @@ name: 'aws-north-california' -description: 'Elastic cluster on AWS in North California' +description: 'Elastic cluster in AWS North California' provider: 'aws' plain: image: 'AWS' location_key: 'region' - provision_type: 'hybrid+_qemu' + provision_type: 'virtual' connection: access_key: 'AWS access key' diff --git a/share/oneprovision/provisions/hybrid+/provisions/aws.d/datastores.yml b/share/oneprovision/edge-clusters/virtual/provisions/aws.d/datastores.yml similarity index 100% rename from share/oneprovision/provisions/hybrid+/provisions/aws.d/datastores.yml rename to share/oneprovision/edge-clusters/virtual/provisions/aws.d/datastores.yml diff --git a/share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/fireedge.yml b/share/oneprovision/edge-clusters/virtual/provisions/aws.d/fireedge.yml similarity index 97% rename from share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/fireedge.yml rename to share/oneprovision/edge-clusters/virtual/provisions/aws.d/fireedge.yml index 16aa0fd204..8ccc2580d1 100644 --- a/share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/fireedge.yml +++ b/share/oneprovision/edge-clusters/virtual/provisions/aws.d/fireedge.yml @@ -17,4 +17,4 @@ image: 'OPENNEBULA-AWS' provider: 'aws' -provision_type: 'hybrid+_qemu' +provision_type: 'virtual' diff --git a/share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/inputs.yml b/share/oneprovision/edge-clusters/virtual/provisions/aws.d/inputs.yml similarity index 88% rename from share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/inputs.yml rename to share/oneprovision/edge-clusters/virtual/provisions/aws.d/inputs.yml index 0336e9d3d4..4eb0a06b8d 100644 --- a/share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/inputs.yml +++ b/share/oneprovision/edge-clusters/virtual/provisions/aws.d/inputs.yml @@ -33,6 +33,13 @@ inputs: - name: 'aws_instance_type' type: text - description: "AWS instance type, use bare-metal instances, otherwise use QEMU" + description: "AWS instance type, use virtual instances" default: '' + + - name: 'one_hypervisor' + type: list + description: "Virtualization technology for the cluster hosts" + options: + - 'qemu' + - 'lxc' ... diff --git a/share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/networks.yml b/share/oneprovision/edge-clusters/virtual/provisions/aws.d/networks.yml similarity index 100% rename from share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/networks.yml rename to share/oneprovision/edge-clusters/virtual/provisions/aws.d/networks.yml diff --git a/share/oneprovision/provisions/hybrid+_qemu/provisions/aws.yml b/share/oneprovision/edge-clusters/virtual/provisions/aws.yml similarity index 89% rename from share/oneprovision/provisions/hybrid+_qemu/provisions/aws.yml rename to share/oneprovision/edge-clusters/virtual/provisions/aws.yml index 01a7c299aa..e6f22d470e 100644 --- a/share/oneprovision/provisions/hybrid+_qemu/provisions/aws.yml +++ b/share/oneprovision/edge-clusters/virtual/provisions/aws.yml @@ -25,23 +25,15 @@ name: 'aws-cluster' extends: - common.d/defaults.yml - common.d/resources.yml - - common.d/qemu_hosts.yml + - common.d/hosts.yml - aws.d/datastores.yml - - aws.d/defaults.yml - aws.d/fireedge.yml - aws.d/inputs.yml - aws.d/networks.yml #------------------------------------------------------------------------------- -# playbook: Ansible playbook used for hosts configuration.The aws playbook -# include the following roles: -# - ddc -# - opennebula-repository -# - opennebula-node-kvm -# - opennebula-ssh -# - tuntap -# - bridged-networking -# - iptables +# playbook: Ansible playbook used for hosts configuration. Check ansible/aws.yml +# for the specific roles applied. #------------------------------------------------------------------------------- playbook: - aws @@ -68,10 +60,11 @@ defaults: #-------------------------------------------------------------------------------- cluster: name: "${provision}" - description: 'AWS cluster' + description: 'AWS virtual edge cluster' reserved_cpu: '0' reserved_mem: '0' datastores: - 1 + - 2 provision: cidr: '10.0.0.0/16' diff --git a/share/oneprovision/provisions/hybrid+_qemu/provisions/common.d/defaults.yml b/share/oneprovision/edge-clusters/virtual/provisions/common.d/defaults.yml similarity index 91% rename from share/oneprovision/provisions/hybrid+_qemu/provisions/common.d/defaults.yml rename to share/oneprovision/edge-clusters/virtual/provisions/common.d/defaults.yml index 3a52c3c96c..0de7718064 100644 --- a/share/oneprovision/provisions/hybrid+_qemu/provisions/common.d/defaults.yml +++ b/share/oneprovision/edge-clusters/virtual/provisions/common.d/defaults.yml @@ -21,14 +21,15 @@ defaults: configuration: - oneprovision_hypervisor: 'kvm' - - opennebula_node_kvm_use_ev: true + # Select the hypervisor package to install + oneprovision_hypervisor: "${input.one_hypervisor}" # required for copying recovery VM snaphosts to the replica host opennebula_ssh_deploy_private_key: true - # Options to enable nested virtualization + # Options to enable nested virtualization used for QEMU/KVM + opennebula_node_kvm_use_ev: true + opennebula_node_kvm_param_nested: True opennebula_node_kvm_manage_kvm: False diff --git a/share/oneprovision/provisions/hybrid+/provisions/common.d/kvm_hosts.yml b/share/oneprovision/edge-clusters/virtual/provisions/common.d/hosts.yml similarity index 94% rename from share/oneprovision/provisions/hybrid+/provisions/common.d/kvm_hosts.yml rename to share/oneprovision/edge-clusters/virtual/provisions/common.d/hosts.yml index d7e9b8cc29..4ff159ce14 100644 --- a/share/oneprovision/provisions/hybrid+/provisions/common.d/kvm_hosts.yml +++ b/share/oneprovision/edge-clusters/virtual/provisions/common.d/hosts.yml @@ -27,9 +27,9 @@ #------------------------------------------------------------------------------- hosts: - - im_mad: 'kvm' - vm_mad: 'kvm' + - im_mad: "${input.one_hypervisor}" + vm_mad: "${input.one_hypervisor}" provision: count: "${input.number_hosts}" - hostname: "kvm-host${index}" + hostname: "edge-vhost${index}" ... diff --git a/share/oneprovision/provisions/hybrid+/provisions/common.d/resources.yml b/share/oneprovision/edge-clusters/virtual/provisions/common.d/resources.yml similarity index 92% rename from share/oneprovision/provisions/hybrid+/provisions/common.d/resources.yml rename to share/oneprovision/edge-clusters/virtual/provisions/common.d/resources.yml index d015fa7cd2..f79444a509 100644 --- a/share/oneprovision/provisions/hybrid+/provisions/common.d/resources.yml +++ b/share/oneprovision/edge-clusters/virtual/provisions/common.d/resources.yml @@ -29,10 +29,3 @@ # - by index, eg. ${datastore.0.id} to get the OpenNebula ID of the **first** # datastore defined in the provision #------------------------------------------------------------------------------- -marketplaceapps: - - appname: "Alpine Linux 3.10" - name: "alpine" - dsid: "${datastore.0.id}" - meta: - wait: true - wait_timeout: 60 diff --git a/share/oneprovision/provisions/hybrid+/description.md b/share/oneprovision/provisions/hybrid+/description.md deleted file mode 100644 index 9a878c4c17..0000000000 --- a/share/oneprovision/provisions/hybrid+/description.md +++ /dev/null @@ -1,3 +0,0 @@ -These templates deploy an infrastructure in a remote provider. - -They follow our elastic architecture specification, you can check more information [here](https://opennebula.io/get-true-hybrid-cloud-architecture). diff --git a/share/oneprovision/provisions/hybrid+/providers/aws/aws-eu-central-1.yml b/share/oneprovision/provisions/hybrid+/providers/aws/aws-eu-central-1.yml deleted file mode 100644 index 4a3cae2f29..0000000000 --- a/share/oneprovision/provisions/hybrid+/providers/aws/aws-eu-central-1.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: 'aws-frankfurt' - -description: 'Elastic cluster on AWS in Frankfurt' -provider: 'aws' - -plain: - image: 'AWS' - location_key: 'region' - provision_type: 'hybrid+' - -connection: - access_key: 'AWS access key' - secret_key: 'AWS secret key' - region: 'eu-central-1' - -inputs: - - name: 'aws_ami_image' - type: 'list' - options: - - 'ami-04c21037b3f953d37' - - name: 'aws_instance_type' - type: 'list' - options: - - 'i3.metal' diff --git a/share/oneprovision/provisions/hybrid+/providers/aws/aws-eu-west-2.yml b/share/oneprovision/provisions/hybrid+/providers/aws/aws-eu-west-2.yml deleted file mode 100644 index abdb918cc6..0000000000 --- a/share/oneprovision/provisions/hybrid+/providers/aws/aws-eu-west-2.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: 'aws-london' - -description: 'Elastic cluster on AWS in London' -provider: 'aws' - -plain: - image: 'AWS' - location_key: 'region' - provision_type: 'hybrid+' - -connection: - access_key: 'AWS access key' - secret_key: 'AWS secret key' - region: 'eu-west-2' - -inputs: - - name: 'aws_ami_image' - type: 'list' - options: - - 'ami-0bab5c8be0975423b' - - name: 'aws_instance_type' - type: 'list' - options: - - 'i3.metal' diff --git a/share/oneprovision/provisions/hybrid+/providers/aws/aws-us-east-1.yml b/share/oneprovision/provisions/hybrid+/providers/aws/aws-us-east-1.yml deleted file mode 100644 index 6055a4cf0f..0000000000 --- a/share/oneprovision/provisions/hybrid+/providers/aws/aws-us-east-1.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: 'aws-north-virginia' - -description: 'Elastic cluster on AWS in North Virginia' -provider: 'aws' - -plain: - image: 'AWS' - location_key: 'region' - provision_type: 'hybrid+' - -connection: - access_key: 'AWS access key' - secret_key: 'AWS secret key' - region: 'us-east-1' - -inputs: - - name: 'aws_ami_image' - type: 'list' - options: - - 'ami-0d6e9a57f6259ba3a' - - name: 'aws_instance_type' - type: 'list' - options: - - 'i3.metal' diff --git a/share/oneprovision/provisions/hybrid+/providers/aws/aws-us-west-1.yml b/share/oneprovision/provisions/hybrid+/providers/aws/aws-us-west-1.yml deleted file mode 100644 index d829eb937c..0000000000 --- a/share/oneprovision/provisions/hybrid+/providers/aws/aws-us-west-1.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: 'aws-north-california' - -description: 'Elastic cluster on AWS in North California' -provider: 'aws' - -plain: - image: 'AWS' - location_key: 'region' - provision_type: 'hybrid+' - -connection: - access_key: 'AWS access key' - secret_key: 'AWS secret key' - region: 'us-west-1' - -inputs: - - name: 'aws_ami_image' - type: 'list' - options: - - 'ami-00008506813cea27a' - - name: 'aws_instance_type' - type: 'list' - options: - - 'i3.metal' diff --git a/share/oneprovision/provisions/hybrid+/provisions/aws.d/defaults.yml b/share/oneprovision/provisions/hybrid+/provisions/aws.d/defaults.yml deleted file mode 100644 index 1bfd33a7f0..0000000000 --- a/share/oneprovision/provisions/hybrid+/provisions/aws.d/defaults.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -#------------------------------------------------------------------------------- -# defaults: Common configuration attributes for provision objects -#-------------------------------------------------------------------------------- -# configuration: Ansible role parameters. -#-------------------------------------------------------------------------------- -# Check defaults/main.yml in each role for the available variables -#------------------------------------------------------------------------------- - -... diff --git a/share/oneprovision/provisions/hybrid+/provisions/aws.d/inputs.yml b/share/oneprovision/provisions/hybrid+/provisions/aws.d/inputs.yml deleted file mode 100644 index 0336e9d3d4..0000000000 --- a/share/oneprovision/provisions/hybrid+/provisions/aws.d/inputs.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -inputs: - - name: 'number_hosts' - type: text - description: 'Number of AWS instances to create' - default: '1' - - - name: 'number_public_ips' - type: text - description: 'Number of public IPs to get' - default: '1' - - - name: 'aws_ami_image' - type: text - description: "AWS ami image used for host deployments" - default: '' - - - name: 'aws_instance_type' - type: text - description: "AWS instance type, use bare-metal instances, otherwise use QEMU" - default: '' -... diff --git a/share/oneprovision/provisions/hybrid+/provisions/common.d/defaults.yml b/share/oneprovision/provisions/hybrid+/provisions/common.d/defaults.yml deleted file mode 100644 index 28c7fa659e..0000000000 --- a/share/oneprovision/provisions/hybrid+/provisions/common.d/defaults.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -#------------------------------------------------------------------------------- -# defaults: Common configuration attributes for provision objects -#-------------------------------------------------------------------------------- - -defaults: - configuration: - oneprovision_hypervisor: 'kvm' - - opennebula_node_kvm_use_ev: true - - # required for copying recovery VM snaphosts to the replica host - opennebula_ssh_deploy_private_key: true diff --git a/share/oneprovision/provisions/hybrid+/provisions/packet.d/defaults.yml b/share/oneprovision/provisions/hybrid+/provisions/packet.d/defaults.yml deleted file mode 100644 index 8b6295f4d8..0000000000 --- a/share/oneprovision/provisions/hybrid+/provisions/packet.d/defaults.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -#------------------------------------------------------------------------------- -# defaults: Common configuration attributes for provision objects -#-------------------------------------------------------------------------------- -# configuration: Ansible role parameters. -#-------------------------------------------------------------------------------- -# Check defaults/main.yml in each role for the available variables -#------------------------------------------------------------------------------- diff --git a/share/oneprovision/provisions/hybrid+_firecracker/description.md b/share/oneprovision/provisions/hybrid+_firecracker/description.md deleted file mode 100644 index ec1d3b0377..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/description.md +++ /dev/null @@ -1,7 +0,0 @@ -The Firecracker provision uses the Firecracker virtualization technology to start VMs in virtualized hosts. It is useful for developing and testing purposes. It features the following characteristics: - -* Hosts are provisioned as VMs in the selected provider -* The provision includes a public network (Internet reachable IPs) -* It also includes a virtual network template to create private VLANs. You need to instantiate this network template. - -More information about using this provision can be found in the [OpenNebula documentation](https://opennebula.io) diff --git a/share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-ams1.yml b/share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-ams1.yml deleted file mode 100644 index 3442f7016c..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-ams1.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: 'packet-amsterdam' - -description: 'Elastic cluster on Packet in Amsterdam' -provider: 'packet' - -plain: - image: 'EQUINIX' - location_key: 'facility' - provision_type: 'hybrid+_firecracker' - -connection: - token: 'Packet token' - project: 'Packet project' - facility: 'ams1' - -inputs: - - name: 'packet_os' - type: 'list' - options: - - 'centos_8' - - name: 'packet_plan' - type: 'list' - options: - - 'baremetal_0' diff --git a/share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-ewr1.yml b/share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-ewr1.yml deleted file mode 100644 index 53e2677d14..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-ewr1.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: 'packet-ewr1' - -description: 'Elastic cluster on Packet in Parsippany, USA, NJ' -provider: 'packet' - -plain: - image: 'EQUINIX' - location_key: 'facility' - provision_type: 'hybrid+_firecracker' - -connection: - token: 'Packet token' - project: 'Packet project' - facility: 'ewr1' - -inputs: - - name: 'packet_os' - type: 'list' - options: - - 'centos_8' - - name: 'packet_plan' - type: 'list' - options: - - 't1.small' - - 'c1.small' - - 'm1.xlarge' diff --git a/share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-nrt1.yml b/share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-nrt1.yml deleted file mode 100644 index 9d70581bc1..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-nrt1.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: 'packet-nrt1' - -description: 'Elastic cluster on Packet in Tokyo, Japan' -provider: 'packet' - -plain: - image: 'EQUINIX' - location_key: 'facility' - provision_type: 'hybrid+_firecracker' - -connection: - token: 'Packet token' - project: 'Packet project' - facility: 'nrt1' - -inputs: - - name: 'packet_os' - type: 'list' - options: - - 'centos_8' - - name: 'packet_plan' - type: 'list' - options: - - 't1.small' - - 'c1.small' - - 'm1.xlarge' diff --git a/share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-sjc1.yml b/share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-sjc1.yml deleted file mode 100644 index 435ae3aa5e..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/providers/packet/packet-sjc1.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: 'packet-sjc1' - -description: 'Elastic cluster on Packet in Sunnyvale, USA, CA' -provider: 'packet' - -plain: - image: 'EQUINIX' - location_key: 'facility' - provision_type: 'hybrid+_firecracker' - -connection: - token: 'Packet token' - project: 'Packet project' - facility: 'sjc1' - -inputs: - - name: 'packet_os' - type: 'list' - options: - - 'centos_8' - - name: 'packet_plan' - type: 'list' - options: - - 't1.small' - - 'c1.small' - - 'm1.xlarge' diff --git a/share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/datastores.yml b/share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/datastores.yml deleted file mode 100644 index 7dfdf89bc5..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/datastores.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -#------------------------------------------------------------------------------- -# datastores: Defines the storage area for the cluster using the SSH replication -# drivers. It creates the following datastores, using Replica driver: -# 1. Image datastore, ${cluster_name}-image -# 2. System datastore, ${cluster_name}-system -# 3. File datastore, ${cluster_name}-files -# -# Configuration/Input attributes: -# - replica_host: The host that will hold the cluster replicas and snapshots. -#------------------------------------------------------------------------------- -datastores: - - - name: "${provision}-image" - type: 'image_ds' - ds_mad: 'fs' - tm_mad: 'ssh' - safe_dirs: "/var/tmp /tmp" - - - name: "${provision}-system" - type: 'system_ds' - tm_mad: 'ssh' - safe_dirs: "/var/tmp /tmp" - replica_host: "use-first-host" - - - name: "${provision}-files" - type: 'file_ds' - ds_mad: 'fs' - tm_mad: 'ssh' - safe_dirs: "/var/tmp /tmp" diff --git a/share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/defaults.yml b/share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/defaults.yml deleted file mode 100644 index 1bfd33a7f0..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/defaults.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -#------------------------------------------------------------------------------- -# defaults: Common configuration attributes for provision objects -#-------------------------------------------------------------------------------- -# configuration: Ansible role parameters. -#-------------------------------------------------------------------------------- -# Check defaults/main.yml in each role for the available variables -#------------------------------------------------------------------------------- - -... diff --git a/share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/fireedge.yml b/share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/fireedge.yml deleted file mode 100644 index db3af06377..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.d/fireedge.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -image: 'OPENNEBULA-AWS' -provider: 'aws' -provision_type: 'hybrid+_firecracker' diff --git a/share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.yml b/share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.yml deleted file mode 100644 index 95aac53fda..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/provisions/aws.yml +++ /dev/null @@ -1,78 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -#------------------------------------------------------------------------------- -# This is the canonical description file for a cluster build with 'AWS' -# resources using the KVM hypervisor. -# ------------------------------------------------------------------------------ - -name: 'aws-cluster' - -extends: - - common.d/defaults.yml - - common.d/resources.yml - - common.d/firecracker_hosts.yml - - aws.d/datastores.yml - - aws.d/defaults.yml - - aws.d/fireedge.yml - - aws.d/inputs.yml - - aws.d/networks.yml - -#------------------------------------------------------------------------------- -# playbook: Ansible playbook used for hosts configuration.The aws playbook -# include the following roles: -# - ddc -# - opennebula-repository -# - opennebula-node-kvm -# - opennebula-ssh -# - tuntap -# - bridged-networking -# - iptables -#------------------------------------------------------------------------------- -playbook: - - aws - -#------------------------------------------------------------------------------- -# defaults: Common configuration attributes for provision objects -#-------------------------------------------------------------------------------- -defaults: - provision: - provider_name: 'aws' - ami: "${input.aws_ami_image}" - instancetype: "${input.aws_instance_type}" - cloud_init: true - connection: - remote_user: 'centos' - -#------------------------------------------------------------------------------- -# cluster: Parameters for the OpenNebula cluster. Applies to all the Hosts -#-------------------------------------------------------------------------------- -# name: of the cluster -# description: Additional information -# reserved_cpu: In percentage. It will be subtracted from the TOTAL CPU -# reserved_memory: In percentage. It will be subtracted from the TOTAL MEM -#-------------------------------------------------------------------------------- -cluster: - name: "${provision}" - description: 'AWS cluster' - reserved_cpu: '0' - reserved_mem: '0' - datastores: - - 1 - - 2 - provision: - cidr: '10.0.0.0/16' diff --git a/share/oneprovision/provisions/hybrid+_firecracker/provisions/common.d/firecracker_hosts.yml b/share/oneprovision/provisions/hybrid+_firecracker/provisions/common.d/firecracker_hosts.yml deleted file mode 100644 index d8f473535d..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/provisions/common.d/firecracker_hosts.yml +++ /dev/null @@ -1,35 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -#------------------------------------------------------------------------------- -# hosts: Packet or AWS metal servers -# provision: -# - count: Number of servers to create -# - hostname: kvm-host1, kvm-host2 .... of the server -# -# You can define specific OpenNebula configuration attributes for all the hosts: -# - reserved_cpu: In percentage. It will be subtracted from the TOTAL CPU -# - reserved_memory: In percentage. It will be subtracted from the TOTAL MEM -#------------------------------------------------------------------------------- -hosts: - - - im_mad: 'firecracker' - vm_mad: 'firecracker' - provision: - count: "${input.number_hosts}" - hostname: "firecracker-host${index}" -... diff --git a/share/oneprovision/provisions/hybrid+_firecracker/provisions/common.d/resources.yml b/share/oneprovision/provisions/hybrid+_firecracker/provisions/common.d/resources.yml deleted file mode 100644 index 6644fcd61d..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/provisions/common.d/resources.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -#------------------------------------------------------------------------------- -# Use this file to define custom resources associated to the cluster, example: -# - images -# - marketplaceapps -# - templates -# - vntemplates -# - flowtemplates -# -# Cross-references to other objects can be made: -# - by name, eg. ${datastore.images.id} to get the OpenNebula ID of the -# datastore with name "images" -# - by index, eg. ${datastore.0.id} to get the OpenNebula ID of the **first** -# datastore defined in the provision -#------------------------------------------------------------------------------- -images: - - name: fc_kernel - ds_id: "${datastore.2.id}" - type: kernel - path: https://marketplace.opennebula.io/appliance/634c654e-e32c-43d4-9370-20d0e97a3de2/download/0 diff --git a/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/datastores.yml b/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/datastores.yml deleted file mode 100644 index 7dfdf89bc5..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/datastores.yml +++ /dev/null @@ -1,46 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -#------------------------------------------------------------------------------- -# datastores: Defines the storage area for the cluster using the SSH replication -# drivers. It creates the following datastores, using Replica driver: -# 1. Image datastore, ${cluster_name}-image -# 2. System datastore, ${cluster_name}-system -# 3. File datastore, ${cluster_name}-files -# -# Configuration/Input attributes: -# - replica_host: The host that will hold the cluster replicas and snapshots. -#------------------------------------------------------------------------------- -datastores: - - - name: "${provision}-image" - type: 'image_ds' - ds_mad: 'fs' - tm_mad: 'ssh' - safe_dirs: "/var/tmp /tmp" - - - name: "${provision}-system" - type: 'system_ds' - tm_mad: 'ssh' - safe_dirs: "/var/tmp /tmp" - replica_host: "use-first-host" - - - name: "${provision}-files" - type: 'file_ds' - ds_mad: 'fs' - tm_mad: 'ssh' - safe_dirs: "/var/tmp /tmp" diff --git a/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/defaults.yml b/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/defaults.yml deleted file mode 100644 index 8b6295f4d8..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/defaults.yml +++ /dev/null @@ -1,24 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -#------------------------------------------------------------------------------- -# defaults: Common configuration attributes for provision objects -#-------------------------------------------------------------------------------- -# configuration: Ansible role parameters. -#-------------------------------------------------------------------------------- -# Check defaults/main.yml in each role for the available variables -#------------------------------------------------------------------------------- diff --git a/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/fireedge.yml b/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/fireedge.yml deleted file mode 100644 index 9466cc260f..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/fireedge.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -image: 'OPENNEBULA-EQUINIX' -provider: 'packet' -provision_type: 'hybrid+_firecracker' diff --git a/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/inputs.yml b/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/inputs.yml deleted file mode 100644 index 2af11a55bc..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/inputs.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -inputs: - - name: 'number_hosts' - type: text - description: "Number of metal servers to create" - default: '1' - - - name: 'number_public_ips' - type: text - description: 'Number of public IPs to get' - default: '1' - - - name: 'packet_plan' - type: text - description: "Packet plan (device type)" - default: 'baremetal_0' - - - name: 'packet_os' - type: text - description: "Packet host operating system" - default: 'centos_8' - diff --git a/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/networks.yml b/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/networks.yml deleted file mode 100644 index f4c5d1ca1f..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.d/networks.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -networks: - - name: "${provision}-public" - vn_mad: 'elastic' - bridge: 'br0' - netrole: 'public' - provision: - count: "${input.number_public_ips}" - ar: - - provison_id: "${provision_id}" - size: '1' - packet_ip_type: 'public_ipv4' - ipam_mad: 'packet' - -vntemplates: - - name: "${provision}-private" - vn_mad: 'vxlan' - phydev: 'bond0' - automatic_vlan_id: 'yes' - netrole: 'private' - vxlan_mode: 'evpn' - vxlan_tep: 'dev' - ip_link_conf: 'nolearning=' - cluster_ids: "${cluster.0.id}" diff --git a/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.yml b/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.yml deleted file mode 100644 index 6585714197..0000000000 --- a/share/oneprovision/provisions/hybrid+_firecracker/provisions/packet.yml +++ /dev/null @@ -1,73 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -#------------------------------------------------------------------------------- -# This is the canonical description file for a cluster build with 'Packet' -# resources using the KVM hypervisor. -# ------------------------------------------------------------------------------ - -name: 'packet-cluster' - -extends: - - common.d/defaults.yml - - common.d/resources.yml - - common.d/firecracker_hosts.yml - - packet.d/defaults.yml - - packet.d/datastores.yml - - packet.d/fireedge.yml - - packet.d/inputs.yml - - packet.d/networks.yml - -#------------------------------------------------------------------------------- -# playbook: Ansible playbook used for hosts configuration.The packet playbook -# include the following roles: -# - ddc -# - opennebula-repository -# - opennebula-node-kvm -# - opennebula-ssh -# - tuntap -# - bridged-networking -# - iptables -#------------------------------------------------------------------------------- -playbook: - - packet - -#------------------------------------------------------------------------------- -# defaults: Common configuration attributes for provision objects -#-------------------------------------------------------------------------------- -defaults: - provision: - provider_name: 'packet' - plan: "${input.packet_plan}" - os: "${input.packet_os}" - -#------------------------------------------------------------------------------- -# cluster: Parameters for the OpenNebula cluster. Applies to all the Hosts -#-------------------------------------------------------------------------------- -# name: of the cluster -# description: Additional information -# reserved_cpu: In percentage. It will be subtracted from the TOTAL CPU -# reserved_memory: In percentage. It will be subtracted from the TOTAL MEM -#-------------------------------------------------------------------------------- -cluster: - name: "${provision}" - description: 'Packet cluster' - datastores: - - 1 - - 2 - reserved_cpu: '0' - reserved_mem: '0' diff --git a/share/oneprovision/provisions/hybrid+_qemu/description.md b/share/oneprovision/provisions/hybrid+_qemu/description.md deleted file mode 100644 index 779606e0d9..0000000000 --- a/share/oneprovision/provisions/hybrid+_qemu/description.md +++ /dev/null @@ -1,7 +0,0 @@ -The QEMU provision uses nested virtualization (KVM) to start emulated VMs in virtualized hosts. It is useful for developing and testing purposes. It features the following characteristics: - -* Hosts are provisioned as VMs in the selected provider -* The provision includes a public network (Internet reachable IPs) -* It also includes a virtual network template to create private VLANs. You need to instantiate this network template. - -More information about using this provision can be found in the [OpenNebula documentation](https://opennebula.io) diff --git a/share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/defaults.yml b/share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/defaults.yml deleted file mode 100644 index 1bfd33a7f0..0000000000 --- a/share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/defaults.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -#------------------------------------------------------------------------------- -# defaults: Common configuration attributes for provision objects -#-------------------------------------------------------------------------------- -# configuration: Ansible role parameters. -#-------------------------------------------------------------------------------- -# Check defaults/main.yml in each role for the available variables -#------------------------------------------------------------------------------- - -... diff --git a/share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/networks.yml b/share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/networks.yml deleted file mode 100644 index ccdab6f608..0000000000 --- a/share/oneprovision/provisions/hybrid+_qemu/provisions/aws.d/networks.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -# ---------------------------------------------------------------------------- # -# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); you may # -# not use this file except in compliance with the License. You may obtain # -# a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -# ---------------------------------------------------------------------------- # - -networks: - - name: "${provision}-public" - vn_mad: 'elastic' - bridge: 'br0' - netrole: 'public' - provision: - count: "${input.number_public_ips}" - ar: - - provison_id: "${provision_id}" - size: '1' - ipam_mad: 'aws' - cidr: "${cluster.0.cidr}" - -vntemplates: - - name: "${provision}-private" - vn_mad: 'vxlan' - phydev: 'eth0' - automatic_vlan_id: 'yes' - netrole: 'private' - vxlan_mode: 'evpn' - vxlan_tep: 'dev' - ip_link_conf: 'nolearning=' - cluster_ids: "${cluster.0.id}" diff --git a/src/im_mad/remotes/qemu-probes.d b/src/im_mad/remotes/qemu-probes.d new file mode 120000 index 0000000000..de12793595 --- /dev/null +++ b/src/im_mad/remotes/qemu-probes.d @@ -0,0 +1 @@ +kvm-probes.d/ \ No newline at end of file diff --git a/src/im_mad/remotes/qemu.d b/src/im_mad/remotes/qemu.d new file mode 120000 index 0000000000..c82cb7c715 --- /dev/null +++ b/src/im_mad/remotes/qemu.d @@ -0,0 +1 @@ +kvm.d/ \ No newline at end of file