GithubHelp home page GithubHelp logo

Comments (5)

malcyon avatar malcyon commented on June 12, 2024

That's a good point. I was just trying to make it work on Ubuntu 20.04. Maybe I tried to make it too smart. Maybe just letting people override the variable would be better.

On a fresh Ubuntu 20.04 VM, mongodb works and mongodb-org doesn't work.

vagrant@instance:~$ sudo apt-get install mongodb-org
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package mongodb-org
vagrant@instance:~$ sudo apt-get install mongodb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libboost-filesystem1.71.0 libboost-iostreams1.71.0 libboost-program-options1.71.0 libgoogle-perftools4 libpcrecpp0v5 libsnappy1v5
  libtcmalloc-minimal4 libyaml-cpp0.6 mongo-tools mongodb-clients mongodb-server mongodb-server-core
The following NEW packages will be installed:
  libboost-filesystem1.71.0 libboost-iostreams1.71.0 libboost-program-options1.71.0 libgoogle-perftools4 libpcrecpp0v5 libsnappy1v5
  libtcmalloc-minimal4 libyaml-cpp0.6 mongo-tools mongodb mongodb-clients mongodb-server mongodb-server-core
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 56.8 MB of archives.
After this operation, 234 MB of additional disk space will be used.
Do you want to continue? [Y/n] 

But I suppose if someone had another repo hooked up mongodb-org might potentially work and the code wouldn't be correct.

from graylog-ansible-role.

grzybniak avatar grzybniak commented on June 12, 2024

I added those variables to playbook:

    graylog_install_mongodb: True
    graylog_mongodb_version: 4.4
    graylog_mongodb_package_name: mongodb-org
    graylog_mongodb_service_name: mongod    

The role added a repo and I could install mongodb-repo:

root@graylog1 /etc/apt # cat sources.list.d/repo_mongodb_org_apt_ubuntu.list 
deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse
root@graylog1 /home/marcin # apt-cache policy mongodb-org
mongodb-org:
  Installed: 4.4.3
  Candidate: 4.4.3
  Version table:
 *** 4.4.3 500
        500 http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4/multiverse amd64 Packages
        100 /var/lib/dpkg/status
     4.4.2 500
        500 http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4/multiverse amd64 Packages
     4.4.1 500
        500 http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4/multiverse amd64 Packages
     4.4.0 500
        500 http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4/multiverse amd64 Packages

from graylog-ansible-role.

grzybniak avatar grzybniak commented on June 12, 2024

Default package for ubuntu mongodb: 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5 ( v3.6.9 ) is ok for graylog.
I wanted to run it on 4.2 or 4.4

from graylog-ansible-role.

malcyon avatar malcyon commented on June 12, 2024

In retrospect, it seems like it was a bad idea for me to provide a user-configurable variable and then override it with a static value in the code. What's weird is that, without that code, it fails for me if I set graylog_mongodb_version to 4.2, but it works fine if I set it to 4.4. There must be some renaming of things going on between versions. If anyone runs into this problem, they can just change those variables themselves.

@grzybniak Can you try it again with v3.3.1 of the role?

from graylog-ansible-role.

grzybniak avatar grzybniak commented on June 12, 2024

I could install whole stack without problems.
Thank you!

from graylog-ansible-role.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.