mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
Co-authored-by: Vlastimil Holer <vholer@opennebula.io>
74 lines
1.8 KiB
YAML
74 lines
1.8 KiB
YAML
---
|
|
|
|
#############################################################
|
|
# WARNING: You need to replace ***** values with your
|
|
# own credentials for the particular provider. You need to
|
|
# uncomment and update list of hosts to deploy based
|
|
# on your requirements.
|
|
#############################################################
|
|
|
|
# Ansible playbook to configure hosts
|
|
playbook: "static_vxlan"
|
|
|
|
# Provision name to use in all resources
|
|
name: "EC2Cluster"
|
|
|
|
# Defaults sections with information related with Packet
|
|
defaults:
|
|
provision:
|
|
driver: "ec2"
|
|
instancetype: "i3.metal"
|
|
ec2_access: "***********************************"
|
|
ec2_secret: "***********************************"
|
|
region_name: "us-east-1"
|
|
cloud_init: true
|
|
|
|
# Hosts to be deployed in Packet and created in OpenNebula
|
|
hosts:
|
|
# - reserved_cpu: "100"
|
|
# im_mad: "kvm"
|
|
# vm_mad: "kvm"
|
|
# provision:
|
|
# hostname: "centos-host"
|
|
# ami: "ami-66a7871c"
|
|
|
|
# - reserved_cpu: "100"
|
|
# im_mad: "kvm"
|
|
# vm_mad: "kvm"
|
|
# provision:
|
|
# hostname: "ubuntu-host"
|
|
# ami: "ami-759bc50a" # (Ubuntu 16.04)
|
|
|
|
# Datastores to be created in OpenNebula
|
|
datastores:
|
|
- name: "<%= @name %>-image"
|
|
ds_mad: "fs"
|
|
tm_mad: "ssh"
|
|
|
|
- name: "<%= @name %>-system"
|
|
type: "system_ds"
|
|
tm_mad: "ssh"
|
|
|
|
# Network to be created in OpenNebula
|
|
networks:
|
|
- name: "<%= @name %>-private-host-only-nat"
|
|
vn_mad: "dummy"
|
|
bridge: "br0"
|
|
dns: "8.8.8.8 8.8.4.4"
|
|
gateway: "192.168.150.1"
|
|
description: "Host-only private network with NAT"
|
|
ar:
|
|
- ip: "192.168.150.2"
|
|
size: "253"
|
|
type: "IP4"
|
|
|
|
- name: "<%= @name %>-private"
|
|
vn_mad: "dummy"
|
|
bridge: "vxbr100"
|
|
mtu: "1450"
|
|
description: "Private networking"
|
|
ar:
|
|
- ip: "192.168.160.2"
|
|
size: "253"
|
|
type: "IP4"
|