add endpoints

This commit is contained in:
Igor Gajsin 2016-07-06 16:44:05 +03:00
parent ac654252e9
commit 01ffc91fb9
2 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,19 @@
notify {'MODULAR manila/keystone': }
$manila = hiera_hash('manila', {})
$pass = $manila['user_password']
$network_metadata = hiera_hash('network_metadata', {})
$public_ip = $network_metadata['vips']['public']['ipaddr']
$admin_ip = $network_metadata['vips']['management']['ipaddr']
$internal_ip = $admin_ip
class {'::puppet-manila::keystone::auth':
password => $pass,
public_url => "http://${public_ip}:8786/v1/%(tenant_id)s",
public_url_v2 => "http://${public_ip}:8786/v2/%(tenant_id)s",
admin_url => "http://${admin_ip}:8786/v1/%(tenant_id)s",
admin_url_v2 => "http://${admin_ip}:8786/v2/%(tenant_id)s",
internal_url => "http://${internal_ip}:8786/v1/%(tenant_id)s",
internal_url_v2 => "http://${internal_ip}:8786/v2/%(tenant_id)s",
}

View File

@ -7,7 +7,26 @@ Steps for installation and configuration of the manila:
** DONE create service
openstack service create --name manila --description "OpenStack Shared Filesystems" share
openstack service create --name manilav2 --description "OpenStack Shared Filesystems" sharev2
** TODO create endpoint
** DONE create endpoint
root@node-1:~/manila# export adminurl=$(openstack endpoint show cinder| awk '/adminurl/ {print $4}'|cut -d':' -f2|sed s/'\/'//g)
root@node-1:~/manila# export internalurl=$(openstack endpoint show cinder| awk '/internalurl/ {print $4}'|cut -d':' -f2|sed s/'\/'//g)
root@node-1:~/manila# export publicurl=$(openstack endpoint show cinder| awk '/publicurl/ {print $4}'|cut -d':' -f2|sed s/'\/'//g)
root@node-1:~/manila# openstack endpoint create \
--region RegionOne \
--publicurl http://$publicurl:8786/v1/%\(tenant_id\)s \
--internalurl http://$internalurl:8786/v1/%\(tenant_id\)s \
--adminurl http://$adminurl:8786/v1/%\(tenant_id\)s \
share
root@node-1:~/manila# openstack endpoint create \
--region RegionOne \
--publicurl http://$publicurl:8786/v2/%\(tenant_id\)s \
--internalurl http://$internalurl:8786/v2/%\(tenant_id\)s \
--adminurl http://$adminurl:8786/v2/%\(tenant_id\)s \
sharev2
** TODO install manila
** TODO edit config
** TODO do db staff
** TODO iptables
* Notest
** Receive the puppet-manila module when the plugin is bulded
** How to generate password in puppet?