summaryrefslogtreecommitdiffstats
path: root/playbooks/provisioning/openstack/provision-openstack.yml
Commit message (Collapse)AuthorAgeFilesLines
* Options for bastion, SSH config, static inventory autogenerationBogdan Dobrelya2017-07-251-2/+9
| | | | | | | | | | | | | | | * At the provisioning stage, allow users to auto-generate SSH config, when using a static inventory. * Run playbooks to provsion and post-provision as a separate, when using a bastion. This re-applies the SSH config, which ansible can't do on the fly. * Support a pre-installed bastion node, colocated with the 1st infra node. * With a bastion enabled, reduce floating IP footprint to infra and dns nodes only, effectively isolating a cluster in a private network. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
* Static inventory autogeneration (#550)Bogdan Dobrelya2017-07-201-15/+4
| | | | | | | | | * At the provisioning stage, allow users to auto-generate a static inventory w/o manual steps needed. The alternative to go fully dynamic TBD. * Move openshift pre-install playbook to the post provision playbook, where the second part of the pre install tasks is already placed. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
* Persist DNS configuration for nodes for openstack providerBogdan Dobrelya2017-06-301-31/+10
| | | | | | | | | | | | | | | | | * Firstly, provision a Heat stack with given public resolvers. * After the DNS node configured as an authoritative server, switch the Heat stack's Neutron subnet to that resolver (private_dns_server) the way it to become the first entry pushed into the hosts /etc/resolv.conf. It will be serving the cluster domain requests for OpenShift nodes and workloads. * Drop post-provision /etc/reslov.conf nameserver hacks as not needed anymore. * Fix dns floating IPs output and add the priv IPs output as well. * Update docs, clarify localhost vs servers requirements, add required Network Manager setup step. * Use post-provision task names instead of comments. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
* Fix yaml indentationTomas Sedovic2017-06-291-1/+1
|
* Use wait_for_connection for the Heat nodesTomas Sedovic2017-06-291-3/+7
| | | | | | | | | | The `wait_for_connection` module is more reliable as it uses Ansible's `ping` to verify the nodes are really accessible. Using `wait_for` and checking that port 22 is open runs into the possibility of SSH being up but the public keys or users not being set up yet (as that's done with cloud-init). In addition, we were gathering facts before running the wait_for task which rendered it useless.
* Merge pull request #491 from tzumainn/openstack-heat-stack-updateTomas Sedovic2017-06-261-0/+1
|\ | | | | Add node_removal_policies variable to openstack provisioning to allow for scaling down
| * rename node_removal_policies, add some comments and defaultsTzu-Mainn Chen2017-06-231-1/+1
| |
| * Add node_removal_policies variable to allow for scaling downTzu-Mainn Chen2017-06-211-0/+1
| |
* | Use cached facts, do not become for localhost (#484)Bogdan Dobrelya2017-06-211-1/+3
|/ | | | | | Prohibit sudoing for localhost played tasks, like DNS setup. Re-use cached facts to speed up deployment. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
* Gather facts for provision playbookBogdan Dobrelya2017-06-151-0/+1
| | | | | | | | | Provision tasks use facts like ansible_hostname and few others. W/o gathering facts, those expire, and the provision playbook cannot be reapplied in order to update the existing heat stack. Refresh the facts cache by specifying gather_facts: true. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
* Add default values to provision-openstack.ymlTomas Sedovic2017-06-141-8/+8
|
* Move the openstack provisioning playbooksTomas Sedovic2017-06-141-0/+48
They'll live in playbooks/provisioning/openstack from now on.