The OpenStack instance must have Neutron and Heat enabled.
- The OpenStack python clients for Nova, Neutron and Heat are required:
python-novaclient
python-neutronclient
python-heatclient
On RHEL / CentOS / Fedora:
yum install -y ansible python-novaclient python-neutronclient python-heatclient
The following options can be passed via the -o
flag of the create
command:
infra_heat_stack
(default toplaybooks/openstack/openshift-cluster/files/heat_stack.yaml
): filename of the HEAT template to use to create the cluster infrastructure
The following options are used only by heat_stack.yaml
. They are so used only if the infra_heat_stack
option is left with its default value.
image_name
: Name of the image to use to spawn VMspublic_key
(default to~/.ssh/id_rsa.pub
): filename of the ssh public keyetcd_flavor
(default tom1.small
): The ID or name of the flavor for the etcd nodesmaster_flavor
(default tom1.small
): The ID or name of the flavor for the masternode_flavor
(default tom1.medium
): The ID or name of the flavor for the compute nodesinfra_flavor
(default tom1.small
): The ID or name of the flavor for the infrastructure nodesnetwork_prefix
(default toopenshift-ansible-<cluster_id>
): prefix prepended to all network objects (net, subnet, router, security groups)dns
(default to8.8.8.8,8.8.4.4
): comma separated list of DNS to usenet_cidr
(default to192.168.<rand()>.0/24
): CIDR of the network created byheat_stack.yaml
external_net
(default toexternal
): Name of the external network to connect tofloating_ip_pool
(default toexternal
): comma separated list of floating IP poolsssh_from
(default to0.0.0.0/0
): IPs authorized to connect to the VMs via ssh
- To create a cluster with one master and two nodes
bin/cluster create openstack <cluster-id>
- To create a cluster with one master and three nodes, a custom VM image and custom DNS:
bin/cluster create -n 3 -o image_name=rhel-7.1-openshift-2015.05.21 -o dns=172.16.50.210,172.16.50.250 openstack lenaic
- To update the cluster
bin/cluster update openstack <cluster-id>
- To terminate the cluster
bin/cluster terminate openstack <cluster-id>