example42 / tinydata

Tiny Data for Tiny Puppet & C.
7 stars 12 forks source link

mongodb 4.4 fails on Debian11 #46

Closed florusboth closed 2 years ago

florusboth commented 2 years ago

Expected Behavior

Mongodb-server is installed on Debian 11

Actual Behavior

change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install mongodb-server' returned 100: Reading package lists... Building dependency tree... Reading state information... Package mongodb-server is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'mongodb-server' has no installation candidate

Steps to Reproduce the Problem

Use tp::install {'mongodb'}

Specifications

I found that when you add the repo by hand using the instructions from Mongo, the repo looks like this:

fb:~$ cat /etc/apt/sources.list.d/mongodb-org.list deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main

but TP installs:

fb:~$ cat /etc/apt/sources.list.d/mongodb-org-4.4.list

File Managed by Tiny Puppet

deb http://repo.mongodb.org/apt/debian bullseye main

I made a PR to fix this.

Please add this info:

  1. Output of facter -p on the failing node (at least the OS related facts)
  2. Version of Puppet and of the module
  3. The relevant Puppet code and eventually Hiera data