summaryrefslogtreecommitdiffstats
path: root/utils/src/ooinstall/openshift_ansible.py
Commit message (Collapse)AuthorAgeFilesLines
* Removing a debug lineBrenton Leanhardt2015-11-241-1/+0
|
* atomic-openshift-installer: Fix lint issueSamuel Munilla2015-11-231-1/+1
|
* Handling preconfigured load balancersBrenton Leanhardt2015-11-231-3/+14
| | | | | | | | | | | | | | | | | | | | The preconfigured load balancers, previously denoted by having 'run_on' set to false, cannot have their facts gathered which results in a stack trace. Later when we write out the inventory we have to fake out the hostname and just use 'connect_to'. We're likely going to have the concept of other types of "plug-in" hosts where we don't run ansible. We should make sure we abstract this properly so it's easy to add additional types of hosts. Also in the commit: - Renamed 'run_on' to 'preconfigured' and inverted the logic as needed - Output tally of Masters and Nodes as well as remaining Masters required for HA - Minor rewording in a few places - Currently only prompting for the load balancer after all other hosts have been entered - Removed spurious echo
* atomic-openshift-installer: Rename ha_proxySamuel Munilla2015-11-231-1/+1
| | | | | Rename ha_proxy variables and methods to 'master_lb' to better future-proof things.
* Breakup inventory writingSamuel Munilla2015-11-231-16/+24
|
* atomic-openshift-installer: HA for quick installerSamuel Munilla2015-11-231-5/+31
| | | | This adds the ability to quickly set up a multi-master environment.
* Fix invalid sudo command testTakayoshi Kimura2015-11-161-1/+1
|
* atomic-openshift-installer: Update nopwd sudo testSamuel Munilla2015-11-121-1/+1
| | | | | This is an update to the no password sudo test meant to address some weirdness around group vs. user permissions.
* Refactor upgrade playbook(s)Jason DeTiberus2015-11-101-1/+3
| | | | | | | | | | | | | - Split playbooks into two, one for 3.0 minor upgrades and one for 3.0 to 3.1 upgrades - Move upgrade playbooks to common/openshift/cluster/upgrades from adhoc - Added a byo wrapper playbooks to set the groups based on the byo conventions, other providers will need similar playbooks added eventually - installer wrapper updates for refactored upgrade playbooks - call new 3.0 to 3.1 upgrade playbook - various fixes for edge cases I hit with a really old config laying around. - fix output of host facts to show connect_to value.
* atomic-openshift-installer: Generate inventory off hosts_to_run_onSamuel Munilla2015-11-091-1/+1
| | | | | This generates the ansible inventory based on the pruned list of non-installed hosts we've created rather than the full host list provided in installer.cfg.yaml
* Merge pull request #835 from brenton/masterBrenton Leanhardt2015-11-061-1/+1
|\ | | | | Updating the atomic-openshift-isntaller local connection logic for th…
| * Updating the atomic-openshift-isntaller local connection logic for the ↵Brenton Leanhardt2015-11-061-1/+1
| | | | | | | | connect_to addition.
* | Merge pull request #822 from detiber/upgradeFix2Brenton Leanhardt2015-11-061-19/+22
|\ \ | |/ |/| Upgrade enhancements
| * Upgrade improvementsDevan Goodwin2015-11-051-19/+22
| | | | | | | | | | | | | | | | | | | | - Push config dir logic out of module and use host variables instead. - Backup master config with ansible utility. - Add error handling for the upgrade config module. - Add verbose option to installer. - Return details on what we changed when upgrading config. - Cleanup use of first master. - Don't install upgrade rpms to check what version we'll upgrade to.
* | atomic-openshift-installer: Better specification of ansible connection pointSamuel Munilla2015-11-061-1/+1
|/ | | | | Changes to installer.cfg.yaml to allow for better defaults in unattended mode. Update example in the docs.
* Making it easier to use pre-release contentBrenton Leanhardt2015-11-051-10/+11
|
* Bug 1274201 - Fixing non-root installations if using a local connectionBrenton Leanhardt2015-11-051-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we were writing out a inventory like this: ~~~ [OSEv3:children] masters nodes [OSEv3:vars] ansible_ssh_user=root deployment_type=openshift-enterprise ansible_connection=local [masters] ose3-master.example.com openshift_hostname=ose3-master.example.com [nodes] ose3-master.example.com openshift_hostname=ose3-master.example.com ose3-node1.example.com openshift_hostname=ose3-node1.example.com ose3-node2.example.com openshift_hostname=ose3-node2.example.com ~~~ The problem with that is now all the hosts are consider local connections. In addition our sudo check wasn't working as expected. We would check that we have sudo, but the playbooks were not running with root privileges. When gathering facts you'd hit: ~~~ __main__.OpenShiftFactsFileWriteError: Could not create fact file: /etc/ansible/facts.d/openshift.fact, error: [Errno 13] Permission denied: '/etc/ansible/facts.d/openshift.fact' ~~~ Instead the test for locale connections needs to be per host. Anytime we're not running as root we need `ansible_become` set: ~~~ ose3-master.example.com openshift_hostname=ose3-master.example.com ansible_connection=local ansible_become=true ~~~
* Bug 1274201 - Fixing sudo non-interactive testBrenton Leanhardt2015-11-051-1/+1
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=1274201#c13
* Fix bug with not upgrading openshift-master to atomic-openshift-master.Devan Goodwin2015-11-041-0/+1
| | | | | | | | Removing the full call to config resulted in rpms not getting upgraded. Config was doing a yum update of everything, which picks up the atomic-openshift-master obsoleting openshift-master. The actual yum call changed here would not. Instead we switch to a direct call to yum which correctly picks up the obsoletes and updates to atomic-openshift packages.
* Merge remote-tracking branch 'upstream/master' into upgradeDevan Goodwin2015-11-031-1/+14
|
* ooinstall: Add check for nopwd sudoSamuel Munilla2015-11-031-1/+6
|
* ooinstall: Update local install checkSamuel Munilla2015-11-031-2/+2
| | | | | | Update to check both hostname and public_hostname. Remove ansible_sudo=no as I failed to notice we were already checking if ansible_ssh_user == 'root' and setting it there.
* oo-install: Support running on the host to be deployedSamuel Munilla2015-11-031-0/+7
| | | | | | | | | | This adds a check to see if the host the installer is running on is one of the hosts to be installed and sets i ansible_connection=local ansible_sudo=no in the inventory file.
* Rename install_transactions module to openshift_ansible.Devan Goodwin2015-11-021-0/+145