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>
88 lines
2.2 KiB
YAML
88 lines
2.2 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: "PacketCluster"
|
|
|
|
# Defaults sections with information related with Packet
|
|
defaults:
|
|
provision:
|
|
driver: "packet"
|
|
packet_token: "**************************"
|
|
packet_project: "************************"
|
|
facility: "ams1"
|
|
plan: "baremetal_0"
|
|
os: "centos_7"
|
|
configuration:
|
|
iptables_masquerade_enabled: false # NAT breaks public networking
|
|
|
|
# Hosts to be deployed in Packet and created in OpenNebula
|
|
hosts:
|
|
# - reserved_cpu: "100"
|
|
# im_mad: "kvm"
|
|
# vm_mad: "kvm"
|
|
# provision:
|
|
# hostname: "centos-host"
|
|
# os: "centos_7"
|
|
|
|
# - reserved_cpu: "100"
|
|
# im_mad: "kvm"
|
|
# vm_mad: "kvm"
|
|
# provision:
|
|
# hostname: "ubuntu-host"
|
|
# os: "ubuntu_18_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"
|
|
vn_mad: "dummy"
|
|
bridge: "br0"
|
|
description: "Host-only private network"
|
|
gateway: "192.168.150.1"
|
|
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"
|
|
|
|
- name: "<%= @name %>-public"
|
|
vn_mad: "alias_sdnat"
|
|
external: "yes"
|
|
description: "Public networking"
|
|
ar:
|
|
- size: "4" # select number of public IPs
|
|
type: "IP4"
|
|
ipam_mad: "packet"
|
|
packet_ip_type: "public_ipv4"
|
|
facility: "ams1"
|
|
packet_token: "********************************"
|
|
packet_project: "******************************"
|