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?