Skip to content
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

Add support for installing server and agent via official packages #127

Closed
wants to merge 17 commits into from
Closed

Add support for installing server and agent via official packages #127

wants to merge 17 commits into from

Conversation

iandelahorne
Copy link
Contributor

Added support for installing the server, database and agent agent via official packages from repo.zabbix.com.
Attributes:

  • node['zabbix']['major_version'] -- Major version to install packages from. Defaults to 2.2
  • node['zabbix']['agent']['install_method'] = 'package' -- install agent via package
  • node['zabbix']['server']['install_method'] = 'package' -- install server via package
  • node['zabbix']['server']['version'] = '2.2.1' -- Server package version (used for database SQL scripts)

Updated Vagrantfile to install server and agents via package as well as agent via source:

  • zabbix-server -- Zabbix server from package with Nginx and Postgresql
  • zabbix-agent -- Zabbix agent from package
  • zabbix-src-agent -- Zabbix agent from source

Also updated Berksfile to do the following:

To start both, run `vagrant up`. To start only the server, run `vagrant up
zabbix-server` and for the agent `vagrant up zabbix-agent`.
Supports both apt and yum. Set node['zabbix']['major_version'] for the major
version of Zabbix, default is 2.0.
Supports both apt and yum. Set node['zabbix']['major_version'] for the major
version of Zabbix, default is 2.0.
Rename service to make the zabbix::agent_package recipe cleaner, but still keep
backwards compatibility with the source install.
Install zabbix-agent package from the official Zabbix repository.
Set include dir to the default from the package.
@iandelahorne
Copy link
Contributor Author

This is somewhat work-in-progress, I'm working on getting the server working as well. Haven't really tried it on Ubuntu or Debian yet either, but it comes up correctly on CentOS.

This is to prepare for zabbix::server_package.rb
…lier versions

yum::epel doesn't exist any more, only LWRPs seem to exist. Depend on an
earlier version than 3.0.0.
…rlier yum version.

See sous-chefs/postgresql#94
Use earlier yum version as well due to yum::epel not existing in version 3.0.0
of yum cookbook.
The database packages for Zabbix install the SQL files necessary. Set
`package_install` in the arguments if using a package. The paths vary depending
on engine and version, making the `sql_path` argument necessary as well.
Setting `node['zabbix']['web']['install_package'] = true` will install from
package. This will include the database-specific (mysql or postgres) package
that installs the correct PHP dependencies, including database driver.
The username is case-sensitive in 2.2 apparently.
@iandelahorne
Copy link
Contributor Author

All parts are now working - server, agent and web install from packages. Only tested on CentOS 6.3 for now.

@guilhem
Copy link
Collaborator

guilhem commented Feb 6, 2014

sorry my bad

@guilhem guilhem reopened this Feb 6, 2014
@odyssey4me
Copy link

I'm busy going through the installation on Ubuntu 12.04 LTS using this branch.

Notes so far:

  1. The branch could do with a rebase;
  2. zabbix-frontend-php requires libapache2-mod-php5 in order to work;
  3. The mysql database resource and database recipe expects the schema, data and images sql imports to be in /usr/share/doc/zabbix-server-mysql-2.0.3/create whereas the package places them in /usr/share/zabbix-server-mysql;
  4. It'd be great if the package repo URL could be an attribute so that it could be overridden in order to use a local mirror.
  5. The package zabbix-sender should typically be installed on the agents too.
  6. The package zabbix-get should probably be installed on the server, and perhaps on the agents too.

@jespada
Copy link

jespada commented Jun 25, 2014

Guys I'm also interested in this branch, and I kinda agree with @odyssey4me comments, is there any plans on get this merged, I can patch if necessary whatever is missing

@jespada
Copy link

jespada commented Jul 29, 2014

I added support to install zabbix from package, from a custom repo, if you interested I can PR that change / @laradji

@guilhem
Copy link
Collaborator

guilhem commented Jul 29, 2014

@jespada more PR is better than none.
But we have to look on compatibility and tests. But let's talk about it on your future PR ;)

@jespada
Copy link

jespada commented Jul 30, 2014

@guilhem #179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants