Merge "Set manila nova_flavor id"
This commit is contained in:
commit
f36648bb72
@ -16,11 +16,23 @@ elsif ($::manila_network_type == 'nova-network'){
|
||||
$service_instance_network_helper_type = 'nova'
|
||||
}
|
||||
|
||||
$admin_username = hiera('CONFIG_KEYSTONE_ADMIN_USERNAME')
|
||||
$admin_password = hiera('CONFIG_KEYSTONE_ADMIN_PW')
|
||||
$admin_tenant = 'admin'
|
||||
$keystone_url = hiera('CONFIG_KEYSTONE_PUBLIC_URL')
|
||||
|
||||
exec { 'create m1.manila nova flavor':
|
||||
path => '/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
provider => shell,
|
||||
command => "nova --os-username $admin_username --os-password $admin_password --os-tenant-name $admin_tenant --os-auth-url $keystone_url flavor-create m1.manila 66 512 0 1",
|
||||
unless => "nova --os-username $admin_username --os-password $admin_password --os-tenant-name $admin_tenant --os-auth-url $keystone_url flavor-list | grep 66",
|
||||
} ->
|
||||
manila::service_instance{ 'generic':
|
||||
service_image_location => hiera('CONFIG_MANILA_SERVICE_IMAGE_LOCATION'),
|
||||
service_instance_user => hiera('CONFIG_MANILA_SERVICE_INSTANCE_USER'),
|
||||
service_instance_password => hiera('CONFIG_MANILA_SERVICE_INSTANCE_PASSWORD'),
|
||||
service_instance_network_helper_type => $service_instance_network_helper_type,
|
||||
service_instance_flavor_id => 66,
|
||||
}
|
||||
|
||||
class { '::manila::compute::nova':
|
||||
|
Loading…
Reference in New Issue
Block a user