Commit 8330d3c3 by Ned Batchelder

Retry when getting mongo signing keys

parent 8defbfbb
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
id: "{{ MONGODB_APT_KEY }}" id: "{{ MONGODB_APT_KEY }}"
keyserver: "{{ MONGODB_APT_KEYSERVER }}" keyserver: "{{ MONGODB_APT_KEYSERVER }}"
state: present state: present
retries: 3
tags: tags:
- install:system-requirements - install:system-requirements
...@@ -74,7 +75,7 @@ ...@@ -74,7 +75,7 @@
tags: tags:
- scripts - scripts
- install:base - install:base
#These templates rely on there being a global #These templates rely on there being a global
# read_only mysql user, you must override the default # read_only mysql user, you must override the default
# in order for these templates to be written out. # in order for these templates to be written out.
...@@ -93,7 +94,7 @@ ...@@ -93,7 +94,7 @@
- scripts:mysql - scripts:mysql
- install:code - install:code
with_items: "{{ AD_HOC_REPORTING_REPLICA_DB_HOSTS }}" with_items: "{{ AD_HOC_REPORTING_REPLICA_DB_HOSTS }}"
# These templates rely on there being a global # These templates rely on there being a global
# read_only mongo user, you must override the default # read_only mongo user, you must override the default
# in order for these templates to be written out # in order for these templates to be written out
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
tags: tags:
- install - install
- install:base - install:base
- name: Remove mongo 2.4 if present - name: Remove mongo 2.4 if present
apt: apt:
pkg: mongodb-10gen pkg: mongodb-10gen
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
tags: tags:
- install - install
- install:base - install:base
- name: Install python pymongo for mongo_user ansible module - name: Install python pymongo for mongo_user ansible module
pip: pip:
name: pymongo name: pymongo
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
id: "{{ MONGODB_APT_KEY }}" id: "{{ MONGODB_APT_KEY }}"
keyserver: "{{ MONGODB_APT_KEYSERVER }}" keyserver: "{{ MONGODB_APT_KEYSERVER }}"
state: present state: present
retries: 3
tags: tags:
- install - install
- install:base - install:base
...@@ -149,7 +150,7 @@ ...@@ -149,7 +150,7 @@
- name: Wait for mongo server to start - name: Wait for mongo server to start
wait_for: wait_for:
port: 27017 port: 27017
delay: 2 delay: 2
tags: tags:
- manage - manage
...@@ -257,7 +258,7 @@ ...@@ -257,7 +258,7 @@
- install:configuration - install:configuration
- name: Schedule backup-mongo-to-3s crontab - name: Schedule backup-mongo-to-3s crontab
cron: cron:
name: "backup-mongo-to-s3" name: "backup-mongo-to-s3"
job: "/edx/bin/backup-mongo-to-s3.sh" job: "/edx/bin/backup-mongo-to-s3.sh"
backup: yes backup: yes
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
id: "{{ MONGODB_APT_KEY }}" id: "{{ MONGODB_APT_KEY }}"
keyserver: "{{ MONGODB_APT_KEYSERVER }}" keyserver: "{{ MONGODB_APT_KEYSERVER }}"
state: present state: present
retries: 3
tags: tags:
- "install" - "install"
- "install:app-requirements" - "install:app-requirements"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment