saltstack-formulas / mongodb-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
31 stars 121 forks source link

PPA instalation doesn't work on Debian 8 #26

Closed bogdanr closed 8 years ago

bogdanr commented 8 years ago
b-demo-dev-database:
----------
          ID: mongodb_package
    Function: pkgrepo.managed
        Name: deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/stable main
      Result: False
     Comment: Failed to configure repo 'deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/stable main': W: Failed to fetch http://repo.mongodb.org/apt/debian/dists/jessie/mongodb-org/stable/main/binary-amd64/Packages  404  Not Found

              E: Some index files failed to download. They have been ignored, or old ones used instead.
     Started: 14:36:48.904270
    Duration: 2411.306 ms
     Changes:   
----------
          ID: mongodb_package
    Function: pkg.installed
        Name: mongodb
      Result: False
     Comment: An error was encountered while installing package(s): W: Failed to fetch http://repo.mongodb.org/apt/debian/dists/jessie/mongodb-org/stable/main/binary-amd64/Packages  404  Not Found

              E: Some index files failed to download. They have been ignored, or old ones used instead.
     Started: 14:36:52.242940
    Duration: 10214.351 ms
     Changes:   
----------
gravyboat commented 8 years ago

Looks like the mongodb repo doesn't have support for anything other than wheezy: http://repo.mongodb.org/apt/debian/dists/. Additionally when I look here: https://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian/ it appears they don't support anything past Wheezy? If so you'll have to install the wheezy package. This means a modification to the formula here: https://github.com/saltstack-formulas/mongodb-formula/blob/master/mongodb/init.sls#L13

Edit: I'd like to close this unless you feel like it should remain open to create a workaround. This is really a problem the mongodb maintainers should fix.

bogdanr commented 8 years ago

I would expect the packet from Wheezy to work sub-optimally because the init scripts are not 100% compatible.

gravyboat commented 8 years ago

I'm not disagreeing with you at all, I'm just saying that right now mongo doesn't have an official Jessie package so that's the only workaround I can think of.