Comments (5)
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.
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.
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.
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.
I could install whole stack without problems.
Thank you!
from graylog-ansible-role.
Related Issues (20)
- Elasticsearch fails on XPack setup HOT 1
- Missing support of Debian 10 HOT 1
- install graylog-ansible-role role fails on elastic.elasticsearch role HOT 3
- Update Nginx dependency HOT 2
- Issue "Detect if es_version is before X-Pack was open and included" HOT 3
- The 'graylog_mongodb_version' variable is not defined." HOT 4
- Physical Nodes Installation HOT 1
- Elasticsearch compatibillity HOT 1
- uppercase/lowercase of the role name HOT 1
- Elasticsearch autodiscovery decisions in role HOT 4
- default GRAYLOG_SERVER_JAVA_OPTS is wrong HOT 2
- Pass credentials of my own Elasticsearch and MongoDB server HOT 1
- Unable to setup graylog
- dashes in role names are not allowed by ansible HOT 3
- Branch rename in upstream elasticsearch HOT 2
- Proxy-Settings are written as comment into server.conf
- README.md Section Exmaple Playbook -Cluster pymongo
- Replace ElasticSearch Ansible Role HOT 4
- On Ubuntu 22 graylog-enterprise-integrations-plugins does not exist
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graylog-ansible-role.