From 7a25b6bea31f8cf375d0bd88c7e1e7f6b3d1316d Mon Sep 17 00:00:00 2001
From: Sam Yaple <sam@yaple.net>
Date: Fri, 31 Jul 2015 23:55:39 +0000
Subject: [PATCH] Adds an example openrc file

Change-Id: Ie056a8347f6b72ffb647bfb79ee4449ca45f3fef
Closes-Bug: #1476294
---
 docs/ansible-deployment.md |  6 ++++++
 tools/openrc-example       | 11 +++++++++++
 2 files changed, 17 insertions(+)
 create mode 100644 tools/openrc-example

diff --git a/docs/ansible-deployment.md b/docs/ansible-deployment.md
index 6e3e8c9146..0363ba0c12 100644
--- a/docs/ansible-deployment.md
+++ b/docs/ansible-deployment.md
@@ -89,6 +89,12 @@ Multiple tags may be specified, and order is still determined by the playbooks.
     ansible-playbook -i inventory/all-in-one -e @/etc/kolla/defaults.yml -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml site.yml --tags rabbitmq
     ansible-playbook -i inventory/all-in-one -e @/etc/kolla/defaults.yml -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml site.yml --tags rabbitmq,mariadb
 
+Finally, you can view ./kolla/tools/openrc-example for an example of an openrc
+you can use with your environment. If you wish you may also run the following
+command to initiate your environment with an glance image and neutron networks.
+
+    cd ./kolla/tools
+    ./init-runonce
 
 Further Reading
 ---------------
diff --git a/tools/openrc-example b/tools/openrc-example
new file mode 100644
index 0000000000..2dda3aed35
--- /dev/null
+++ b/tools/openrc-example
@@ -0,0 +1,11 @@
+# You can customize this to match your environment by replacing the variables:
+#           keystone_admin_password
+#           kolla_internal_address
+#           keystone_admin_port
+
+export OS_PROJECT_DOMAIN_ID=default
+export OS_USER_DOMAIN_ID=default
+export OS_PROJECT_NAME=admin
+export OS_USERNAME=admin
+export OS_PASSWORD=<keystone_admin_password>
+export OS_AUTH_URL=http://<kolla_internal_address>:<keystone_admin_port>