Skip to content

Commit 5ad5f87

Browse files
committed
Fix ganglia (gmond) start on alinux 2
Add also check on ganglia webpage Signed-off-by: Luca Carrogu <[email protected]>
1 parent 6263d4c commit 5ad5f87

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Alias /ganglia /usr/share/ganglia
2+
3+
<Directory "/usr/share/ganglia">
4+
AllowOverride All
5+
Require all granted
6+
</Directory>

recipes/_ganglia_install.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
mode '0644'
3131
end
3232

33-
if node['platform'] == 'centos' && node['platform_version'].to_i == 7
33+
if node['platform_family'] == 'rhel' && node['platform_version'].to_i == 7 || node['platform'] == 'amazon' && node['platform_version'].to_i == 2
3434
# Fix circular dependency multi-user.target -> cloud-init-> gmond -> multi-user.target
3535
# gmond is started by chef during cloud-init, but gmond service is configured to start after multi-user.target
3636
# which doesn't start until cloud-init run is finished. So gmond service is stuck into starting, which keep

recipes/tests.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@
191191
execute 'check gmetad running' do
192192
command gmetad_check_command
193193
end
194+
195+
execute 'check ganglia webpage' do
196+
command 'curl --silent -L http://localhost/ganglia | grep "<title>Ganglia"'
197+
end
194198
when 'ComputeFleet'
195199
execute 'check gmond running' do
196200
command gmond_check_command

0 commit comments

Comments
 (0)