willmanio / sonarqube

SonarQube Chef Cookbook
https://supermarket.chef.io/cookbooks/sonarqube
7 stars 27 forks source link

Sonhrqube restarts with each Chef converge #17

Closed zanshin closed 7 years ago

zanshin commented 8 years ago

I'm using the sonarqube::default recipe to install Sonar along side our Jenkins installation. Every 15 minutes when the node converges, Sonar is restarted. I think the problem is here:

service 'sonarqube' do
  supports restart: true, reload: false, status: true
  action [:enable, :start]
end

Doesn't having :start in the action line cause it to start each time the node converged? Or am I missing something?

dschlenk commented 7 years ago

@zanshin what OS? I'm not seeing this problem in CentOS 6.8.

zanshin commented 7 years ago

The problem was related to Chef. The :start action causes the server to start when the recipe runs. And since Chef is configured to run every 15 minutes ...

PEBKAC.