-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
zabbixapi gem fails to install (ubuntu 14.04) #16
Comments
Hi Karolisc, This is difficult, I would use the But when I take a good look at the server.pp I noticed:
This is actually piece of code which should be done by the ruby module and not my zabbix module. I don't remember why I did this and not making the ruby module as required ... The ruby module is also only working on Debian and Red Hat, not on Ubuntu. As these are the 3 main operating systems the zabbix module supports, this is not an viable option... Kind regards, |
Hi Werner, I definitely agree with you that this should be a Lego blocks and the code should come from the ruby module.
It looks like it supports Ubuntu 10.04 and Ubuntu 14.04, curious what happened to 12.04. Btw. p.s. Karolis |
Hi Karolisc, Thanks for your clear and detailed answer. Will look into the ruby module. Can't promise it will be solved in the next few days (due to other (personal) stuff) but will look into it. Kind regards, |
Hi Werner, Before you made changes.... Some thoughts on the module future. https://puppetlabs.com/presentations/practical-guide-modules-lauren-rother-puppet-labs-morgan-haskel-puppet-labs Your thoughts? Karolis |
Hi Karolis, Thanks for this update. I wasn't aware of this. I switched jobs some weeks ago and the new job don't use Puppet but Ansible. So lately all time was getting to know Ansible and not working on Puppet stuff. I try to investigate this new roles & profiles this weekend and watch the video you provided. Do you think it is the correct way for puppet and the modules? Kind regards, |
Hi Werner, Sad to hear you are moving away from puppet. I just hope that the module won't be left unattended . I believe that roles & profiles, stacks 1 currently are the only way to move forward. The idea behind all of this is simple, add one or more higher layers of abstraction. If you look at modern applications all of them are some kind of application stack. So, with the above in mind I advocate to split current zabbix module into atomic zabbix module and another stacked-zabbix (profile) module. p.s. Karolis |
Hi Karolis, What you just described is one of the biggest advantages of using Ansible. I don't want to say that you should stop using Puppet and start using Ansible. First think I did with Ansible was creating an Zabbix role (Actually, now I have four.) but I discovered that there were some default plugins you could use (Like providers in Puppet). So with the database part (mysql or postgres) I was able to create databases and users with just 2 "tasks" (https://github.com/dj-wasabi/ansible-zabbix-server/blob/master/tasks/postgresql.yml):
This is the only part which I should care about with my Ansible role and which Postgres Ansible role the user wants to use is completely up to him (or her). With this in mind, I don't think Puppet will come even close to this, unless they create a lot of Providers within the puppet core like Ansible. Don't get me wrong about Puppet, it is still an very good tool and I do miss some very nice little features in Puppet which aren't available Ansible (Like purging directory which contains configuration files which are managed by Puppet: When I create an vhost in http/conf.d/ and do an Ansible run, this file stays here whereas Puppet will delete it if it notice that is not an Puppet controlled file). So I really like the idea that you can choose your own dependencies, but for now I use the puppetlabs modules for this module. Kind regards, p.s. Thanks! I'm not stopping with this module though, but the features/releases that I had planned will take some extra time now before getting release. This module is still: My Precious.. :-) |
I just released v1.0.0 now. It is fixed. |
Hi Werner,
After enabling manage_resources zabbixapi gem fails to install.
Error 1:
`require': no such file to load -- mkmf (LoadError)
from extconf.rb:36
Error 2:
Error: Could not update: Execution of '/usr/bin/gem install -v 2.4.0 --no-rdoc --no-ri zabbixapi' returned 1: Building native extensions. This could take a while...
ERROR: Error installing zabbixapi:
ERROR: Failed to build gem native extension.
creating Makefile
make
sh: 1: make: not found
The module misses these packages:
sudo apt-get install ruby1.9.1-dev
sudo apt-get install build-essential
The text was updated successfully, but these errors were encountered: