1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

F #5270, #5272: Update virtual providers/provisions

(cherry picked from commit 2ea78eadcb68bec57464293d0a7291350ab28254)
This commit is contained in:
Ruben S. Montero 2021-05-03 14:32:54 +02:00
parent 93aee000f0
commit 511adca379
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87
17 changed files with 33 additions and 71 deletions

View File

@ -1,6 +1,6 @@
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.
* Hosts are provisioned as VM 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.

View File

@ -1,6 +1,6 @@
name: 'digitalocean-nyc3'
name: 'digitalocean-ams3'
description: 'cluster on DigitalOcean in Amsterdam 3'
description: 'Virtual Edge Cluster in DigitalOcean datacenter in Amsterdam (AMS3)'
provider: 'digitalocean'
plain:
@ -16,4 +16,4 @@ inputs:
- name: 'digitalocean_droplet'
type: 'list'
options:
- 'centos-7-x64'
- 'centos-8-x64'

View File

@ -1,6 +1,6 @@
name: 'digitalocean-nyc3'
name: 'digitalocean-lon1'
description: 'cluster on DigitalOcean in London'
description: 'Virtual Edge Cluster in DigitalOcean datacenter in London (LON1)'
provider: 'digitalocean'
plain:
@ -16,4 +16,4 @@ inputs:
- name: 'digitalocean_droplet'
type: 'list'
options:
- 'centos-7-x64'
- 'centos-8-x64'

View File

@ -1,6 +1,6 @@
name: 'digitalocean-nyc3'
description: 'cluster on DigitalOcean in New York 3'
description: 'Virtual Edge Cluster in DigitalOcean datacenter in New York City (NYC3)'
provider: 'digitalocean'
plain:
@ -16,4 +16,4 @@ inputs:
- name: 'digitalocean_droplet'
type: 'list'
options:
- 'centos-7-x64'
- 'centos-8-x64'

View File

@ -1,6 +1,6 @@
name: 'digitalocean-nyc3'
name: 'digitalocean-sfo3'
description: 'cluster on DigitalOcean in San Franciso 3'
description: 'Virtual Edge Cluster in DigitalOcean datacenter in San Francisco (SFO3)'
provider: 'digitalocean'
plain:
@ -16,4 +16,4 @@ inputs:
- name: 'digitalocean_droplet'
type: 'list'
options:
- 'centos-7-x64'
- 'centos-8-x64'

View File

@ -1,6 +1,6 @@
name: 'digitalocean-nyc3'
name: 'digitalocean-sgp1'
description: 'cluster on DigitalOcean in Singapore'
description: 'Virtual Edge Cluster in DigitalOcean datacenter in Singapore (SGP1)'
provider: 'digitalocean'
plain:
@ -16,4 +16,4 @@ inputs:
- name: 'digitalocean_droplet'
type: 'list'
options:
- 'centos-7-x64'
- 'centos-8-x64'

View File

@ -1,6 +1,6 @@
name: 'google-belgium'
description: 'Elastic cluster on Google in Belgium'
description: 'Virtual Edge Cluster in Google Belgium (europe-west1-b)'
provider: 'google'
plain:

View File

@ -1,6 +1,6 @@
name: 'google-london'
description: 'Elastic cluster on Google in London'
description: 'Virtual Edge Cluster in Google London (europe-west2-b)'
provider: 'google'
plain:

View File

@ -1,6 +1,6 @@
name: 'google-moncks'
description: 'Elastic cluster on Google in Moncks'
description: 'Virtual Edge Cluster in Google Moncks (us-east1-b)'
provider: 'google'
plain:

View File

@ -1,6 +1,6 @@
name: 'google-oregon'
description: 'Elastic cluster on Google in Oregon'
description: 'Virtual Edge Cluster in Google Oregon (us-west1-b)'
provider: 'google'
plain:

View File

@ -44,6 +44,7 @@ inputs:
- name: 'one_hypervisor'
type: list
description: "Virtualization technology for the cluster hosts"
default: 'lxc'
options:
- 'qemu'
- 'lxc'

View File

@ -19,7 +19,7 @@
# hosts: AWS, Digital Ocean or Google servers
# provision:
# - count: Number of servers to create
# - hostname: kvm-host1, kvm-host2 .... of the server
# - hostname: edge-vhost1, edge-vhost2 .... 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

View File

@ -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
#-------------------------------------------------------------------------------

View File

@ -18,27 +18,23 @@
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'
description: "Number of Droplets to create"
default: '1'
- name: 'digitalocean_image'
type: text
description: "digitalocean host operating system"
description: "Droplet host operating system"
default: 'centos-8-x64'
- name: 'digitalocean_size'
type: text
description: "digitalocean host size"
description: "Droplet size"
default: 's-1vcpu-1gb'
- name: 'one_hypervisor'
type: list
description: "Virtualization technology for the cluster hosts"
default: 'lxc'
options:
- 'qemu'
- 'lxc'

View File

@ -27,21 +27,13 @@ extends:
- common.d/resources.yml
- common.d/hosts.yml
- digitalocean.d/datastores.yml
- digitalocean.d/defaults.yml
- digitalocean.d/fireedge.yml
- digitalocean.d/inputs.yml
- digitalocean.d/networks.yml
#-------------------------------------------------------------------------------
# playbook: Ansible playbook used for hosts configuration.The digitalocean 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/digitalocean.yml for the specific roles applied.
#-------------------------------------------------------------------------------
playbook:
- digitalocean
@ -67,8 +59,9 @@ defaults:
#--------------------------------------------------------------------------------
cluster:
name: "${provision}"
description: 'digitalocean cluster'
datastores:
- 1
description: 'Digitalocean virtual edge cluster'
reserved_cpu: '0'
reserved_mem: '0'
datastores:
- 1
- 2

View File

@ -21,11 +21,6 @@ inputs:
description: 'Number of Google instances to create'
default: '1'
- name: 'number_public_ips'
type: text
description: 'Number of public IPs to get'
default: '1'
- name: 'google_image'
type: text
description: "Google image used for host deployments"
@ -39,6 +34,7 @@ inputs:
- name: 'one_hypervisor'
type: list
description: "Virtualization technology for the cluster hosts"
default: 'lxc'
options:
- 'qemu'
- 'lxc'

View File

@ -33,7 +33,7 @@ extends:
#-------------------------------------------------------------------------------
# playbook: Ansible playbook used for hosts configuration.
# Check ansible/googl.yml for the specific roles applied.
# Check ansible/google.yml for the specific roles applied.
#-------------------------------------------------------------------------------
playbook:
- google