Skip to content

Commit

Permalink
Allow override of default runtime registry
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpspri committed Mar 9, 2018
1 parent 7bdb52b commit 1de490c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
11 changes: 1 addition & 10 deletions ansible/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,9 @@ whisk:
version:
date: "{{ansible_date_time.iso8601}}"

##
# list of supported runtimes (see whisk.core.entity.ExecManifest for schema).
# briefly:
# defaultImagePrefix: the default image prefix when not given explicitly
# defaultImageTag: the default image tag
# runtimes: set of language runtime families grouped by language (e.g., nodejs, python)
# blackboxes: list of pre-populated docker action images as "name" with optional "prefix" and "tag"
# bypassPullForLocalImages: optional, if true, allow images with a prefix that matches {{ docker.image.prefix }}
# to skip docker pull in invoker even if the image is not part of the blackbox set
#
runtimes:
manifest: "{{ runtimes_manifest | default(lookup('file', openwhisk_home ~ '/ansible/files/runtimes.json') | from_json) }}"
default_registry: "{{ runtimes_default_registry | default('docker.io') }}"
default_image_prefix: "{{ runtimes_default_image_prefix | default('openwhisk') }}"
default_image_tag: "{{ runtimes_default_image_tag | default('latest') }}"
bypass_pull_for_local_images: "{{ runtimes_bypass_pull_for_local_images | default(false) }}"
Expand Down
3 changes: 2 additions & 1 deletion ansible/roles/invoker/tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

- name: "pull runtime action and blackbox images"
vars:
image_prefix: "{{ item.prefix | default(runtimes.default_image_prefix) }}"
image_registry: "{{ item.registry | default(runtimes.default_registry) }}"
image_prefix: "{{ image_registry }}/{{ item.prefix | default(runtimes.default_image_prefix) }}"
image_tag: "{{ item.tag | default(runtimes.default_image_tag) }}"
docker_image:
state: present
Expand Down

0 comments on commit 1de490c

Please sign in to comment.