ignore empty mongodb repository gpgkey settings
This commit is contained in:
parent
a77efe008d
commit
e478f3c420
|
@ -1,8 +1,10 @@
|
||||||
[mongodb-org-{{ mongodb_version }}]
|
[mongodb-org-{{ mongodb_version }}]
|
||||||
name=MongoDB {{ mongodb_version }} Repository
|
name=MongoDB {{ mongodb_version }} Repository
|
||||||
baseurl={{ mongodb_repository[item] }}
|
baseurl={{ mongodb_repository[item] }}
|
||||||
gpgcheck={{ mongodb_repository_gpgkey[item] is defined | ternary(1,0) }}
|
{% if mongodb_repository_gpgkey[item] is defined and mongodb_repository_gpgkey[item] != '' %}
|
||||||
{% if mongodb_repository_gpgkey[item] is defined %}
|
gpgcheck=1
|
||||||
gpgkey={{ mongodb_repository_gpgkey[item] }}
|
gpgkey={{ mongodb_repository_gpgkey[item] }}
|
||||||
|
{% else %}
|
||||||
|
gpgcheck=0
|
||||||
{% endif %}
|
{% endif %}
|
||||||
enabled=1
|
enabled=1
|
||||||
|
|
Loading…
Reference in New Issue