|
...
|
...
|
@@ -99,18 +99,26 @@ Tested on Ubuntu 14.04. |
|
99
|
99
|
<td>Whether or not to include the recipe 'cfe-nginx-php-fpm::nginx'.</td>
|
|
100
|
100
|
<td><tt>true</tt></td>
|
|
101
|
101
|
</tr>
|
|
|
102
|
+ <tr>
|
|
|
103
|
+ <td><tt>['cfe-server']['monitor']['include_zabbix_agent']</tt></td>
|
|
|
104
|
+ <td>Boolean</td>
|
|
|
105
|
+ <td>Whether or not to include the recipe 'cookbook-zabbix::agent_package'.</td>
|
|
|
106
|
+ <td><tt>true</tt></td>
|
|
|
107
|
+ </tr>
|
|
102
|
108
|
</table>
|
|
103
|
109
|
|
|
104
|
110
|
## Usage
|
|
105
|
111
|
|
|
106
|
112
|
### Secret Data Bag
|
|
107
|
113
|
|
|
108
|
|
-A secret data bag named either `prod`, `staging`, or `dev` has to be created. In it should be an item named `cfe-server-secret` that contains two properties: `iptables_ssh_ports` and `iptables_add_rules`.
|
|
|
114
|
+A secret data bag named either `prod`, `staging`, or `dev` has to be created. In it should be an item named `cfe-server-secret` that contains the following properties:
|
|
109
|
115
|
|
|
110
|
116
|
`iptables_ssh_ports` is an array that contains ports to be used by sshd.
|
|
111
|
117
|
|
|
112
|
118
|
`iptables_add_rules` is an array of hashes that denote additional FILTER iptables rules to be created on the server. The hashes must conform to the format required by the cookbook `cfe-simple-iptables`.
|
|
113
|
119
|
|
|
|
120
|
+`ip_zabbix` is the IP addres of the Zabbix Monitoring Server.
|
|
|
121
|
+
|
|
114
|
122
|
Example:
|
|
115
|
123
|
```json
|
|
116
|
124
|
{
|
|
...
|
...
|
@@ -122,7 +130,8 @@ Example: |
|
122
|
130
|
"rule" : "--proto tcp --dport 8080",
|
|
123
|
131
|
"weight": 25
|
|
124
|
132
|
}
|
|
125
|
|
- ]
|
|
|
133
|
+ ],
|
|
|
134
|
+ "ip_zabbix": "1.2.3.4"
|
|
126
|
135
|
}
|
|
127
|
136
|
```
|
|
128
|
137
|
|
...
|
...
|
|