File tree Expand file tree Collapse file tree 6 files changed +9
-8
lines changed Expand file tree Collapse file tree 6 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ cd <openwhisk_home>
215
215
cd ansible
216
216
ansible-playbook -i environments/<environment> initMongodb.yml -e mongodb_connect_string="mongodb://172.17.0.1:27017"
217
217
ansible-playbook -i environments/<environment> apigateway.yml -e mongodb_connect_string="mongodb://172.17.0.1:27017"
218
- ansible-playbook -i environments/<environment> openwhisk.yml -e mongodb_connect_string="mongodb://172.17.0.1:27017" -e database_backend ="MongoDB"
218
+ ansible-playbook -i environments/<environment> openwhisk.yml -e mongodb_connect_string="mongodb://172.17.0.1:27017" -e db_artifact_backend ="MongoDB"
219
219
220
220
# installs a catalog of public packages and actions
221
221
ansible-playbook -i environments/<environment> postdeploy.yml
Original file line number Diff line number Diff line change 256
256
port: "{{ db_port | default(lookup('ini', 'db_port section=db_creds file={{ playbook_dir }}/db_local.ini')) }}"
257
257
host: "{{ db_host | default(lookup('ini', 'db_host section=db_creds file={{ playbook_dir }}/db_local.ini')) }}"
258
258
persist_path: "{{ db_persist_path | default(false) }}"
259
- backend: "{{ database_backend | default('CouchDB') }}"
260
259
instances: "{{ groups['db'] | length }}"
261
260
authkeys:
262
261
- guest
275
274
invoker:
276
275
user: "{{ db_invoker_user | default(lookup('ini', 'db_username section=invoker file={{ playbook_dir }}/db_local.ini')) }}"
277
276
pass: "{{ db_invoker_pass | default(lookup('ini', 'db_password section=invoker file={{ playbook_dir }}/db_local.ini')) }}"
277
+ artifact_store:
278
+ backend: "{{ db_artifact_backend | default('CouchDB') }}"
278
279
activation_store:
279
280
backend: "{{ db_activation_backend | default('CouchDB') }}"
280
281
elasticsearch:
Original file line number Diff line number Diff line change 298
298
" CONFIG_whisk_mongodb_uri " : " {{ db.mongodb.connect_string }}"
299
299
" CONFIG_whisk_mongodb_database " : " {{ db.mongodb.database }}"
300
300
" CONFIG_whisk_spi_ArtifactStoreProvider " : " org.apache.openwhisk.core.database.mongodb.MongoDBArtifactStoreProvider"
301
- when : db.backend == "MongoDB"
301
+ when : db.artifact_store. backend == "MongoDB"
302
302
303
303
- name : merge mongodb artifact store env
304
304
set_fact :
305
305
env : " {{ env | combine(mongodb_env) }}"
306
- when : db.backend == "MongoDB"
306
+ when : db.artifact_store. backend == "MongoDB"
307
307
308
308
- name : populate volumes for controller
309
309
set_fact :
Original file line number Diff line number Diff line change 313
313
" CONFIG_whisk_mongodb_uri " : " {{ db.mongodb.connect_string }}"
314
314
" CONFIG_whisk_mongodb_database " : " {{ db.mongodb.database }}"
315
315
" CONFIG_whisk_spi_ArtifactStoreProvider " : " org.apache.openwhisk.core.database.mongodb.MongoDBArtifactStoreProvider"
316
- when : db.backend == "MongoDB"
316
+ when : db.artifact_store. backend == "MongoDB"
317
317
318
318
- name : merge mongodb artifact store env
319
319
set_fact :
320
320
env : " {{ env | combine(mongodb_env) }}"
321
- when : db.backend == "MongoDB"
321
+ when : db.artifact_store. backend == "MongoDB"
322
322
323
323
- name : include plugins
324
324
include_tasks : " {{ inv_item }}.yml"
Original file line number Diff line number Diff line change 28
28
user : " {{ dbUser }}"
29
29
password : " {{ dbPass }}"
30
30
force_basic_auth : yes
31
- when : db.backend == "CouchDB"
31
+ when : db.artifact_store. backend == "CouchDB"
32
32
33
33
# the collection in MongoDB doesn't need to be created in advance, so just skip it
34
34
# - name: check if {{ dbName }} on MongoDB exists
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ whisk {
14
14
WhiskActivation = "{{ db.whisk.activations }}"
15
15
}
16
16
}
17
- {% if db .backend == 'MongoDB' %}
17
+ {% if db .artifact_store . backend == 'MongoDB' %}
18
18
mongodb {
19
19
uri = "{{ db.mongodb.connect_string }}"
20
20
database = "{{ db.mongodb.database }}"
You can’t perform that action at this time.
0 commit comments