summaryrefslogtreecommitdiffstats
path: root/playbooks/openstack
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #6580 from tomassedovic/openstack-fixesOpenShift Merge Robot2018-01-083-2/+10
|\ | | | | | | | | | | | | | | | | Automatic merge from submit-queue. Openstack fixes This includes a few fixes for the OpenStack provider. It should fix #6555 and possibly also #6560.
| * Import prerequisites.yml for OpenStackTomas Sedovic2018-01-021-0/+3
| |
| * Return a openshift_node_labels as a dictTomas Sedovic2018-01-021-0/+5
| | | | | | | | | | | | | | | | The OpenStack dynamic inventory was setting the `openshift_node_labels` value as a string which causes a failure with the `lib_utils_oo_dict_to_keqv_list` filter. Fixes #6555
| * Fix yaml syntax error in the sample inventoryTomas Sedovic2018-01-021-2/+2
| |
* | Merge pull request #6627 from sdodson/import_roleScott Dodson2018-01-052-8/+8
|\ \ | | | | | | Migrate to import_role for static role inclusion
| * | Migrate to import_role for static role inclusionScott Dodson2018-01-052-8/+8
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Ansible 2.2, the include_role directive came into existence as a Tech Preview. It is still a Tech Preview through Ansible 2.4 (and in current devel branch), but with a noteable change. The default behavior switched from static: true to static: false because that functionality moved to the newly introduced import_role directive (in order to stay consistent with include* being dynamic in nature and `import* being static in nature). The dynamic include is considerably more memory intensive as it will dynamically create a role import for every host in the inventory list to be used. (Also worth noting, there is at the time of this writing an object allocation inefficiency in the dynamic include that can in certain situations amplify this effect considerably) This change is meant to mitigate the pressure on memory for the Ansible control host. We need to evaluate where it makes sense to dynamically include roles and revert back to dynamic inclusion if and where it makes sense to do so.
* | Merge pull request #6532 from jmencak/heat_stack-cnsOpenShift Merge Robot2018-01-052-1/+13
|\ \ | |/ |/| | | | | | | | | Automatic merge from submit-queue. OpenStack provisioning -- support cns. Initial support for CNS nodes during OpenShift on OpenStack provisioning.
| * OpenStack provisioning -- support cns.Jiri Mencak2018-01-022-1/+13
| |
* | set repos after registration: convert to match task -> import_role model.Mark Lamourine2017-12-181-3/+11
|/
* Fix rhel_subscribe booleanMichael Gugino2017-12-151-2/+2
| | | | | | | This commit fixes a variable name to it's correct name used in a when condition. Also makes use of 'is defined' consistent.
* Allow 2 sets of hostnames for openstack providerBogdan Dobrelya2017-12-111-5/+16
| | | | | | | | | | | | | Support private/public hostnames suffixes for DNS records. Real hostnames, Inventory variables, Nova servers and ansible hostnames will ignore the custom suffixes. Those are only for nsupdates sent to external DNS servers. Related change: add openshift_openstack_public_dns_domain to the role defaults to not rely on the group vars example only. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com> Co-authored-by: Tomas Sedovic <tsedovic@redhat.com>
* Cleanup byo referencesRussell Teague2017-12-082-3/+3
|
* Include Deprecation: Convert to import_playbookRussell Teague2017-12-073-6/+6
|
* Merge pull request #6361 from mtnbikenc/consolidate-deploy-clusterScott Dodson2017-12-071-5/+2
|\ | | | | Playbook Consolidation - byo/config.yml
| * Playbook Consolidation - byo/config.ymlRussell Teague2017-12-061-5/+2
| |
* | Merge pull request #6310 from tomassedovic/openstack-rhel-subscriptionMichael Gugino2017-12-072-21/+14
|\ \ | |/ |/| Optionally subscribe OpenStack RHEL nodes
| * Remove shell environment lookupTomas Sedovic2017-12-011-2/+2
| |
| * Optionally subscribe OpenStack RHEL nodesTomas Sedovic2017-11-292-21/+14
| |
* | Merge pull request #6340 from bogdando/openstack_cleanup_dnsScott Dodson2017-12-062-64/+6
|\ \ | | | | | | Cleanup not required dns bits
| * | Fix and cleanup not required dns bitsBogdan Dobrelya2017-12-052-64/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Do not manage hostnames for openstack cloud provider, let cloud-init to do its job. * Make python-dns / dnspython dependency check conditional. * Drop not used dns node flavor and image. * Do not manage dns nodes and sec groups in heat stacks. * Keep supporting dynamic updates for private DNS records, yet only limited to an external DNS managed elsewhere (not deployed by the openshift_openstack provider). So users may still benefit from this feature, sending nsupdates to private and public servers as they want it. * Fix openstack default for external nsupdate keys. It should be undefined by default as the dns-populate logic is based on that. * Fix dns records generation for openstack provider's populate-dns * Update docs
* | | Remove all references to pacemaker (pcs, pcsd) and ↵Andrew Butcher2017-12-052-2/+0
|/ / | | | | | | | | | | | | openshift.master.cluster_method. With pacemaker removed there is no longer a need for openshift.master.cluster_method. We only have one option.
* | Merge pull request #6341 from bogdando/openstack_cleanup_staticMichael Gugino2017-12-052-86/+0
|\ \ | | | | | | Cleanup unused openstack provider code
| * | Cleanup unused openstack provider codeBogdan Dobrelya2017-12-042-86/+0
| | | | | | | | | | | | | | | | | | | | | Remove references for bastion, ssh UI tunnek and static inventory. Update docs. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
* | | Document testing repos for dev purposesBogdan Dobrelya2017-12-052-2/+8
| | | | | | | | | | | | Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
* | | Use openshift testing repos for openstackBogdan Dobrelya2017-12-042-1/+2
|/ / | | | | | | | | | | | | | | Use testing openshift repos to sidestep packaging issues for 3.6 clients being used in 3.7 deployments or something. Poke host requirements Centos 7.4 as 7.3 can't see that testing repo. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
* | Update the doc textTomas Sedovic2017-11-292-5/+6
| |
* | Use IP addresses for OpenStack nodesTomas Sedovic2017-11-285-78/+44
|/ | | | | | | | | | | | | Unlike other cloud providers, OpenStack VMs are not able to resolve each other by their names. If you try to run the playbooks against nodes without a pre-created /etc/hosts or a DNS that provides the hostname/ip resolution, it will fail. By setting the `openshift_hostname` variable to each node's IP address, we're able to deploy a functional cluster without running a custom DNS. It is still possible to provide an external server with nsupdate keys and have it be populated, but that is no longer a hard requirement.
* Fix openstack initRussell Teague2017-11-162-8/+3
|
* Namespace the docker volumesTomas Sedovic2017-11-071-7/+7
|
* Namespace the OpenStack varsTomas Sedovic2017-11-075-104/+104
| | | | | This makes sure that all the variables used in the `openshift_openstack` role are prefixed with `openshift_openstack_` as is the convention.
* Add the DNS updates and rename the openstack varsTomas Sedovic2017-11-075-27/+46
| | | | | Most of the vars in `roles/openshift_openstack/defaults/main.yml` are now prefixed with `openstack_`.
* Remove the static_inventory and bastion samplesTomas Sedovic2017-11-071-19/+0
| | | | | These options will have no effect until we add static inventory and bastion support back in.
* Use the existing ansible.cfg fileTomas Sedovic2017-11-072-32/+7
|
* Use correct host group in provision.ymlTomas Sedovic2017-11-071-1/+1
|
* Remove the post-install and scale-up playbooksTomas Sedovic2017-11-072-127/+0
| | | | | They're not necessary for the initial PR so let's add them properly later.
* Remove the openstack custom-actions for nowTomas Sedovic2017-11-074-128/+0
| | | | | | | | They're duplicating a lot of functionality that's already in openshift-ansible and they're not actually used from the provisioning playbooks. We'll revisit them later.
* Add openshift_openstack role and move tasks thereTomas Sedovic2017-11-0719-533/+118
| | | | | | | | | All the tasks that were previously in playbooks are now under `roles/openshift_openstack`. The `openshift-cluster` directory now only contains playbooks that include tasks from that role. This makes the structure much closer to that of the AWS provider.
* Use the docker-storage-setup roleTomas Sedovic2017-11-071-1/+3
|
* Update readmeTomas Sedovic2017-11-071-17/+8
|
* Update lookup plugins pathTomas Sedovic2017-11-071-1/+1
|
* Move the OpenStack playbooksTomas Sedovic2017-11-0725-0/+2139
| | | | | We move them from `playbooks/provisioning/openstack` to `playbooks/openstack` to mirror `playbooks/aws`.
* Remove unsupported playbooks and utilitiesRussell Teague2017-08-2513-1061/+0
|
* add etcd scaleup playbookjawed2017-06-151-0/+2
|
* Fix cluster creation with `bin/cluster` when there’s no glusterfs nodeLénaïc Huard2017-04-191-0/+2
|
* Port 10255 unnecessary. Removing all instancesChris Callegari2017-04-041-10/+0
|
* Add calico.Dan Osborne2017-03-231-0/+1
|
* Document playbook directoriesRodolfo Carvalho2017-01-131-0/+4
|
* YAML LintingRussell Teague2016-12-124-26/+28
| | | | | * Added checks to make ci for yaml linting * Modified y(a)ml files to pass lint checks
* Removed verify_ansible_version playbook refsRussell Teague2016-12-081-2/+0
|
* Fix the list done after cluster creation on libvirt and OpenStackLénaïc Huard2016-11-241-0/+12
| | | | | | | | | | | | | | | | | | | The `list.yml` playbooks are using cloud provider specific variables to find the IPs of the VMs since 82449c6. Those “cloud provider specific” variables are the ones provided by the dynamic inventories. But there was a problem when the `list.yml` playbooks are invoked from the `launch.yml` ones because, in that case, the inventory is not coming from the dynamic inventory scripts, but from the `add_host` done inside `launch_instances.yml`. Whereas the GCE and AWS `launch_instances.yml` were correctly adding in the `add_host` the variables used by `list.yml`, libvirt and OpenStack were missing that. Fixes #2856