Version information
released Sep 22nd 2013
Start using this module
Add this module to your Puppetfile:
mod 'fiddyspence-zabbix', '0.0.4'
Learn more about managing modules with a PuppetfileDocumentation
fiddyspence/zabbix — version 0.0.4 Sep 22nd 2013
This is the zabbix module
It uses https://github.com/vadv/zabbixapi to talk to the JSONRpc API presented by Zabbix, but I am going to change that soon.
It is currently only partially featured - it will install a zabbix server on EL, create hosts and hostgroups.
The Zabbix API is, I apologise for this, not awesome.
The base class will install a zabbix server, using either MySQL or Postgresql as the backend
Example usage for MySQL:
node 'zabbixmysql' inherits default {
class { 'zabbix': server => true, managedb => true, dbserver => 'mysql' }
Zabbix_host <<| |>>
}
Example usage for Postgres:
node 'zabbixpg' inherits default {
class { 'zabbix': server => true, managedb => true, dbserver => 'postgresql' }
Zabbix_host <<| |>>
}
node default {
# Export a host definition, to be imported by the zabbix server
@@zabbix_host { $::fqdn:
ensure => 'present',
groups => ['Linux servers','foogroup'],
interfaces => [ { type => 1, main => 1, ip => $::ipaddress, dns => $::fqdn, port => 10050, useip => 1 } ],
}
}
License
Apache 2.
Contact
Types in this module release
Dependencies
- puppetlabs/mysql (>= 0.9.0)
- puppetlabs/inifile (>= 1.0.0)
Copyright (C) 2013 fiddyspence cspence@puppetlabs.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.