From 01ffc91fb96650392b58fa0422ae1d90ecbcdd6b Mon Sep 17 00:00:00 2001 From: Igor Gajsin Date: Wed, 6 Jul 2016 16:44:05 +0300 Subject: [PATCH] add endpoints --- .../puppet/manifests/keystone.pp | 19 +++++++++++++++++ docs/check-list.org | 21 ++++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 deployment_scripts/puppet/manifests/keystone.pp diff --git a/deployment_scripts/puppet/manifests/keystone.pp b/deployment_scripts/puppet/manifests/keystone.pp new file mode 100644 index 0000000..acabcd6 --- /dev/null +++ b/deployment_scripts/puppet/manifests/keystone.pp @@ -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", +} diff --git a/docs/check-list.org b/docs/check-list.org index 0c06fab..2d51e13 100644 --- a/docs/check-list.org +++ b/docs/check-list.org @@ -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?