Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mongodb client resolves to wrong package name #578

Open
KlavsKlavsen opened this issue Mar 24, 2020 · 2 comments
Open

mongodb client resolves to wrong package name #578

KlavsKlavsen opened this issue Mar 24, 2020 · 2 comments

Comments

@KlavsKlavsen
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.10.0
  • Distribution:centos 7
  • Module version: 3.1.0

How to reproduce (e.g Puppet code you use)

class {'mongodb::globals':
manage_package_repo => true,
version => '4.0',
}
-> class {'mongodb::client': }
-> class {'mongodb::server':
port => 27018,
verbose => true,
}

What are you seeing

Puppet agent tries to install using /bin/yum -d 0 -e 0 -y install mongodb-org-shell-4.0'
which obviously fails as package does not exist.

What behaviour did you expect instead

That package name would be "mongodb-org-shell" - not not "mongodb-org-shell-4.0".

Output log

Debug: Executing: '/bin/rpm -q mongodb-org-shell --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n''
Debug: Executing: '/bin/rpm -q mongodb-org-shell --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n' --whatprovides'
Debug: Executing: '/bin/yum -d 0 -e 0 -y install mongodb-org-shell-4.0'
Error: Could not update: Execution of '/bin/yum -d 0 -e 0 -y install mongodb-org-shell-4.0' returned 1: Error: Nothing to do
Error: /Stage[main]/Mongodb::Client/Package[mongodb_client]/ensure: change from purged to 4.0 failed: Could not update: Execution of '/bin/yum -d 0 -e 0 -y install mongodb-org-shell-4.0' returned 1: Error: Nothing to do

Any additional information you'd like to impart

@KlavsKlavsen
Copy link
Author

It does the same if I don't install mongodb::client - for the server.. it tries to install: mongodb-org-server-4.0

@KlavsKlavsen
Copy link
Author

Setting this in hieradata:
mongodb::repo::version: '4.0'

and NOT setting version in mongodb::globals - works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant