Merge pull request #101 from fnerdwq/master

ignore empty mongodb repository gpgkey settings
This commit is contained in:
Sergei Antipov 2018-06-27 22:01:53 -04:00 committed by GitHub
commit c7d03127cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,10 @@
[mongodb-org-{{ mongodb_version }}]
name=MongoDB {{ mongodb_version }} Repository
baseurl={{ mongodb_repository[item] }}
gpgcheck={{ mongodb_repository_gpgkey[item] is defined | ternary(1,0) }}
{% if mongodb_repository_gpgkey[item] is defined %}
{% if mongodb_repository_gpgkey[item] is defined and mongodb_repository_gpgkey[item] != '' %}
gpgcheck=1
gpgkey={{ mongodb_repository_gpgkey[item] }}
{% else %}
gpgcheck=0
{% endif %}
enabled=1