yatin b8c73d1c2f Create m1.small flavor required by murano tests
murano tempest tests post [1] and [2] requires a flavor with name
"m1.small".

[1] https://review.openstack.org/#/c/455773/
[2] https://review.openstack.org/#/c/462486/

Change-Id: Ib31593cc2b8fda1a07295ccc8e0eab89939bf1b8
2017-05-05 19:05:51 +05:30

68 lines
1.8 KiB
Puppet

# Deploy OpenStack resources needed to run Tempest
class openstack_integration::provision {
include ::openstack_integration::config
nova_flavor { 'm1.nano':
ensure => present,
id => '42',
ram => '128',
disk => '0',
vcpus => '1',
}
nova_flavor { 'm1.micro':
ensure => present,
id => '84',
ram => '128',
disk => '0',
vcpus => '1',
}
# NOTE(ykarel): "m1.small" flavor is required by murano scenario tests
nova_flavor { 'm1.small':
ensure => present,
id => '2',
ram => '128',
disk => '0',
vcpus => '1',
}
Keystone_user_role <||>-> Nova_flavor<||>
Keystone_endpoint <||>-> Nova_flavor<||>
neutron_network { 'public':
tenant_name => 'openstack',
router_external => true,
provider_physical_network => 'external',
provider_network_type => 'flat',
}
Keystone_user_role <||>-> Neutron_network<||>
Keystone_endpoint <||>-> Neutron_network<||>
neutron_subnet { 'public-subnet':
cidr => '172.24.5.0/24',
ip_version => '4',
allocation_pools => ['start=172.24.5.10,end=172.24.5.200'],
gateway_ip => '172.24.5.1',
enable_dhcp => false,
network_name => 'public',
tenant_name => 'openstack',
}
glance_image { 'cirros':
ensure => present,
container_format => 'bare',
disk_format => 'qcow2',
is_public => 'yes',
source => '/tmp/openstack/image/cirros-0.3.4-x86_64-disk.img'
}
glance_image { 'cirros_alt':
ensure => present,
container_format => 'bare',
disk_format => 'qcow2',
is_public => 'yes',
source => '/tmp/openstack/image/cirros-0.3.4-x86_64-disk.img'
}
Keystone_user_role <||>-> Glance_image<||>
Keystone_endpoint <||>-> Glance_image<||>
}