add some examples
This commit is contained in:
parent
bc98005c2d
commit
34dbbc6edb
|
@ -0,0 +1,121 @@
|
|||
#!/usr/bin/env ruby
|
||||
require 'json'
|
||||
require 'yaml'
|
||||
|
||||
public_iface = "eth0"
|
||||
internal_iface = "eth1"
|
||||
private_iface = "eth2"
|
||||
default_gateway = "172.18.94.33"
|
||||
master_ip = "172.18.94.34"
|
||||
dns1 = default_gateway
|
||||
internal_net = '10.107.2.0'
|
||||
|
||||
internal_net_prefix = internal_net.split('.')[0..2].join(".")
|
||||
|
||||
|
||||
nodes = {"compute-01" => '64:c3:54:54:d2:66',
|
||||
"controller-01" => "64:48:7a:14:83:e8",
|
||||
"controller-02" => "64:b7:37:b1:1d:c9",
|
||||
"controller-03" => "64:f4:64:e7:50:d3",
|
||||
"swift-01" => "64:57:26:83:1d:ca",
|
||||
"swift-02" => "64:dc:fd:ad:eb:4e",
|
||||
"swift-03" => "64:ea:df:59:79:39",
|
||||
"swiftproxy-01" => "64:bc:c3:9c:07:26",
|
||||
"swiftproxy-02" => "64:97:93:5f:b2:dc"
|
||||
}
|
||||
|
||||
template = YAML.load(File.open('example_new.yaml'))
|
||||
template_node = template['node_01']
|
||||
newyaml = template
|
||||
newyaml['nodes'] = []
|
||||
newyaml.delete('node_01')
|
||||
cluster = JSON.load(File.open('full.json'))
|
||||
nodes.each do |node,macaddr|
|
||||
result = template_node.clone
|
||||
json_node = cluster.select {|n| n['mac'].to_s == macaddr.to_s.upcase}[0]
|
||||
mac = json_node['mac'].to_s
|
||||
ip = json_node['ip'].to_s
|
||||
l_octet = ip.split('.')[3]
|
||||
id = json_node['id'].to_s
|
||||
uid = id
|
||||
if node == nodes.select{ |n,m| n.to_s =~ /controller/ }.map{|n,m| n}.first
|
||||
role = 'primary-controller'
|
||||
elsif node =~ /controller/
|
||||
role = 'controller'
|
||||
elsif node == nodes.select { |n,m| n.to_s =~ /swiftproxy/ }.map{|n,m| n}.first
|
||||
role = 'primary-swift-proxy'
|
||||
elsif node =~ /swiftproxy/
|
||||
role = 'swift-proxy'
|
||||
elsif node =~ /swift-\d+/
|
||||
role = 'storage'
|
||||
else
|
||||
role = 'compute'
|
||||
end
|
||||
|
||||
cobbler_dnsname = "#{node}.domain.tld"
|
||||
cobbler_interfaces = {
|
||||
public_iface => {"ip_address"=>ip, "netmask"=> "255.255.255.0", "dns_name"=>cobbler_dnsname, "static"=> "1", "mac_address" => mac}
|
||||
}
|
||||
cobbler_interfaces_extra = {
|
||||
public_iface => {'onboot'=>'yes','peerdns'=>'no'},
|
||||
internal_iface => {'onboot'=>'no','peerdns'=>'no'},
|
||||
private_iface => {'onboot'=>'no','peerdns'=>'no'}
|
||||
}
|
||||
result['interfaces'] = cobbler_interfaces
|
||||
result['interfaces_extra'] = cobbler_interfaces_extra
|
||||
result['power_address'] = ip
|
||||
result['mac'] = mac
|
||||
result['default_gateway'] = default_gateway
|
||||
result['name'] = node
|
||||
result['ip'] = ip
|
||||
result['name_servers'] = master_ip
|
||||
result['role'] = role
|
||||
result['fqdn'] = cobbler_dnsname
|
||||
system_disk=json_node['meta']['disks'].select {|disk| disk['name'] == 'vda'}.first
|
||||
cinder_disk=json_node['meta']['disks'].select {|disk| disk['name'] == 'vdb'}.first
|
||||
|
||||
system_disk_path = system_disk['path']
|
||||
system_disk_size = (system_disk['size']/1048756.0).floor
|
||||
cinder_disk_path = cinder_disk['path']
|
||||
cinder_disk_size = (cinder_disk['size']/1048756.0).floor
|
||||
|
||||
system_pv_size = system_disk_size - 201
|
||||
swap_size = 1024
|
||||
free_vg_size = system_pv_size - swap_size
|
||||
free_extents = (free_vg_size/32.0).floor
|
||||
system_disk_size = 32 * free_extents
|
||||
|
||||
ks_spaces = "\'[{\"type\": \"disk\", \"id\": \"#{system_disk_path}\",\"volumes\":
|
||||
[{\"mount\": \"/boot\", \"type\": \"partition\", \"size\": 200}, {\"type\":
|
||||
\"mbr\"}, {\"size\": #{system_pv_size}, \"type\": \"pv\", \"vg\": \"os\"}],\"size\":
|
||||
#{system_disk_size} },{\"type\": \"vg\", \"id\": \"os\", \"volumes\": [{\"mount\":
|
||||
\"/\", \"type\": \"lv\", \"name\": \"root\", \"size\": #{system_disk_size} }, {\"mount\":
|
||||
\"swap\", \"type\": \"lv\", \"name\": \"swap\", \"size\": #{swap_size}}]}, {\"type\":
|
||||
\"disk\", \"id\": \"#{cinder_disk_path}\", \"volumes\": [{\"type\": \"mbr\"},
|
||||
{\"size\": #{cinder_disk_size}, \"type\": \"pv\", \"vg\": \"cinder-volumes\"}], \"size\":
|
||||
#{cinder_disk_size}]\'"
|
||||
|
||||
|
||||
cobbler_ks_meta={"ks_spaces"=>ks_spaces,"mco_host"=>master_ip}
|
||||
|
||||
result['ks_meta'] = result['ks_meta'].update(cobbler_ks_meta)
|
||||
puppet_network_data = [
|
||||
{"name" => 'public', 'ip'=>ip, "dev" => public_iface, 'netmask' => "255.255.255.0", "gateway" => default_gateway },
|
||||
{"name" => ['management','storage'], 'ip'=>"#{internal_net_prefix.to_s}.#{l_octet}", "dev" => public_iface, 'netmask' => "255.255.255.0"},
|
||||
{"name" => 'fixed', "dev" => private_iface},
|
||||
]
|
||||
result['network_data'] = puppet_network_data
|
||||
# puts result.to_yaml
|
||||
newyaml['nodes'].push(result)
|
||||
end
|
||||
|
||||
newyaml['attributes']['dns_nameservers'] = master_ip
|
||||
newyaml['attributes']['libvirt_type'] = 'kvm'
|
||||
newyaml['attributes']['public_vip'] = '172.18.94.46'
|
||||
newyaml['attributes']['management_vip'] = '10.107.2.254'
|
||||
newyaml['attributes']['floating_network_range'] = '172.18.94.48/28'
|
||||
newyaml['attributes']['fixed_network_range'] = '10.107.2.0/24'
|
||||
newyaml['attributes']['base_syslog']['syslog_server'] = master_ip
|
||||
|
||||
puts newyaml.to_yaml
|
||||
|
|
@ -0,0 +1,776 @@
|
|||
[
|
||||
{
|
||||
"status": "discover",
|
||||
"name": "Untitled (1D:CA)",
|
||||
"ip": "172.18.94.43",
|
||||
"error_type": null,
|
||||
"pending_addition": false,
|
||||
"fqdn": null,
|
||||
"network_data": [],
|
||||
"platform_name": null,
|
||||
"cluster": null,
|
||||
"mac": "64:57:26:83:1D:CA",
|
||||
"meta": {
|
||||
"memory": {
|
||||
"slots": 1,
|
||||
"total": 1073741824,
|
||||
"maximum_capacity": 1073741824,
|
||||
"devices": [
|
||||
{
|
||||
"type": "RAM",
|
||||
"size": 1073741824
|
||||
}
|
||||
]
|
||||
},
|
||||
"interfaces": [
|
||||
{
|
||||
"mac": "64:EA:09:C2:C6:75",
|
||||
"max_speed": null,
|
||||
"name": "eth2",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"mac": "64:4D:C1:48:2F:8A",
|
||||
"max_speed": null,
|
||||
"name": "eth1",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"name": "eth0",
|
||||
"ip": "172.18.94.43",
|
||||
"netmask": "255.255.255.224",
|
||||
"mac": "64:57:26:83:1D:CA",
|
||||
"max_speed": null,
|
||||
"current_speed": null
|
||||
}
|
||||
],
|
||||
"disks": [
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:07.0-virtio-pci-virtio4",
|
||||
"name": "vdb",
|
||||
"size": 21474836480
|
||||
},
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:06.0-virtio-pci-virtio3",
|
||||
"name": "vda",
|
||||
"size": 21474836480
|
||||
}
|
||||
],
|
||||
"system": {
|
||||
"fqdn": "bootstrap",
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
"cpu": {
|
||||
"real": 0,
|
||||
"total": 2,
|
||||
"spec": [
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
},
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": null,
|
||||
"online": true,
|
||||
"progress": 0,
|
||||
"pending_deletion": false,
|
||||
"os_platform": "centos",
|
||||
"id": 6,
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
{
|
||||
"status": "discover",
|
||||
"name": "Untitled (D2:66)",
|
||||
"ip": "172.18.94.39",
|
||||
"error_type": null,
|
||||
"pending_addition": false,
|
||||
"fqdn": null,
|
||||
"network_data": [],
|
||||
"platform_name": null,
|
||||
"cluster": null,
|
||||
"mac": "64:C3:54:54:D2:66",
|
||||
"meta": {
|
||||
"memory": {
|
||||
"slots": 1,
|
||||
"total": 2147483648,
|
||||
"maximum_capacity": 2147483648,
|
||||
"devices": [
|
||||
{
|
||||
"type": "RAM",
|
||||
"size": 2147483648
|
||||
}
|
||||
]
|
||||
},
|
||||
"interfaces": [
|
||||
{
|
||||
"mac": "64:86:89:DC:11:DF",
|
||||
"max_speed": null,
|
||||
"name": "eth2",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"mac": "64:3E:31:66:CA:AF",
|
||||
"max_speed": null,
|
||||
"name": "eth1",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"name": "eth0",
|
||||
"ip": "172.18.94.39",
|
||||
"netmask": "255.255.255.224",
|
||||
"mac": "64:C3:54:54:D2:66",
|
||||
"max_speed": null,
|
||||
"current_speed": null
|
||||
}
|
||||
],
|
||||
"disks": [
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:07.0-virtio-pci-virtio4",
|
||||
"name": "vdb",
|
||||
"size": 21474836480
|
||||
},
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:06.0-virtio-pci-virtio3",
|
||||
"name": "vda",
|
||||
"size": 21474836480
|
||||
}
|
||||
],
|
||||
"system": {
|
||||
"fqdn": "bootstrap",
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
"cpu": {
|
||||
"real": 0,
|
||||
"total": 2,
|
||||
"spec": [
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
},
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": null,
|
||||
"online": true,
|
||||
"progress": 0,
|
||||
"pending_deletion": false,
|
||||
"os_platform": "centos",
|
||||
"id": 1,
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
{
|
||||
"status": "discover",
|
||||
"name": "Untitled (07:26)",
|
||||
"ip": "172.18.94.40",
|
||||
"error_type": null,
|
||||
"pending_addition": false,
|
||||
"fqdn": null,
|
||||
"network_data": [],
|
||||
"platform_name": null,
|
||||
"cluster": null,
|
||||
"mac": "64:BC:C3:9C:07:26",
|
||||
"meta": {
|
||||
"memory": {
|
||||
"slots": 1,
|
||||
"total": 1073741824,
|
||||
"maximum_capacity": 1073741824,
|
||||
"devices": [
|
||||
{
|
||||
"type": "RAM",
|
||||
"size": 1073741824
|
||||
}
|
||||
]
|
||||
},
|
||||
"interfaces": [
|
||||
{
|
||||
"mac": "64:E7:D3:F4:FD:BD",
|
||||
"max_speed": null,
|
||||
"name": "eth2",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"mac": "64:81:FF:17:59:9F",
|
||||
"max_speed": null,
|
||||
"name": "eth1",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"name": "eth0",
|
||||
"ip": "172.18.94.40",
|
||||
"netmask": "255.255.255.224",
|
||||
"mac": "64:BC:C3:9C:07:26",
|
||||
"max_speed": null,
|
||||
"current_speed": null
|
||||
}
|
||||
],
|
||||
"disks": [
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:07.0-virtio-pci-virtio4",
|
||||
"name": "vdb",
|
||||
"size": 21474836480
|
||||
},
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:06.0-virtio-pci-virtio3",
|
||||
"name": "vda",
|
||||
"size": 21474836480
|
||||
}
|
||||
],
|
||||
"system": {
|
||||
"fqdn": "bootstrap",
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
"cpu": {
|
||||
"real": 0,
|
||||
"total": 2,
|
||||
"spec": [
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
},
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": null,
|
||||
"online": true,
|
||||
"progress": 0,
|
||||
"pending_deletion": false,
|
||||
"os_platform": "centos",
|
||||
"id": 4,
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
{
|
||||
"status": "discover",
|
||||
"name": "Untitled (50:D3)",
|
||||
"ip": "172.18.94.36",
|
||||
"error_type": null,
|
||||
"pending_addition": false,
|
||||
"fqdn": null,
|
||||
"network_data": [],
|
||||
"platform_name": null,
|
||||
"cluster": null,
|
||||
"mac": "64:F4:64:E7:50:D3",
|
||||
"meta": {
|
||||
"memory": {
|
||||
"slots": 1,
|
||||
"total": 1073741824,
|
||||
"maximum_capacity": 1073741824,
|
||||
"devices": [
|
||||
{
|
||||
"type": "RAM",
|
||||
"size": 1073741824
|
||||
}
|
||||
]
|
||||
},
|
||||
"interfaces": [
|
||||
{
|
||||
"mac": "64:7E:46:33:10:33",
|
||||
"max_speed": null,
|
||||
"name": "eth2",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"mac": "64:E1:41:CF:03:D7",
|
||||
"max_speed": null,
|
||||
"name": "eth1",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"name": "eth0",
|
||||
"ip": "172.18.94.36",
|
||||
"netmask": "255.255.255.224",
|
||||
"mac": "64:F4:64:E7:50:D3",
|
||||
"max_speed": null,
|
||||
"current_speed": null
|
||||
}
|
||||
],
|
||||
"disks": [
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:07.0-virtio-pci-virtio4",
|
||||
"name": "vdb",
|
||||
"size": 21474836480
|
||||
},
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:06.0-virtio-pci-virtio3",
|
||||
"name": "vda",
|
||||
"size": 21474836480
|
||||
}
|
||||
],
|
||||
"system": {
|
||||
"fqdn": "bootstrap",
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
"cpu": {
|
||||
"real": 0,
|
||||
"total": 2,
|
||||
"spec": [
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
},
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": null,
|
||||
"online": true,
|
||||
"progress": 0,
|
||||
"pending_deletion": false,
|
||||
"os_platform": "centos",
|
||||
"id": 7,
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
{
|
||||
"status": "discover",
|
||||
"name": "Untitled (79:39)",
|
||||
"ip": "172.18.94.44",
|
||||
"error_type": null,
|
||||
"pending_addition": false,
|
||||
"fqdn": null,
|
||||
"network_data": [],
|
||||
"platform_name": null,
|
||||
"cluster": null,
|
||||
"mac": "64:EA:DF:59:79:39",
|
||||
"meta": {
|
||||
"memory": {
|
||||
"slots": 1,
|
||||
"total": 1073741824,
|
||||
"maximum_capacity": 1073741824,
|
||||
"devices": [
|
||||
{
|
||||
"type": "RAM",
|
||||
"size": 1073741824
|
||||
}
|
||||
]
|
||||
},
|
||||
"interfaces": [
|
||||
{
|
||||
"mac": "64:E9:9A:4D:04:3F",
|
||||
"max_speed": null,
|
||||
"name": "eth2",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"mac": "64:B9:CE:28:0D:0E",
|
||||
"max_speed": null,
|
||||
"name": "eth1",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"name": "eth0",
|
||||
"ip": "172.18.94.44",
|
||||
"netmask": "255.255.255.224",
|
||||
"mac": "64:EA:DF:59:79:39",
|
||||
"max_speed": null,
|
||||
"current_speed": null
|
||||
}
|
||||
],
|
||||
"disks": [
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:07.0-virtio-pci-virtio4",
|
||||
"name": "vdb",
|
||||
"size": 21474836480
|
||||
},
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:06.0-virtio-pci-virtio3",
|
||||
"name": "vda",
|
||||
"size": 21474836480
|
||||
}
|
||||
],
|
||||
"system": {
|
||||
"fqdn": "bootstrap",
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
"cpu": {
|
||||
"real": 0,
|
||||
"total": 2,
|
||||
"spec": [
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
},
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": null,
|
||||
"online": true,
|
||||
"progress": 0,
|
||||
"pending_deletion": false,
|
||||
"os_platform": "centos",
|
||||
"id": 9,
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
{
|
||||
"status": "discover",
|
||||
"name": "Untitled (1D:C9)",
|
||||
"ip": "172.18.94.42",
|
||||
"error_type": null,
|
||||
"pending_addition": false,
|
||||
"fqdn": null,
|
||||
"network_data": [],
|
||||
"platform_name": null,
|
||||
"cluster": null,
|
||||
"mac": "64:B7:37:B1:1D:C9",
|
||||
"meta": {
|
||||
"memory": {
|
||||
"slots": 1,
|
||||
"total": 1073741824,
|
||||
"maximum_capacity": 1073741824,
|
||||
"devices": [
|
||||
{
|
||||
"type": "RAM",
|
||||
"size": 1073741824
|
||||
}
|
||||
]
|
||||
},
|
||||
"interfaces": [
|
||||
{
|
||||
"mac": "64:49:B1:F5:AA:CF",
|
||||
"max_speed": null,
|
||||
"name": "eth2",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"mac": "64:B3:BC:6D:17:A0",
|
||||
"max_speed": null,
|
||||
"name": "eth1",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"name": "eth0",
|
||||
"ip": "172.18.94.42",
|
||||
"netmask": "255.255.255.224",
|
||||
"mac": "64:B7:37:B1:1D:C9",
|
||||
"max_speed": null,
|
||||
"current_speed": null
|
||||
}
|
||||
],
|
||||
"disks": [
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:07.0-virtio-pci-virtio4",
|
||||
"name": "vdb",
|
||||
"size": 21474836480
|
||||
},
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:06.0-virtio-pci-virtio3",
|
||||
"name": "vda",
|
||||
"size": 21474836480
|
||||
}
|
||||
],
|
||||
"system": {
|
||||
"fqdn": "bootstrap",
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
"cpu": {
|
||||
"real": 0,
|
||||
"total": 2,
|
||||
"spec": [
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
},
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": null,
|
||||
"online": true,
|
||||
"progress": 0,
|
||||
"pending_deletion": false,
|
||||
"os_platform": "centos",
|
||||
"id": 3,
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
{
|
||||
"status": "discover",
|
||||
"name": "Untitled (83:E8)",
|
||||
"ip": "172.18.94.41",
|
||||
"error_type": null,
|
||||
"pending_addition": false,
|
||||
"fqdn": null,
|
||||
"network_data": [],
|
||||
"platform_name": null,
|
||||
"cluster": null,
|
||||
"mac": "64:48:7A:14:83:E8",
|
||||
"meta": {
|
||||
"memory": {
|
||||
"slots": 1,
|
||||
"total": 1073741824,
|
||||
"maximum_capacity": 1073741824,
|
||||
"devices": [
|
||||
{
|
||||
"type": "RAM",
|
||||
"size": 1073741824
|
||||
}
|
||||
]
|
||||
},
|
||||
"interfaces": [
|
||||
{
|
||||
"mac": "64:DC:6B:09:02:4C",
|
||||
"max_speed": null,
|
||||
"name": "eth2",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"mac": "64:D0:7C:2E:02:59",
|
||||
"max_speed": null,
|
||||
"name": "eth1",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"name": "eth0",
|
||||
"ip": "172.18.94.41",
|
||||
"netmask": "255.255.255.224",
|
||||
"mac": "64:48:7A:14:83:E8",
|
||||
"max_speed": null,
|
||||
"current_speed": null
|
||||
}
|
||||
],
|
||||
"disks": [
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:07.0-virtio-pci-virtio4",
|
||||
"name": "vdb",
|
||||
"size": 21474836480
|
||||
},
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:06.0-virtio-pci-virtio3",
|
||||
"name": "vda",
|
||||
"size": 21474836480
|
||||
}
|
||||
],
|
||||
"system": {
|
||||
"fqdn": "bootstrap",
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
"cpu": {
|
||||
"real": 0,
|
||||
"total": 2,
|
||||
"spec": [
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
},
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": null,
|
||||
"online": true,
|
||||
"progress": 0,
|
||||
"pending_deletion": false,
|
||||
"os_platform": "centos",
|
||||
"id": 2,
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
{
|
||||
"status": "discover",
|
||||
"name": "Untitled (EB:4E)",
|
||||
"ip": "172.18.94.47",
|
||||
"error_type": null,
|
||||
"pending_addition": false,
|
||||
"fqdn": null,
|
||||
"network_data": [],
|
||||
"platform_name": null,
|
||||
"cluster": null,
|
||||
"mac": "64:DC:FD:AD:EB:4E",
|
||||
"meta": {
|
||||
"memory": {
|
||||
"slots": 1,
|
||||
"total": 1073741824,
|
||||
"maximum_capacity": 1073741824,
|
||||
"devices": [
|
||||
{
|
||||
"type": "RAM",
|
||||
"size": 1073741824
|
||||
}
|
||||
]
|
||||
},
|
||||
"interfaces": [
|
||||
{
|
||||
"mac": "64:74:10:45:3D:53",
|
||||
"max_speed": null,
|
||||
"name": "eth2",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"mac": "64:7E:1B:D7:5D:EF",
|
||||
"max_speed": null,
|
||||
"name": "eth1",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"name": "eth0",
|
||||
"ip": "172.18.94.47",
|
||||
"netmask": "255.255.255.224",
|
||||
"mac": "64:DC:FD:AD:EB:4E",
|
||||
"max_speed": null,
|
||||
"current_speed": null
|
||||
}
|
||||
],
|
||||
"disks": [
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:07.0-virtio-pci-virtio4",
|
||||
"name": "vdb",
|
||||
"size": 21474836480
|
||||
},
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:06.0-virtio-pci-virtio3",
|
||||
"name": "vda",
|
||||
"size": 21474836480
|
||||
}
|
||||
],
|
||||
"system": {
|
||||
"fqdn": "bootstrap",
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
"cpu": {
|
||||
"real": 0,
|
||||
"total": 2,
|
||||
"spec": [
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
},
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": null,
|
||||
"online": true,
|
||||
"progress": 0,
|
||||
"pending_deletion": false,
|
||||
"os_platform": "centos",
|
||||
"id": 5,
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
{
|
||||
"status": "discover",
|
||||
"name": "Untitled (B2:DC)",
|
||||
"ip": "172.18.94.45",
|
||||
"error_type": null,
|
||||
"pending_addition": false,
|
||||
"fqdn": null,
|
||||
"network_data": [],
|
||||
"platform_name": null,
|
||||
"cluster": null,
|
||||
"mac": "64:97:93:5F:B2:DC",
|
||||
"meta": {
|
||||
"memory": {
|
||||
"slots": 1,
|
||||
"total": 1073741824,
|
||||
"maximum_capacity": 1073741824,
|
||||
"devices": [
|
||||
{
|
||||
"type": "RAM",
|
||||
"size": 1073741824
|
||||
}
|
||||
]
|
||||
},
|
||||
"interfaces": [
|
||||
{
|
||||
"mac": "64:E1:22:FF:4D:64",
|
||||
"max_speed": null,
|
||||
"name": "eth2",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"mac": "64:FC:F2:3C:CA:5D",
|
||||
"max_speed": null,
|
||||
"name": "eth1",
|
||||
"current_speed": null
|
||||
},
|
||||
{
|
||||
"name": "eth0",
|
||||
"ip": "172.18.94.45",
|
||||
"netmask": "255.255.255.224",
|
||||
"mac": "64:97:93:5F:B2:DC",
|
||||
"max_speed": null,
|
||||
"current_speed": null
|
||||
}
|
||||
],
|
||||
"disks": [
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:07.0-virtio-pci-virtio4",
|
||||
"name": "vdb",
|
||||
"size": 21474836480
|
||||
},
|
||||
{
|
||||
"model": null,
|
||||
"disk": "disk/by-path/pci-0000:00:06.0-virtio-pci-virtio3",
|
||||
"name": "vda",
|
||||
"size": 21474836480
|
||||
}
|
||||
],
|
||||
"system": {
|
||||
"fqdn": "bootstrap",
|
||||
"manufacturer": "KVM"
|
||||
},
|
||||
"cpu": {
|
||||
"real": 0,
|
||||
"total": 2,
|
||||
"spec": [
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
},
|
||||
{
|
||||
"model": "QEMU Virtual CPU version 1.2.0",
|
||||
"frequency": 1999
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"role": null,
|
||||
"online": true,
|
||||
"progress": 0,
|
||||
"pending_deletion": false,
|
||||
"os_platform": "centos",
|
||||
"id": 8,
|
||||
"manufacturer": "KVM"
|
||||
}
|
||||
]
|
|
@ -0,0 +1,614 @@
|
|||
---
|
||||
nodes:
|
||||
- role: compute
|
||||
network_data:
|
||||
- name: public
|
||||
ip: 172.18.94.39
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
gateway: 172.18.94.33
|
||||
- name:
|
||||
- management
|
||||
- storage
|
||||
ip: 10.107.2.39
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
- name: fixed
|
||||
dev: eth2
|
||||
public_br: br-ex
|
||||
internal_br: br-mgmt
|
||||
id: 1
|
||||
default_gateway: 172.18.94.33
|
||||
uid: 1
|
||||
mac: 64:C3:54:54:D2:66
|
||||
name: compute-01
|
||||
ip: 172.18.94.39
|
||||
profile: centos-x86_64
|
||||
fqdn: compute-01.domain.tld
|
||||
power_type: ssh
|
||||
power_user: root
|
||||
power_pass: /root/.ssh/bootstrap.rsa
|
||||
power_address: 172.18.94.39
|
||||
netboot_enabled: '1'
|
||||
name_servers: 172.18.94.34
|
||||
puppet_master: fuel.domain.tld
|
||||
ks_meta: &13235360
|
||||
ks_spaces: ! "'[{\"type\": \"disk\", \"id\": \"\",\"volumes\":\n [{\"mount\":
|
||||
\"/boot\", \"type\": \"partition\", \"size\": 200}, {\"type\":\n \"mbr\"},
|
||||
{\"size\": 20275, \"type\": \"pv\", \"vg\": \"os\"}],\"size\":\n 19232
|
||||
},{\"type\": \"vg\", \"id\": \"os\", \"volumes\": [{\"mount\":\n \"/\",
|
||||
\"type\": \"lv\", \"name\": \"root\", \"size\": 19232 }, {\"mount\":\n \"swap\",
|
||||
\"type\": \"lv\", \"name\": \"swap\", \"size\": 1024}]}, {\"type\":\n \"disk\",
|
||||
\"id\": \"\", \"volumes\": [{\"type\": \"mbr\"},\n {\"size\": 20476, \"type\":
|
||||
\"pv\", \"vg\": \"cinder-volumes\"}], \"size\":\n 20476]'"
|
||||
mco_enable: 1
|
||||
mco_vhost: mcollective
|
||||
mco_pskey: unset
|
||||
mco_user: mcollective
|
||||
puppet_enable: 0
|
||||
install_log_2_syslog: 1
|
||||
mco_password: marionette
|
||||
puppet_auto_setup: 1
|
||||
puppet_master: fuel.domain.tld
|
||||
mco_auto_setup: 1
|
||||
auth_key: ! '""'
|
||||
puppet_version: 2.7.19
|
||||
mco_connector: rabbitmq
|
||||
mco_host: 172.18.94.34
|
||||
interfaces:
|
||||
eth0:
|
||||
ip_address: 172.18.94.39
|
||||
netmask: 255.255.255.0
|
||||
dns_name: compute-01.domain.tld
|
||||
static: '1'
|
||||
mac_address: 64:C3:54:54:D2:66
|
||||
interfaces_extra:
|
||||
eth0:
|
||||
onboot: 'yes'
|
||||
peerdns: 'no'
|
||||
eth1:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
eth2:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
meta: &13253720
|
||||
memory:
|
||||
total: 778694656
|
||||
interfaces:
|
||||
- mac: 64:D8:E1:F6:66:43
|
||||
max_speed: 100
|
||||
name: eth2
|
||||
ip: 10.22.0.94
|
||||
netmask: 255.255.255.0
|
||||
current_speed: 100
|
||||
- mac: 64:C8:E2:3B:FD:6E
|
||||
max_speed: 100
|
||||
name: eth1
|
||||
ip: 10.21.0.94
|
||||
netmask: 255.255.255.0
|
||||
current_speed: 100
|
||||
- name: eth0
|
||||
ip: 10.20.0.94
|
||||
netmask: 255.255.255.0
|
||||
mac: 64:43:7B:CA:56:DD
|
||||
max_speed: 100
|
||||
current_speed: 100
|
||||
disks:
|
||||
- model: VBOX HARDDISK
|
||||
disk: disk/by-path/pci-0000:00:0d.0-scsi-2:0:0:0
|
||||
name: sdc
|
||||
size: 2411724800000
|
||||
- model: VBOX HARDDISK
|
||||
disk: disk/by-path/pci-0000:00:0d.0-scsi-1:0:0:0
|
||||
name: sdb
|
||||
size: 536870912000
|
||||
- model: VBOX HARDDISK
|
||||
disk: disk/by-path/pci-0000:00:0d.0-scsi-0:0:0:0
|
||||
name: sda
|
||||
size: 17179869184
|
||||
system:
|
||||
serial: '0'
|
||||
version: '1.2'
|
||||
fqdn: bootstrap
|
||||
family: Virtual Machine
|
||||
manufacturer: VirtualBox
|
||||
cpu:
|
||||
real: 0
|
||||
total: 1
|
||||
spec:
|
||||
- model: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz
|
||||
frequency: 2397
|
||||
error_type:
|
||||
- role: primary-controller
|
||||
network_data:
|
||||
- name: public
|
||||
ip: 172.18.94.41
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
gateway: 172.18.94.33
|
||||
- name:
|
||||
- management
|
||||
- storage
|
||||
ip: 10.107.2.41
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
- name: fixed
|
||||
dev: eth2
|
||||
public_br: br-ex
|
||||
internal_br: br-mgmt
|
||||
id: 1
|
||||
default_gateway: 172.18.94.33
|
||||
uid: 1
|
||||
mac: 64:48:7A:14:83:E8
|
||||
name: controller-01
|
||||
ip: 172.18.94.41
|
||||
profile: centos-x86_64
|
||||
fqdn: controller-01.domain.tld
|
||||
power_type: ssh
|
||||
power_user: root
|
||||
power_pass: /root/.ssh/bootstrap.rsa
|
||||
power_address: 172.18.94.41
|
||||
netboot_enabled: '1'
|
||||
name_servers: 172.18.94.34
|
||||
puppet_master: fuel.domain.tld
|
||||
ks_meta: *13235360
|
||||
interfaces:
|
||||
eth0:
|
||||
ip_address: 172.18.94.41
|
||||
netmask: 255.255.255.0
|
||||
dns_name: controller-01.domain.tld
|
||||
static: '1'
|
||||
mac_address: 64:48:7A:14:83:E8
|
||||
interfaces_extra:
|
||||
eth0:
|
||||
onboot: 'yes'
|
||||
peerdns: 'no'
|
||||
eth1:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
eth2:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
meta: *13253720
|
||||
error_type:
|
||||
- role: controller
|
||||
network_data:
|
||||
- name: public
|
||||
ip: 172.18.94.42
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
gateway: 172.18.94.33
|
||||
- name:
|
||||
- management
|
||||
- storage
|
||||
ip: 10.107.2.42
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
- name: fixed
|
||||
dev: eth2
|
||||
public_br: br-ex
|
||||
internal_br: br-mgmt
|
||||
id: 1
|
||||
default_gateway: 172.18.94.33
|
||||
uid: 1
|
||||
mac: 64:B7:37:B1:1D:C9
|
||||
name: controller-02
|
||||
ip: 172.18.94.42
|
||||
profile: centos-x86_64
|
||||
fqdn: controller-02.domain.tld
|
||||
power_type: ssh
|
||||
power_user: root
|
||||
power_pass: /root/.ssh/bootstrap.rsa
|
||||
power_address: 172.18.94.42
|
||||
netboot_enabled: '1'
|
||||
name_servers: 172.18.94.34
|
||||
puppet_master: fuel.domain.tld
|
||||
ks_meta: *13235360
|
||||
interfaces:
|
||||
eth0:
|
||||
ip_address: 172.18.94.42
|
||||
netmask: 255.255.255.0
|
||||
dns_name: controller-02.domain.tld
|
||||
static: '1'
|
||||
mac_address: 64:B7:37:B1:1D:C9
|
||||
interfaces_extra:
|
||||
eth0:
|
||||
onboot: 'yes'
|
||||
peerdns: 'no'
|
||||
eth1:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
eth2:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
meta: *13253720
|
||||
error_type:
|
||||
- role: controller
|
||||
network_data:
|
||||
- name: public
|
||||
ip: 172.18.94.36
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
gateway: 172.18.94.33
|
||||
- name:
|
||||
- management
|
||||
- storage
|
||||
ip: 10.107.2.36
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
- name: fixed
|
||||
dev: eth2
|
||||
public_br: br-ex
|
||||
internal_br: br-mgmt
|
||||
id: 1
|
||||
default_gateway: 172.18.94.33
|
||||
uid: 1
|
||||
mac: 64:F4:64:E7:50:D3
|
||||
name: controller-03
|
||||
ip: 172.18.94.36
|
||||
profile: centos-x86_64
|
||||
fqdn: controller-03.domain.tld
|
||||
power_type: ssh
|
||||
power_user: root
|
||||
power_pass: /root/.ssh/bootstrap.rsa
|
||||
power_address: 172.18.94.36
|
||||
netboot_enabled: '1'
|
||||
name_servers: 172.18.94.34
|
||||
puppet_master: fuel.domain.tld
|
||||
ks_meta: *13235360
|
||||
interfaces:
|
||||
eth0:
|
||||
ip_address: 172.18.94.36
|
||||
netmask: 255.255.255.0
|
||||
dns_name: controller-03.domain.tld
|
||||
static: '1'
|
||||
mac_address: 64:F4:64:E7:50:D3
|
||||
interfaces_extra:
|
||||
eth0:
|
||||
onboot: 'yes'
|
||||
peerdns: 'no'
|
||||
eth1:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
eth2:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
meta: *13253720
|
||||
error_type:
|
||||
- role: storage
|
||||
network_data:
|
||||
- name: public
|
||||
ip: 172.18.94.43
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
gateway: 172.18.94.33
|
||||
- name:
|
||||
- management
|
||||
- storage
|
||||
ip: 10.107.2.43
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
- name: fixed
|
||||
dev: eth2
|
||||
public_br: br-ex
|
||||
internal_br: br-mgmt
|
||||
id: 1
|
||||
default_gateway: 172.18.94.33
|
||||
uid: 1
|
||||
mac: 64:57:26:83:1D:CA
|
||||
name: swift-01
|
||||
ip: 172.18.94.43
|
||||
profile: centos-x86_64
|
||||
fqdn: swift-01.domain.tld
|
||||
power_type: ssh
|
||||
power_user: root
|
||||
power_pass: /root/.ssh/bootstrap.rsa
|
||||
power_address: 172.18.94.43
|
||||
netboot_enabled: '1'
|
||||
name_servers: 172.18.94.34
|
||||
puppet_master: fuel.domain.tld
|
||||
ks_meta: *13235360
|
||||
interfaces:
|
||||
eth0:
|
||||
ip_address: 172.18.94.43
|
||||
netmask: 255.255.255.0
|
||||
dns_name: swift-01.domain.tld
|
||||
static: '1'
|
||||
mac_address: 64:57:26:83:1D:CA
|
||||
interfaces_extra:
|
||||
eth0:
|
||||
onboot: 'yes'
|
||||
peerdns: 'no'
|
||||
eth1:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
eth2:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
meta: *13253720
|
||||
error_type:
|
||||
- role: storage
|
||||
network_data:
|
||||
- name: public
|
||||
ip: 172.18.94.47
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
gateway: 172.18.94.33
|
||||
- name:
|
||||
- management
|
||||
- storage
|
||||
ip: 10.107.2.47
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
- name: fixed
|
||||
dev: eth2
|
||||
public_br: br-ex
|
||||
internal_br: br-mgmt
|
||||
id: 1
|
||||
default_gateway: 172.18.94.33
|
||||
uid: 1
|
||||
mac: 64:DC:FD:AD:EB:4E
|
||||
name: swift-02
|
||||
ip: 172.18.94.47
|
||||
profile: centos-x86_64
|
||||
fqdn: swift-02.domain.tld
|
||||
power_type: ssh
|
||||
power_user: root
|
||||
power_pass: /root/.ssh/bootstrap.rsa
|
||||
power_address: 172.18.94.47
|
||||
netboot_enabled: '1'
|
||||
name_servers: 172.18.94.34
|
||||
puppet_master: fuel.domain.tld
|
||||
ks_meta: *13235360
|
||||
interfaces:
|
||||
eth0:
|
||||
ip_address: 172.18.94.47
|
||||
netmask: 255.255.255.0
|
||||
dns_name: swift-02.domain.tld
|
||||
static: '1'
|
||||
mac_address: 64:DC:FD:AD:EB:4E
|
||||
interfaces_extra:
|
||||
eth0:
|
||||
onboot: 'yes'
|
||||
peerdns: 'no'
|
||||
eth1:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
eth2:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
meta: *13253720
|
||||
error_type:
|
||||
- role: storage
|
||||
network_data:
|
||||
- name: public
|
||||
ip: 172.18.94.44
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
gateway: 172.18.94.33
|
||||
- name:
|
||||
- management
|
||||
- storage
|
||||
ip: 10.107.2.44
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
- name: fixed
|
||||
dev: eth2
|
||||
public_br: br-ex
|
||||
internal_br: br-mgmt
|
||||
id: 1
|
||||
default_gateway: 172.18.94.33
|
||||
uid: 1
|
||||
mac: 64:EA:DF:59:79:39
|
||||
name: swift-03
|
||||
ip: 172.18.94.44
|
||||
profile: centos-x86_64
|
||||
fqdn: swift-03.domain.tld
|
||||
power_type: ssh
|
||||
power_user: root
|
||||
power_pass: /root/.ssh/bootstrap.rsa
|
||||
power_address: 172.18.94.44
|
||||
netboot_enabled: '1'
|
||||
name_servers: 172.18.94.34
|
||||
puppet_master: fuel.domain.tld
|
||||
ks_meta: *13235360
|
||||
interfaces:
|
||||
eth0:
|
||||
ip_address: 172.18.94.44
|
||||
netmask: 255.255.255.0
|
||||
dns_name: swift-03.domain.tld
|
||||
static: '1'
|
||||
mac_address: 64:EA:DF:59:79:39
|
||||
interfaces_extra:
|
||||
eth0:
|
||||
onboot: 'yes'
|
||||
peerdns: 'no'
|
||||
eth1:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
eth2:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
meta: *13253720
|
||||
error_type:
|
||||
- role: primary-swift-proxy
|
||||
network_data:
|
||||
- name: public
|
||||
ip: 172.18.94.40
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
gateway: 172.18.94.33
|
||||
- name:
|
||||
- management
|
||||
- storage
|
||||
ip: 10.107.2.40
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
- name: fixed
|
||||
dev: eth2
|
||||
public_br: br-ex
|
||||
internal_br: br-mgmt
|
||||
id: 1
|
||||
default_gateway: 172.18.94.33
|
||||
uid: 1
|
||||
mac: 64:BC:C3:9C:07:26
|
||||
name: swiftproxy-01
|
||||
ip: 172.18.94.40
|
||||
profile: centos-x86_64
|
||||
fqdn: swiftproxy-01.domain.tld
|
||||
power_type: ssh
|
||||
power_user: root
|
||||
power_pass: /root/.ssh/bootstrap.rsa
|
||||
power_address: 172.18.94.40
|
||||
netboot_enabled: '1'
|
||||
name_servers: 172.18.94.34
|
||||
puppet_master: fuel.domain.tld
|
||||
ks_meta: *13235360
|
||||
interfaces:
|
||||
eth0:
|
||||
ip_address: 172.18.94.40
|
||||
netmask: 255.255.255.0
|
||||
dns_name: swiftproxy-01.domain.tld
|
||||
static: '1'
|
||||
mac_address: 64:BC:C3:9C:07:26
|
||||
interfaces_extra:
|
||||
eth0:
|
||||
onboot: 'yes'
|
||||
peerdns: 'no'
|
||||
eth1:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
eth2:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
meta: *13253720
|
||||
error_type:
|
||||
- role: swift-proxy
|
||||
network_data:
|
||||
- name: public
|
||||
ip: 172.18.94.45
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
gateway: 172.18.94.33
|
||||
- name:
|
||||
- management
|
||||
- storage
|
||||
ip: 10.107.2.45
|
||||
dev: eth0
|
||||
netmask: 255.255.255.0
|
||||
- name: fixed
|
||||
dev: eth2
|
||||
public_br: br-ex
|
||||
internal_br: br-mgmt
|
||||
id: 1
|
||||
default_gateway: 172.18.94.33
|
||||
uid: 1
|
||||
mac: 64:97:93:5F:B2:DC
|
||||
name: swiftproxy-02
|
||||
ip: 172.18.94.45
|
||||
profile: centos-x86_64
|
||||
fqdn: swiftproxy-02.domain.tld
|
||||
power_type: ssh
|
||||
power_user: root
|
||||
power_pass: /root/.ssh/bootstrap.rsa
|
||||
power_address: 172.18.94.45
|
||||
netboot_enabled: '1'
|
||||
name_servers: 172.18.94.34
|
||||
puppet_master: fuel.domain.tld
|
||||
ks_meta: *13235360
|
||||
interfaces:
|
||||
eth0:
|
||||
ip_address: 172.18.94.45
|
||||
netmask: 255.255.255.0
|
||||
dns_name: swiftproxy-02.domain.tld
|
||||
static: '1'
|
||||
mac_address: 64:97:93:5F:B2:DC
|
||||
interfaces_extra:
|
||||
eth0:
|
||||
onboot: 'yes'
|
||||
peerdns: 'no'
|
||||
eth1:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
eth2:
|
||||
onboot: 'no'
|
||||
peerdns: 'no'
|
||||
meta: *13253720
|
||||
error_type:
|
||||
attributes:
|
||||
use_cow_images: true
|
||||
libvirt_type: kvm
|
||||
dns_nameservers: 172.18.94.34
|
||||
verbose: true
|
||||
debug: true
|
||||
auto_assign_floating_ip: true
|
||||
start_guests_on_host_boot: true
|
||||
create_networks: true
|
||||
compute_scheduler_driver: nova.scheduler.multi.MultiScheduler
|
||||
quantum: true
|
||||
master_hostname: controller-01
|
||||
nagios: false
|
||||
proj_name: test
|
||||
nagios_master: fuelweb.domain.tld
|
||||
management_vip: 10.107.2.254
|
||||
public_vip: 172.18.94.46
|
||||
novanetwork_parameters:
|
||||
vlan_start: <1-1024>
|
||||
network_manager: String
|
||||
network_size: <Integer>
|
||||
quantum_parameters:
|
||||
tenant_network_type: gre
|
||||
segment_range: 300:500
|
||||
metadata_proxy_shared_secret: quantum
|
||||
mysql:
|
||||
root_password: root
|
||||
glance:
|
||||
db_password: glance
|
||||
user_password: glance
|
||||
swift:
|
||||
user_password: swift_pass
|
||||
nova:
|
||||
db_password: nova
|
||||
user_password: nova
|
||||
access:
|
||||
password: admin
|
||||
user: admin
|
||||
tenant: admin
|
||||
email: admin@example.org
|
||||
keystone:
|
||||
db_password: keystone
|
||||
admin_token: nova
|
||||
quantum_access:
|
||||
user_password: quantum
|
||||
db_password: quantum
|
||||
rabbit:
|
||||
password: nova
|
||||
user: nova
|
||||
cinder:
|
||||
password: cinder
|
||||
user: cinder
|
||||
floating_network_range: 172.18.94.48/28
|
||||
fixed_network_range: 10.107.2.0/24
|
||||
base_syslog:
|
||||
syslog_port: '514'
|
||||
syslog_server: 172.18.94.34
|
||||
syslog:
|
||||
syslog_port: '514'
|
||||
syslog_transport: udp
|
||||
syslog_server: ''
|
||||
use_unicast_corosync: false
|
||||
horizon_use_ssl: false
|
||||
cinder_nodes:
|
||||
- controller
|
||||
ntp_servers:
|
||||
- pool.ntp.org
|
||||
nv_physical_volume:
|
||||
deployment_id: 1
|
||||
deployment_mode: ha
|
||||
deployment_source: cli
|
||||
deployment_engine: nailyfact
|
||||
engine:
|
||||
url: http://localhost/cobbler_api
|
||||
username: cobbler
|
||||
password: cobbler
|
Loading…
Reference in New Issue