diff --git a/xCAT-OpenStack/chef-cookbooks/grizzly-xcat/environments/example_allinone.rb b/xCAT-OpenStack/chef-cookbooks/grizzly-xcat/environments/example_allinone.rb new file mode 100644 index 000000000..e3e3f70ac --- /dev/null +++ b/xCAT-OpenStack/chef-cookbooks/grizzly-xcat/environments/example_allinone.rb @@ -0,0 +1,161 @@ +# +# IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html +# + +name "example_allinone" +description "Grizzly allinone environment file." + +override_attributes( + "mysql" => { + "server_root_password" => "cluster", + "server_debian_password" => "cluster", + "server_repl_password" => "cluster", + "allow_remote_root" => true, + "root_network_acl" => "%" + }, + "openstack" => { + "developer_mode" => false, + "secret"=>{ + "key_path"=>"/etc/chef/encrypted_data_bag_secret" + }, + "db"=>{ + "bind_interface"=>"lo", + "compute"=>{ + "host"=>"127.0.0.1" + }, + "identity"=>{ + "host"=>"127.0.0.1" + }, + "image"=>{ + "host"=>"127.0.0.1" + }, + "network"=>{ + "host"=>"127.0.0.1" + }, + "volume"=>{ + "host"=>"127.0.0.1" + }, + "dashboard"=>{ + "host"=>"127.0.0.1" + }, + "metering"=>{ + "host"=>"127.0.0.1" + } + }, + + "mq"=>{ + "bind_interface"=>"lo" + }, + "identity"=>{ + "bind_interface"=>"lo", + "db"=>{ + "username"=>"keystone", + "password"=> "keystone" + } + }, + + "endpoints"=>{ + "identity-api"=>{ + "host"=>"127.0.0.1", + }, + "identity-admin"=>{ + "host"=>"127.0.0.1", + }, + "compute-api"=>{ + "host"=>"127.0.0.1", + }, + "compute-ec2-api"=>{ + "host"=>"127.0.0.1", + }, + "compute-ec2-admin"=>{ + "host"=>"127.0.0.1", + }, + "compute-xvpvnc"=>{ + "host"=>"127.0.0.1", + }, + "compute-novnc"=>{ + "host"=>"127.0.0.1", + }, + "network-api"=>{ + "host"=>"127.0.0.1", + }, + "image-api"=>{ + "host"=>"127.0.0.1", + }, + "image-registry"=>{ + "host"=>"127.0.0.1", + }, + "volume-api"=>{ + "host"=>"127.0.0.1", + }, + "metering-api"=>{ + "host"=>"127.0.0.1", + } + }, + + "image" => { + "api"=>{ + "bind_interface"=>"lo" + }, + "registry"=>{ + "bind_interface"=>"lo" + }, + "image_upload" => false, + "upload_images" => ["cirros"], + "upload_image" => { + "cirros" => "https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img" + }, + "identity_service_chef_role" => "allinone-compute" + }, + "block-storage" => { + "keystone_service_chef_role" => "allinone-compute" + }, + "dashboard" => { + "keystone_service_chef_role" => "allinone-compute", + "use_ssl" => "false" + }, + "network" => { + "metadata"=>{ + "nova_metadata_ip"=>"127.0.0.1" + }, + "rabbit"=>{ + "host"=>"127.0.0.1" + }, + "api"=>{ + "bind_interface"=>"lo" + }, + + "rabbit_server_chef_role" => "allinone-compute", + "l3"=>{ + "external_network_bridge_interface"=>"eth0" + }, + "openvswitch"=> { + "tenant_network_type"=>"vlan", + "network_vlan_ranges"=>"physnet1", + "bridge_mappings"=>"physnet1:eth2" + } + }, + "compute" => { + "identity_service_chef_role" => "allinone-compute", + "rabbit"=>{ + "host"=>"127.0.0.1" + }, + "xvpvnc_proxy"=>{ + "bind_interface"=>"eth0" + }, + "novnc_proxy"=>{ + "bind_interface"=>"eth0" + }, + "network" => { + "service_type" => "quantum" + }, + "config" => { + "ram_allocation_ratio" => 5.0 + }, + "libvirt" => { + "bind_interface"=>"lo", + "virt_type" => "qemu" + } + } + } + ) diff --git a/xCAT-OpenStack/chef-cookbooks/grizzly-xcat/environments/example_per-tenant_router.rb b/xCAT-OpenStack/chef-cookbooks/grizzly-xcat/environments/example_per-tenant_router.rb new file mode 100644 index 000000000..39d31c063 --- /dev/null +++ b/xCAT-OpenStack/chef-cookbooks/grizzly-xcat/environments/example_per-tenant_router.rb @@ -0,0 +1,156 @@ +# +# IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html +# http://docs.openstack.org/grizzly/openstack-network/admin/content/app_demo_routers_with_private_networks.html +# +# + +name "example_per-tenant_router" +description "Grizzly environment file based on Per-tenant Routers with Private Networks" + +override_attributes( + "mysql" => { + "server_root_password" => "cluster", + "server_debian_password" => "cluster", + "server_repl_password" => "cluster", + "allow_remote_root" => true, + "root_network_acl" => "%" + }, + "openstack" => { + "developer_mode" => true, + "db"=>{ + "bind_interface"=>"eth1", + "compute"=>{ + "host"=>"11.1.0.107" + }, + "identity"=>{ + "host"=>"11.1.0.107" + }, + "image"=>{ + "host"=>"11.1.0.107" + }, + "network"=>{ + "host"=>"11.1.0.107" + }, + "volume"=>{ + "host"=>"11.1.0.107" + }, + "dashboard"=>{ + "host"=>"11.1.0.107" + }, + "metering"=>{ + "host"=>"11.1.0.107" + } + }, + "mq"=>{ + "bind_interface"=>"eth1" + }, + "identity"=>{ + "bind_interface"=>"eth1", + "db"=>{ + "username"=>"keystone", + "password"=> "keystone" + } + }, + + "endpoints"=>{ + "identity-api"=>{ + "host"=>"11.1.0.107", + }, + "identity-admin"=>{ + "host"=>"11.1.0.107", + }, + "compute-api"=>{ + "host"=>"11.1.0.107", + }, + "compute-ec2-api"=>{ + "host"=>"11.1.0.107", + }, + "compute-ec2-admin"=>{ + "host"=>"11.1.0.107", + }, + "compute-xvpvnc"=>{ + "host"=>"11.1.0.107", + }, + "compute-novnc"=>{ + "host"=>"11.1.0.107", + }, + "network-api"=>{ + "host"=>"11.1.0.107", + }, + "image-api"=>{ + "host"=>"11.1.0.107", + }, + "image-registry"=>{ + "host"=>"11.1.0.107", + }, + "volume-api"=>{ + "host"=>"11.1.0.107", + }, + "metering-api"=>{ + "host"=>"11.1.0.107", + } + }, + + + "image" => { + "api"=>{ + "bind_interface"=>"eth1" + }, + "registry"=>{ + "bind_interface"=>"eth1" + }, + "image_upload" => false, + "upload_images" => ["cirros"], + "upload_image" => { + "cirros" => "https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img" + }, + }, + "dashboard" => { + "use_ssl" => "false" + }, + "network" => { + "metadata"=>{ + "nova_metadata_ip"=>"11.1.0.107" + }, + "rabbit"=>{ + "host"=>"11.1.0.107" + }, + "api"=>{ + "bind_interface"=>"eth1" + }, + "l3"=>{ + "external_network_bridge_interface"=>"eth0" + }, + "allow_overlapping_ips" => "True", + "use_namespaces" => "True", + "openvswitch"=> { + "tenant_network_type"=>"gre", + "tunnel_id_ranges"=>"1:1000", + "enable_tunneling"=>"True", + "local_ip_interface"=>"eth2" + } + }, + "compute" => { + "identity_service_chef_role" => "os-compute-single-controller", + "rabbit"=>{ + "host"=>"11.1.0.107" + }, + "xvpvnc_proxy"=>{ + "bind_interface"=>"eth0" + }, + "novnc_proxy"=>{ + "bind_interface"=>"eth0" + }, + "network" => { + "service_type" => "quantum", + }, + "config" => { + "ram_allocation_ratio" => 5.0 + }, + "libvirt" => { + "bind_interface"=>"eth1", + "virt_type" => "qemu" + } + } + } + )