diff options
author | Michael S. Pedersen <michaelx.pedersen@intel.com> | 2021-07-09 09:27:02 +0000 |
---|---|---|
committer | Rihab Banday <rihab.banday@ericsson.com> | 2021-07-19 11:39:29 +0000 |
commit | ee024a7e7763ff02bc76597dda432511c04a581e (patch) | |
tree | 4ff14fb89603cbe027a939a92fe9b271e10d9023 /sw_config/bmra/dockerhub_credentials | |
parent | df1f338d5b1a87f6f656a8b2c6695507e006477a (diff) |
Added support for Docker Hub credentials (CI)
When credentials are available on the Ansible host (/opt/kuberef/docker_config)
they will be added to the K8s nodes.
Also includes a minor change to increase the resources in the Kuberef VM
Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com>
Change-Id: I9acb0df97d2b423449ee57ae3d8241b2d9567ba2
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72768
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
Diffstat (limited to 'sw_config/bmra/dockerhub_credentials')
-rw-r--r-- | sw_config/bmra/dockerhub_credentials/tasks/main.yml | 8 | ||||
-rw-r--r-- | sw_config/bmra/dockerhub_credentials/vars/.gitignore | 0 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sw_config/bmra/dockerhub_credentials/tasks/main.yml b/sw_config/bmra/dockerhub_credentials/tasks/main.yml new file mode 100644 index 0000000..6531df8 --- /dev/null +++ b/sw_config/bmra/dockerhub_credentials/tasks/main.yml @@ -0,0 +1,8 @@ +--- +- name: Add Docker hub credentials on target nodes + docker_login: + username: "{{ dhub_user }}" + password: "{{ dhub_pass }}" + email: "{{ dhub_email }}" + registry_url: "{{ dhub_reg_url }}" + no_log: True diff --git a/sw_config/bmra/dockerhub_credentials/vars/.gitignore b/sw_config/bmra/dockerhub_credentials/vars/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/sw_config/bmra/dockerhub_credentials/vars/.gitignore |