Skip to content

Instantly share code, notes, and snippets.

@mattray
Created October 25, 2013 16:42
Show Gist options
  • Select an option

  • Save mattray/7157741 to your computer and use it in GitHub Desktop.

Select an option

Save mattray/7157741 to your computer and use it in GitHub Desktop.
name "allinone"
description "Example environment defining the network and database settings you're going to use with OpenStack using a single machines for the services and compute."
override_attributes(
'authorization' => {
'sudo' => {
'groups' => ['admin', 'wheel', 'sysadmin'],
'include_sudoers_d' => true,
'passwordless' => true,
'users' => ['mray']
}
},
'mysql' => {
'allow_remote_root' => true,
'root_network_acl' => '%'
},
'openstack' => {
'developer_mode' => true,
'endpoints' => {
'identity-admin' => {'bind_interface' => 'eth0' },
'identity-api' => {'bind_interface' => 'eth0' }
},
'block-storage' => {
'bind_interface' => 'eth0',
'keystone_service_chef_role' => 'allinone-compute'
},
'compute' => {
'config' => {
'ram_allocation_ratio' => 5.0
},
'identity_service_chef_role' => 'allinone-compute',
'libvirt' => {
'virt_type' => 'kvm'
},
'network' => {
'fixed_range' => '172.16.100.128/25', #172.16.100.128 - 172.16.100.255
'public_interface' => 'eth2'
},
'networks' => [
{
'label' => 'public',
'ipv4_cidr' => '172.16.100.128/25', #172.16.100.128 - 172.16.100.255
'num_networks' => '1',
'network_size' => '255',
'bridge' => 'br100',
'bridge_dev' => 'eth2',
'dns1' => '172.16.100.1',
'dns2' => '8.8.8.8'
}
],
'novnc_proxy' => {
'bind_interface' => 'eth0'
},
'xvpvnc_proxy' => {
'bind_interface' => 'eth0'
}
},
'dashboard' => {
'bind_interface' => 'eth0',
'keystone_service_chef_role' => 'allinone-compute'
},
# 'identity' => {
# 'bind_interface' => 'eth0'
# },
'image' => {
'api' => {
'bind_interface' => 'eth0'
},
'registry' => {
'bind_interface' => 'eth0'
},
'image_upload' => true,
'upload_images' => ['cirros', 'precise'],
'upload_image' => {
'cirros' => 'http://mom.lab.atx/isos/cirros-0.3.0-x86_64-disk.img',
'precise' => 'http://mom.lab.atx/isos/precise-server-cloudimg-amd64-disk1.img'
# 'cirros' => 'https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img',
# 'precise' => 'http://uec-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img'
},
'identity_service_chef_role' => 'allinone-compute'
},
'mq' => {
'bind_interface' => 'eth0'
},
'network' => {
'api' => {
'bind_interface' => 'eth0'
},
'l3' => {
'external_network_bridge_interface' => 'eth2'
},
'openvswitch' => {
'local_ip_interface' => 'eth2',
'tenant_network_type' => 'gre',
'tunnel_id_ranges' => '1:1000'
#'use_source_version' => true
},
'rabbit_server_chef_role' => 'allinone-compute'
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment