Automated Installation of Platform9 OpenStack Host Agent on Hosts
A Platform9 Managed OpenStack Account comes with a host agent that must be downloaded and deployed on each of your physical servers/hosts in order to make them part of your Platform9 private cloud.
This tutorial describes an easy mechanism to:
- Fetch the Platform9 OpenStack host agent directly on a given Linux/KVM Host
- Automate deployment of the host agent using configuration parameters
Step 1 – Downloading the Platform9 OpenStack Host Agent
Following are the two ways to get the Platform9 OpenStack host agent on each of your physical servers.
- Download the Platform9 host agent from Platform9 portal, then copy it over to each of your physical servers.
- Download the host agent directly from each of your physical server using the python script provided with this Tutorial.
The python script can be downloaded from here. It allows you to download your Platform9 host agent on the command line following successful authentication with your Platform9 account.
The script does not depend on any third-party modules. As long as you have the standard library for Python 2 or 3 (included in the minimum installation of Python), it should work out of the box.
To run the script,
For CentOS/Red Hat:[bash]python pf9-download.py –account_endpoint acme.platform9.net –region myRegion –user firstname.lastname@example.org –tenant myOrg –platform redhat[/bash]
For Ubuntu 14.04 and Ubuntu 16.04:[bash]python pf9-download.py –account_endpoint acme.platform9.net –region myRegion –user email@example.com –tenant myOrg debian[/bash]
This will download the host agent in the current working directory. When running interactively, the script will prompt for the account password. You can optionally pass the password to the script at the command line using the ‘password’ option. Example:[bash]python pf9-download.py –account_endpoint acme.platform9.net –region myRegion –user firstname.lastname@example.org –password supersecurestuff –tenant myOrg debian[/bash]
Step 2 – Unattended Installation
2.1 Environments without HTTP proxy
If you do not have an HTTP proxy server in your environment, trigger the host agent self-install package with a ‘–no-proxy’ option.[bash]bash platform9-install-redhat.sh –no-proxy[/bash]
Doing so will automate installation of the host agent without proxy.
2.2 Environments with HTTP proxy
If you have an HTTP proxy server in your environment, you can also automate this by passing in the
--proxy=<server>:<port> option. Note the colon between the