mirror of https://github.com/ceph/ceph-ansible.git
ceph_custom_repo: define apt and rpm key for custom repo
This commit also remove the notify on new added debian repo,
force update_cache to yes and define sample ceph_custom_key vars.
Signed-off-by: Anthony Rusdi <33247310+antrusd@users.noreply.github.com>
(cherry picked from commit 4c592066b7
)
pull/5763/head
parent
df70345e6a
commit
46e4d2aeeb
|
@ -222,6 +222,7 @@ dummy:
|
||||||
# a URL to the .repo file to be installed on the targets. For deb,
|
# a URL to the .repo file to be installed on the targets. For deb,
|
||||||
# ceph_custom_repo should be the URL to the repo base.
|
# ceph_custom_repo should be the URL to the repo base.
|
||||||
#
|
#
|
||||||
|
#ceph_custom_key: https://server.domain.com/ceph-custom-repo-key.asc
|
||||||
#ceph_custom_repo: https://server.domain.com/ceph-custom-repo
|
#ceph_custom_repo: https://server.domain.com/ceph-custom-repo
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -222,6 +222,7 @@ ceph_iscsi_config_dev: false
|
||||||
# a URL to the .repo file to be installed on the targets. For deb,
|
# a URL to the .repo file to be installed on the targets. For deb,
|
||||||
# ceph_custom_repo should be the URL to the repo base.
|
# ceph_custom_repo should be the URL to the repo base.
|
||||||
#
|
#
|
||||||
|
#ceph_custom_key: https://server.domain.com/ceph-custom-repo-key.asc
|
||||||
#ceph_custom_repo: https://server.domain.com/ceph-custom-repo
|
#ceph_custom_repo: https://server.domain.com/ceph-custom-repo
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
---
|
---
|
||||||
|
- name: configure debian custom apt key
|
||||||
|
apt_key:
|
||||||
|
url: "{{ ceph_custom_key }}"
|
||||||
|
state: present
|
||||||
|
register: result
|
||||||
|
until: result is succeeded
|
||||||
|
when: ceph_custom_key is defined
|
||||||
|
|
||||||
- name: configure debian custom repository
|
- name: configure debian custom repository
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: "deb {{ ceph_custom_repo }} {{ ansible_distribution_release }} main"
|
repo: "deb {{ ceph_custom_repo }} {{ ansible_distribution_release }} main"
|
||||||
state: present
|
state: present
|
||||||
update_cache: no
|
update_cache: yes
|
||||||
notify: update apt cache if a repo was added
|
|
||||||
|
|
|
@ -1,4 +1,12 @@
|
||||||
---
|
---
|
||||||
|
- name: configure red hat custom rpm key
|
||||||
|
rpm_key:
|
||||||
|
key: "{{ ceph_custom_key }}"
|
||||||
|
state: present
|
||||||
|
register: result
|
||||||
|
until: result is succeeded
|
||||||
|
when: ceph_custom_key is defined
|
||||||
|
|
||||||
- name: configure red hat custom repository
|
- name: configure red hat custom repository
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ ceph_custom_repo }}"
|
url: "{{ ceph_custom_repo }}"
|
||||||
|
|
|
@ -214,6 +214,7 @@ ceph_iscsi_config_dev: true # special repo for deploying iSCSI gateways
|
||||||
# a URL to the .repo file to be installed on the targets. For deb,
|
# a URL to the .repo file to be installed on the targets. For deb,
|
||||||
# ceph_custom_repo should be the URL to the repo base.
|
# ceph_custom_repo should be the URL to the repo base.
|
||||||
#
|
#
|
||||||
|
ceph_custom_key: https://server.domain.com/ceph-custom-repo-key.asc
|
||||||
ceph_custom_repo: https://server.domain.com/ceph-custom-repo
|
ceph_custom_repo: https://server.domain.com/ceph-custom-repo
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue