-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial working cookbook that configures the VictorOps repository and…
… installs the `victorops-zabbix` packages The following platforms have been tested with Test Kitchen: - Ubuntu 12.04 - Ubuntu 14.04 - CentOs 6.6 - CentOs 7.1
- Loading branch information
Showing
6 changed files
with
119 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,7 @@ Gemfile.lock | |
bin/* | ||
.bundle/* | ||
|
||
# Test Kitchen | ||
.kitchen/* | ||
|
||
VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
driver: | ||
name: vagrant | ||
|
||
driver_config: | ||
require_chef_omnibus: true | ||
|
||
platforms: | ||
- name: ubuntu-12.04 | ||
- name: ubuntu-14.04 | ||
- name: centos-6.6 | ||
- name: centos-7.1 | ||
|
||
provisioner: | ||
name: chef_zero | ||
|
||
suites: | ||
- name: default | ||
run_list: | ||
- "recipe[victorops::default]" | ||
|
||
- name: zabbix | ||
run_list: | ||
- "recipe[victorops::zabbix]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,21 @@ | ||
# victorops-cookbook | ||
|
||
TODO: Enter the cookbook description here. | ||
VictorOps Cookbook | ||
===================== | ||
This cookbook configures the VictorOps repository on RHEL/Debian servers and | ||
can be used to install VictorOps packages such as Zabbix. | ||
|
||
## Supported Platforms | ||
|
||
TODO: List your supported platforms. | ||
|
||
## Attributes | ||
|
||
<table> | ||
<tr> | ||
<th>Key</th> | ||
<th>Type</th> | ||
<th>Description</th> | ||
<th>Default</th> | ||
</tr> | ||
<tr> | ||
<td><tt>['victorops']['bacon']</tt></td> | ||
<td>Boolean</td> | ||
<td>whether to include bacon</td> | ||
<td><tt>true</tt></td> | ||
</tr> | ||
</table> | ||
The following platforms have been tested with Test Kitchen: | ||
|
||
- Ubuntu 12.04 | ||
- Ubuntu 14.04 | ||
- CentOs 6.6 | ||
- CentOs 7.1 | ||
|
||
## Usage | ||
|
||
### victorops::default | ||
Configures the VictorOps repository on RHEL/Debian servers. | ||
|
||
Include `victorops` in your node's `run_list`: | ||
|
||
|
@@ -37,6 +27,34 @@ Include `victorops` in your node's `run_list`: | |
} | ||
``` | ||
|
||
### victorops::zabbix | ||
Installs the `victorops-zabbix` package (automatically includes/runs | ||
`victorops::default` first) | ||
|
||
Include `victorops::zabbix` in your node's `run_list`: | ||
|
||
```json | ||
{ | ||
"run_list": [ | ||
"recipe[victorops::zabbix]" | ||
] | ||
} | ||
``` | ||
|
||
## License and Authors | ||
|
||
Author:: Nick Henry (<[email protected]>) | ||
- Author:: Nick Henry (<[email protected]>) | ||
|
||
```text | ||
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. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# Cookbook Name:: victorops | ||
# Recipe:: zabbix | ||
# | ||
# Copyright (C) 2015 Nick Henry | ||
# | ||
# 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. | ||
# | ||
|
||
include_recipe 'victorops::default' | ||
|
||
package 'victorops-zabbix' |