summaryrefslogtreecommitdiff
path: root/playbooks/provisioning
AgeCommit message (Collapse)Author
2017-08-04Allow using ephemeral volumes for docker storage (#615)Tomas Sedovic
For testing cases it's sometimes useful to not create Cinder volumes for the VMs. It can also sometimes be a little faster and more robust (but unfit for production). This adds an option called `ephemeral_volumes` that will use the VM's storage instead of creating volumes when set to true.
2017-08-04Remove clouds.yaml from sample-inventoryTomas Sedovic
With the move to the static inventory, we don't need it anymore so it's now just an unnecessary step in the deployment. Note that the users may still want to use clouds.yaml for openstack credentials instead of sourcing the `OS_*` environment variables, but they can do that at their discression. The reason we had the clouds.yaml here was because the `openstack.py` dynamic inventory used the servers' UUID's as ansible hosts by default and the options we put in caused it to use the hostnames (as desired).
2017-08-02Moving common DNS roles out of the playbook area (#605)Øystein Bedin
2017-07-28Merge pull request #591 from day4skiing/dnspri-wildcardBogdan Dobrelya
Add wildcard record for Private DNS
2017-07-28Note about jmespath requirement for control node (#599)Bogdan Dobrelya
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2017-07-26removed openstackDan Jurgensmeyer
2017-07-26Add wildcard pointer to Private DNSDan Jurgensmeyer
2017-07-25Options for bastion, SSH config, static inventory autogenerationBogdan Dobrelya
* 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>
2017-07-24README: Added note about infra-ansible installation (#574)Tlacenka
* README in provisioning: note about infra-ansible not updating versions if one exists * README in provisioning: minor change * README: improved readability
2017-07-20Static inventory autogeneration (#550)Bogdan Dobrelya
* 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>
2017-07-20Generate static inventory with shade inventory (#538)Bogdan Dobrelya
* Autogenerate inventory/hosts when 'inventory: static' (Default), with the shade-inventory tool. * Drop unused anymore: openstack.py and associated GPL notes, an example static inventory, omit manual updates for the inventory DNS names in the deployment guide. * Switch openstack.py formatted inventory hostvars to the shade-inventory format (omit openstack.* from hostvars). * Populate node labels from inventory vars instead of the heat templates combined with inventory vars. * Add app (k8s minions) nodes group for primary node labels. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2017-07-20Merge pull request #560 from Tlacenka/openstackrepoBogdan Dobrelya
Added prerequisity for python-openstackclient installation
2017-07-19Set ansible_become for the OSEv3 groupTomas Sedovic
Because openshift-ansible requires root on the cluster nodes, but it doesn't explicitly set it in the playbooks (like we do), let's set it in our inventory instead of requiring to pass `--become` to `ansible-playbook`. That will simplify the installation steps as well as let us include the provisioning and openshift-ansible playbooks in a single playbook.
2017-07-19README: fixKaterina Pilatova
2017-07-18README: typoKaterina Pilatova
2017-07-18dependencies: python-heatclient and python-openstackclient added to optional ↵Katerina Pilatova
dependencies
2017-07-18README: added prerequisity for a repository needed for ↵Katerina Pilatova
python-openstackclient installation
2017-07-14Set up NetworkManager automatically (#542)Tomas Sedovic
* Set up NetworkManager automatically This removes the extra step of running the `openshift-ansible/playbooks/byo/openshift-node/network_manager.yml` before installing openshift. In addition, the playbook relies on a host group that the provisioning doesn't provide (oo_all_hosts). Instead, we set up NetworkManager on CentOS nodes automatically. And we restart it on RHEL (which is necessary for the nodes to pick up the new DNS we configured the subnet with). This makes the provisioning easier and more resilient. * Apply the node-network-manager role to every node It makes the code simpler and more consistent across distros.
2017-07-12Switch the sample inventory to CentOS (#541)Tomas Sedovic
* Switch the sample inventory to CentOS This changes the image name and deployment types to use centos instead of rhel and sets `rhsm_register` to false. With these changes, the inventory should be immediately deployable using the default values (assuming the image, network and flavor names match). Ideally, the upstream CI will just end up using this inventory with little to no changes, too at some point. * Specify the origin openshift_release
2017-07-12Add defaults values for some openstack vars (#539)Tomas Sedovic
* Add defaults values for some openstack vars Ansible shows errors when the `rhsm_register` and `openstack_flat_secgrp` values are not present in the inventory even though they have sensible default values. This makes them both default to false when they're not specified. * Comment out the flat security group option in inv It's no longer required to be there so let's comment it out.
2017-07-12Install DNS roles from casl-infra with galaxy (#529)Bogdan Dobrelya
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2017-07-10Playbook prerequisites.yml checks that prerequisites are met before ↵Tlacenka
provisioning (#518) * prerequisites.yml: check prerequisites on localhost needed for provisioning provision.yml: includes prerequisites.yml * prerequisites: indentation fixed * prerequisites.yml: used ansible_version variable, openstack modules for ansible * prerequisites.yml: os_keypair is not suitable for this purpose * prerequisites.yml: openstack keypair command exchanged for shade - there is no Ansible module for this now - os_keypair is not suitable for this purpose - python-openstackclient dependency is not desirable
2017-06-30Merge pull request #525 from bogdando/manage_packagesTomas Sedovic
Manage packages to install/update for openstack provider
2017-06-30Persist DNS configuration for nodes for openstack providerBogdan Dobrelya
* 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>
2017-06-30Manage packages to install/update for openstack providerBogdan Dobrelya
Allow required packages and yum update all steps to be optionally disabled. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2017-06-29Fix yaml indentationTomas Sedovic
2017-06-29Use wait_for_connection for the Heat nodesTomas Sedovic
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.
2017-06-27README.md: fixing typoKaterina Pilatova
2017-06-27README.md: list jinja2 as a dependencyKaterina Pilatova
2017-06-26Merge pull request #491 from tzumainn/openstack-heat-stack-updateTomas Sedovic
Add node_removal_policies variable to openstack provisioning to allow for scaling down
2017-06-26Merge pull request #499 from Tlacenka/all_yml_remove_whitespaceTomas Sedovic
all.yml: removed whitespaces in front of variables
2017-06-23rename node_removal_policies, add some comments and defaultsTzu-Mainn Chen
2017-06-23all.yml: removed whitespaces in front of variablesKaterina Pilatova
2017-06-23Merge pull request #497 from Tlacenka/masterTomas Sedovic
OSEv3.yml: added option to ignore set hardware limits for RAM and DISK
2017-06-23Merge pull request #488 from bogdando/fix_flat_sgBogdan Dobrelya
Fix flat sec group and infra/dns sec rules
2017-06-23removed whitespace in front of commented variableKaterina Pilatova
2017-06-23OSEv3.yml: trailing space...Katerina Pilatova
2017-06-23OSEv3.yml: added option to ignore set hardware limits for RAM and DISKKaterina Pilatova
2017-06-23Fix flat sec group and infra/dns sec rulesBogdan Dobrelya
Make flat sec group to only merge node/master/etcd sec rules. Add basic dns/ssh sec group and assign it to all but dns node groups. Assign only dns sec group for dns nodes. Assign only infra (and basic) sec groups for ingra nodes. Add security notes for openstack provider. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2017-06-21Add node_removal_policies variable to allow for scaling downTzu-Mainn Chen
2017-06-21Use cached facts, do not become for localhost (#484)Bogdan Dobrelya
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>
2017-06-20Add profiling and skippy stdout (#470)Bogdan Dobrelya
Tune an example ansible.cfg to include tasks profiling info and improve displaying of skipped tasks. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2017-06-16Fix flake8 errors with the openstack inventoryTomas Sedovic
2017-06-16Fix yamllint errorsTomas Sedovic
2017-06-16Update sample inventory with the latest changesTomas Sedovic
2017-06-15Gather facts for provision playbookBogdan Dobrelya
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>
2017-06-15Drop atomic-openshift-utils, update docs for originBogdan Dobrelya
TODO use with when: ansible_distribution == 'CentOS' Also update docs for origin Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2017-06-15Add ansible.cfg for openstack providerBogdan Dobrelya
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2017-06-15Add a flat sec group for openstack providerBogdan Dobrelya
Add a openstack_flat_secgroup, defaults to False. When set, merges sec rules for master, node, etcd, infra nodes into a single group. Less secure, but might help to mitigate quota limitations. Update docs. Use timeout 30s to mitigate the error: Timeout (12s) waiting for privilege escalation prompt. Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2017-06-15Fix privileges in the pre-install playbookTomas Sedovic