From fbb5c854ff04d5949fbacac3d897d8e3847dc842 Mon Sep 17 00:00:00 2001 From: Matthew Kassawara Date: Fri, 11 Jul 2014 15:46:50 +0000 Subject: [PATCH] Improve install guide openrc content Improve openrc content in the installation guide as follows: 1) Add new openrc section to keystone chapter 2) Remove clients chapter This patch implements changes approved for other patches associated with this blueprint. Change-Id: I075671cb0b432ce73addb972a0d709f9a4655114 Implements: blueprint installation-guide-improvements --- .../bk-openstack-install-guide.xml | 1 - doc/install-guide/ch_keystone.xml | 1 + doc/install-guide/section_keystone-openrc.xml | 52 +++++++++++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 doc/install-guide/section_keystone-openrc.xml diff --git a/doc/install-guide/bk-openstack-install-guide.xml b/doc/install-guide/bk-openstack-install-guide.xml index c46527771b..52a7a67535 100644 --- a/doc/install-guide/bk-openstack-install-guide.xml +++ b/doc/install-guide/bk-openstack-install-guide.xml @@ -210,7 +210,6 @@ - diff --git a/doc/install-guide/ch_keystone.xml b/doc/install-guide/ch_keystone.xml index d6c612f2fb..ccdfac68a2 100644 --- a/doc/install-guide/ch_keystone.xml +++ b/doc/install-guide/ch_keystone.xml @@ -10,4 +10,5 @@ + diff --git a/doc/install-guide/section_keystone-openrc.xml b/doc/install-guide/section_keystone-openrc.xml new file mode 100644 index 0000000000..dbbf9907ef --- /dev/null +++ b/doc/install-guide/section_keystone-openrc.xml @@ -0,0 +1,52 @@ + +
+ Create OpenStack client environment scripts + The previous section used a combination of environment variables and + command options to interact with the Identity service via the + keystone client. To increase efficiency of client + operations, OpenStack supports simple client environment scripts also + known as OpenRC files. These scripts typically contain common options for + all clients, but also support unique options. For more information, see the + OpenStack User Guide. + + To create the scripts + Create client environment scripts for the admin + and demo tenants and users. Future portions of this + guide reference these scripts to load appropriate credentials for client + operations. + + Edit the admin-openrc.sh file and add the + following content: + export OS_TENANT_NAME=admin +export OS_USERNAME=admin +export OS_PASSWORD=ADMIN_PASS +export OS_AUTH_URL=http://controller:35357/v2.0 + Replace ADMIN_PASS with the password you chose + for the admin user in the Identity service. + + + Edit the demo-openrc.sh file and add the + following content: + export OS_TENANT_NAME=demo +export OS_USERNAME=demo +export OS_PASSWORD=DEMO_PASS +export OS_AUTH_URL=http://controller:5000/v2.0 + Replace DEMO_PASS with the password you chose + for the demo user in the Identity service. + + + + To load client environment scripts + + To run clients as a certain tenant and user, you can simply load + the associated client environment script prior to running them. For + example, to load the location of the Identity service and + admin tenant and user credentials: + $ source admin-openrc.sh + + +