1. 21 Oct, 2014 2 commits
  2. 20 Oct, 2014 1 commit
  3. 29 Apr, 2014 1 commit
    • edx-west: use local temp dir for sockets and ansible cache · ca944f23
      I was having problems where concurrent installs could trample on each
      other.  The instance that immediately affected me was output caching
      from ec2.py: the output of that command is different between staging and
      prod, and both were being written to /tmp/ansible_ec2.cache and .index.
      
      Fix here is to write to a local temp directory.  This creates empty temp
      dirs to ensure that they are created in all repos.
      
      While less likely, you could have collisions on named ssh sockets.
      Those are named with just the instance name, which could be re-used
      across VPC's.  Putting those in the ./tmp dir too prevents that.
      
      Note that for consistency I did away with just the plain ec2.ini file,
      and instead now there are prod- and stage- variants.  This is clean but
      now means that you'll need to change your install command to look
      something like this:
      
          ANSIBLE_EC2_INI=prod-ec2.ini ANSIBLE_CONFIG=prod-ansible.cfg ansible-playbook -c ssh -u ubuntu -i ./ec2.py prod-app.yml
      
      Conflicts:
      
      	playbooks/edx-west/ansible.cfg
      Sef Kloninger committed
  4. 10 Mar, 2014 1 commit
  5. 07 Mar, 2014 2 commits
    • validate machine var, remove migrate_db prompt · 5cd56655
      Added a validation on the machine variable, expected to be passed in
      from the command line now, so that the worker play only works on
      machines named "util" and the app play on machines named "app".
      Otherwise it would be too easy to mix those up.
      
      Now that we're using -e command line options, it's easier to use this to
      specify the "modify_db" variable than prompt_vars.  Having every install
      block on this question before was such a hassle!  Now we just won't
      migrate unless you explicitly say so on the ansible command with
      "migrate_db=yes" or "migrate_only=yes".
      
      Conflicts:
      	playbooks/edx-west/carnegie-prod-app.yml
      	playbooks/edx-west/carnegie-prod-worker.yml
      	playbooks/edx-west/cme-prod-app.yml
      	playbooks/edx-west/cme-prod-worker.yml
      	playbooks/edx-west/stage-app.yml
      Sef Kloninger committed
    • edx-west: parameterize machine names in playbooks · 31913ab9
      Conflicts:
      	playbooks/edx-west/prod-app.yml
      	playbooks/edx-west/prod-worker.yml
      	playbooks/edx-west/stage-app.yml
      	playbooks/edx-west/stage-worker.yml
      Sef Kloninger committed
  6. 06 Mar, 2014 3 commits
  7. 27 Feb, 2014 1 commit
  8. 26 Feb, 2014 1 commit
  9. 05 Feb, 2014 1 commit
    • add users without sudo (gh_user_no_sudo) · fba3f8ea
      It's handy to be able to create users that *don't* have sudo rights.
      Here at Stanford we use this to add users to our VPC bastion box (ssh
      proxy) so these users can use this machine for ssh tunneling, but I
      don't want to give those users the keys to the kingdom.
      
      This let's me configure a playbook like this.
      
         roles:
           - common
           - supervisor
           - role: gh_users
             gh_users:
               - su1
               - su2
               - su3
             gh_users_no_sudo:
               - normal1
               - normal2
      
      The new gh_users_no_sudo list can be empty.
      Sef Kloninger committed
  10. 13 Jan, 2014 1 commit
  11. 03 Dec, 2013 1 commit
  12. 30 Nov, 2013 1 commit
  13. 04 Nov, 2013 1 commit
  14. 28 Oct, 2013 1 commit
  15. 11 Oct, 2013 2 commits
  16. 09 Oct, 2013 1 commit
  17. 03 Oct, 2013 1 commit
  18. 02 Oct, 2013 1 commit
  19. 27 Sep, 2013 1 commit
  20. 25 Sep, 2013 1 commit
  21. 24 Sep, 2013 2 commits
    • add forum notifier to prod and stage workers · a89df829
      removing git accounts for notifier repo, open now
      
      add datadog api key Since this file will be the model for others
      to use for their vars files, put in a placeholder DD api key, since
      it's required to be *something* currently.
      
      celerybeat wants to write its pidfile to ~notifier/src.  Not sure why
      the PID or CELERYD_PID_FILE environment variables don't correctly point
      it to /var/run/... but in the meantime, this should get us by.
      
      notifier: remove git_ssh wrapper not needed now that repo is public
      
      run notifier on first util machine only
      
      remove references to forums_digest.sh. File was a vestige of prior
      code when this was run from cron instead of celery beat.
      Sef Kloninger committed
  22. 23 Sep, 2013 1 commit
  23. 22 Sep, 2013 1 commit
  24. 20 Sep, 2013 1 commit
  25. 18 Sep, 2013 4 commits
  26. 17 Sep, 2013 1 commit
  27. 13 Sep, 2013 1 commit
  28. 10 Sep, 2013 4 commits