packstack/packstack/puppet/modules/packstack/manifests/cinder/backend/solidfire.pp

21 lines
765 B
Puppet
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Copyright (c) 2016, Edward Balduf. All rights reserved.
class packstack::cinder::backend::solidfire ()
{
$solidfire_backend_name = 'solidfire'
cinder::backend::solidfire { $solidfire_backend_name :
san_ip => hiera('CONFIG_CINDER_SOLIDFIRE_LOGIN'),
san_login => hiera('CONFIG_CINDER_SOLIDFIRE_PASSWORD'),
san_password => hiera('CONFIG_CINDER_SOLIDFIRE_HOSTNAME'),
volume_backend_name => $solidfire_backend_name,
}
ensure_packages(['iscsi-initiator-utils'], {'ensure' => 'present'})
cinder_type { $solidfire_backend_name:
ensure => present,
properties => ["volume_backend_name=${solidfire_backend_name}"],
require => Class['cinder::api'],
}
}