-
Notifications
You must be signed in to change notification settings - Fork 124
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
Conversation
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.
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.
Currently only works on Postgres.
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.
All parts are now working - server, agent and web install from packages. Only tested on CentOS 6.3 for now. |
sorry my bad |
I'm busy going through the installation on Ubuntu 12.04 LTS using this branch. Notes so far:
|
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 more PR is better than none. |
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.2node['zabbix']['agent']['install_method'] = 'package'
-- install agent via packagenode['zabbix']['server']['install_method'] = 'package'
-- install server via packagenode['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 Postgresqlzabbix-agent
-- Zabbix agent from packagezabbix-src-agent
-- Zabbix agent from sourceAlso updated Berksfile to do the following:
yum
version earlier than 3.0 due to breaking changes in the yum cookbook (this should be updated to useyum_epel
insteadpostgresql
to 3.2.0, due to Cookbook fails on CentOS 6.4 due to package 'libpq-dev' sous-chefs/postgresql#94php_fpm
from a different provider until Wrong includes directory in php_fpm.conf after vagrant install yevgenko/cookbook-php-fpm#26 is fixed