- 25 Jan, 2016 5 commits
-
-
Do a bit more error checking before asking for the replica set. The new mongo play wants to be able to run this against an unconfigured Mongo to find out "Do you even have a replica set?" which this can now answer (the try/except portion). In the case where mongo was started without a replSet configured (or running getCmdLineOpts fails for an OperationFailure reason), we return a dictionary where status is not included to allow tasks to detect the failure. Unfortunately, Ansible doesn't provide an easy way to log back why you didn't get a replica set doc. Documentation improvements for this module Discusses the return values and some examples of checking them. Simplify get_replset If the find_one for a replset fails, just return None. We don't need to worry about getting back a dictionary which contains a 'config' key (presumably this is from an earlier iteration of the code which called getReplSetStatus which does act like that). Rather than raising the exception, use the friendly error here. I assume the raise/module.fail_json double header was leftover cruft from earlier development. Make the module work without rs being configured Initially, this module always tried to find and connect to a primary, however, during replica set initialization, there is no primary so we need to fall back to just connecting to the machine specified. This is detected by catching the replSetGetStatus failure and falling back to the bare get_client method which refactors the connection.
Kevin Falcone committed -
Remove check for mongo 2.4 since this is the mongo_3_0 role This was probably carried over from the mongo 2 role. I see no reason why mongo 2.x and mongo 3 couldn't coexist on the same machine. Remove old hugepages init script check This was probably added while we were still iterating on our mongo 3 deployment, but it should no longer be necessary. Clean up ansible syntax Don't move the old mongo data dirs This actually skips for edX because we provision machines that already have {{mongo_data_dir}} mounted on an external disk. However, for non-edX use, this could fail if you turn on WiredTiger since it will move mmapv1 files into the mongo_data_dir and then mongo will fail to start because it has been told to use WiredTiger. Don't make this a serial play We usually run this on 3 machines, so serial: 3 was equivalent to ansible's default of "run everything in parallel" but this causes problems if you ever run it on 4 like we do for prod envs. In addition, this prevents run_once from working properly, and there are a number of things we only one to do on one machine (like creating a superuser).
Max Rothman committed -
Max Rothman committed
-
Max Rothman committed
-
Now you can provide a (slightly simpler) cluster config and it'll idempotently make it so.
Max Rothman committed
-
- 21 Jan, 2016 3 commits
-
-
Specify queue to consume at worker startup
Renzo Lucioni committed -
Freeze pip, setuptools, and virtualenv
Fred Smith committed -
Pip 8.0.0, released a few hours ago, tries to uninstall deb-installed python modules that it wants to upgrade, and always fails when doing so. The effect is that configuration/requirements.txt cannot be fulfilled, notably ansible 1.9.3-edx, which requires an upgrade to pycrypto. This forces the installation of pip to the latest one prior to 8.0.0, 7.1.2. It also freezes setuptools and virtualenv, so that they should all match the current versions required on playbooks/roles/common_vars/defaults/main.yml:common_pip_pkgs.
Adolfo R. Brandes committed
-
- 20 Jan, 2016 2 commits
-
-
Renzo Lucioni committed
-
Alter pdf invoice vars.
Ned Batchelder committed
-
- 19 Jan, 2016 7 commits
-
-
roll back upgrade to 1.5 while we wait for forums
Fred Smith committed -
David Adams committed
-
add base configuration setting for commnuication with programs, organ…
Zubair Afzal committed -
This has started failing, experimenting.
Edward Zarecor committed -
Edward Zarecor committed
-
zubair-arbi committed
-
700 doesn't seem to match what Jenkins does.
Edward Zarecor committed
-
- 18 Jan, 2016 1 commit
-
-
ECOM-3455
zubair-arbi committed
-
- 15 Jan, 2016 1 commit
-
-
Check for file before altering
Edward Zarecor committed
-
- 14 Jan, 2016 4 commits
-
-
E0d/fix edxapp
Edward Zarecor committed -
Sandboxes for ecommerce don't pass along the scheme properly
Kevin Falcone committed -
Make include of generated make files silent
Calen Pennington committed -
Added E-Commerce API URL to course-disovery Django settings
Clinton Blackburn committed
-
- 13 Jan, 2016 14 commits
-
-
Edward Zarecor committed
-
Edward Zarecor committed
-
Clinton Blackburn committed
-
ECOM-2835
Clinton Blackburn committed -
This commit properly sets the X-Forwarded-Proto header so Django knows when a request originated as HTTPS. ECOM-2835
Clinton Blackburn committed -
The nginx config is only configured for prod (when it is behind an ELB and has http_x_forwarded headers). We want to pass along the NGINX headers too (mainly scheme) whcih is what the LMS/CMS does on sandboxes.
Kevin Falcone committed -
Calen Pennington committed
-
Add more documentation on specifics of our docker usage
Calen Pennington committed -
Calen Pennington committed
-
disable basic auth on course assets
Fred Smith committed -
Fred Smith committed
-
Edward Zarecor committed
-
Edward Zarecor committed
-
Edward Zarecor committed
-
- 12 Jan, 2016 3 commits
-
-
Stop looking for docker in our production boxes
Kevin Falcone committed -
This quiets a bunch of logging like error: Docker GET from 'http://localhost/info' failed
Kevin Falcone committed -
updated sandbox ami
Fred Smith committed
-