{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/puppet-elasticsearch/issues/534","labels_url":"https://api.github.com/repos/elastic/puppet-elasticsearch/issues/534/labels{/name}","comments_url":"https://api.github.com/repos/elastic/puppet-elasticsearch/issues/534/comments","events_url":"https://api.github.com/repos/elastic/puppet-elasticsearch/issues/534/events","html_url":"https://github.com/elastic/puppet-elasticsearch/issues/534","id":123457033,"number":534,"title":"Running puppet cause a 'new' instance of es to start every time","user":{"login":"jecnua","id":162194,"avatar_url":"https://avatars.githubusercontent.com/u/162194?v=3","gravatar_id":"","url":"https://api.github.com/users/jecnua","html_url":"https://github.com/jecnua","followers_url":"https://api.github.com/users/jecnua/followers","following_url":"https://api.github.com/users/jecnua/following{/other_user}","gists_url":"https://api.github.com/users/jecnua/gists{/gist_id}","starred_url":"https://api.github.com/users/jecnua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jecnua/subscriptions","organizations_url":"https://api.github.com/users/jecnua/orgs","repos_url":"https://api.github.com/users/jecnua/repos","events_url":"https://api.github.com/users/jecnua/events{/privacy}","received_events_url":"https://api.github.com/users/jecnua/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-12-22T10:43:25Z","updated_at":"2015-12-23T12:28:31Z","closed_at":null,"body":"After upgrading to 0.10.1 from 0.9.9 of this module I noticed that every time I run puppet, a new instance of es is started, LEAVING the old one running.\r\n\r\nUbuntu 14.04\r\nThis module version 0.10.1\r\nElasticSearch version to manage 2.1.1\r\n\r\nThis is what happens if I run ti twice:\r\n\r\n```\r\n$ ps aux | grep elastic\r\nelastic+  8486  1.7 42.3 14514548 6964492 ?    Sl   Dec21  18:21 /usr/bin/java -Xms10g -Xmx10g -Djava.awt.headless=true -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -Dfile.encoding=UTF-8 -Djna.nosys=true -Des.security.manager.enabled=false -Des.path.home=/usr/share/elasticsearch -cp /usr/share/elasticsearch/lib/elasticsearch-2.1.1.jar:/usr/share/elasticsearch/lib/* org.elasticsearch.bootstrap.Elasticsearch start -d -p /var/run/elasticsearch-elasticsearch-my-domain-name.pid -Des.default.path.home=/usr/share/elasticsearch -Des.default.path.logs=/var/log/elasticsearch/elasticsearch-my-domain-name -Des.default.path.data=/var/lib/elasticsearch-elasticsearch-my-domain-name -Des.default.path.work=/tmp/elasticsearch-elasticsearch-my-domain-name -Des.default.path.conf=/etc/elasticsearch/elasticsearch-my-domain-name\r\nelastic+  8546  1.4 42.3 14512632 6956960 ?    Sl   Dec21  15:49 /usr/bin/java -Xms10g -Xmx10g -Djava.awt.headless=true -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -Dfile.encoding=UTF-8 -Djna.nosys=true -Des.security.manager.enabled=false -Des.path.home=/usr/share/elasticsearch -cp /usr/share/elasticsearch/lib/elasticsearch-2.1.1.jar:/usr/share/elasticsearch/lib/* org.elasticsearch.bootstrap.Elasticsearch start -d -p /var/run/elasticsearch-elasticsearch-my-domain-name.pid -Des.default.path.home=/usr/share/elasticsearch -Des.default.path.logs=/var/log/elasticsearch/elasticsearch-my-domain-name -Des.default.path.data=/var/lib/elasticsearch-elasticsearch-my-domain-name -Des.default.path.work=/tmp/elasticsearch-elasticsearch-my-domain-name -Des.default.path.conf=/etc/elasticsearch/elasticsearch-my-domain-name\r\nubuntu   22555  0.0  0.0  10464   936 pts/0    R+   10:35   0:00 grep --color=auto elastic\r\n```\r\n\r\nAs you can notice there is the same reference to a pid file:\r\n\r\n```\r\n$ cat /var/run/elasticsearch-my-domain-name.pid\r\n8546\r\n```\r\nThat obviously refer to only one of the two.\r\nI tried to rollback to 0.9.9 but I had to give up becayse the plugin installation broke (since we know it changed).\r\n\r\nI can't unfortunately paste the debug puppet run since there is too much sensible data in there, but please if there is any way to help you guys pinpoint this problem please let me know.\r\n\r\nRegards,\r\nF."},"comment":{"url":"https://api.github.com/repos/elastic/puppet-elasticsearch/issues/comments/166881650","html_url":"https://github.com/elastic/puppet-elasticsearch/issues/534#issuecomment-166881650","issue_url":"https://api.github.com/repos/elastic/puppet-elasticsearch/issues/534","id":166881650,"user":{"login":"electrical","id":271677,"avatar_url":"https://avatars.githubusercontent.com/u/271677?v=3","gravatar_id":"","url":"https://api.github.com/users/electrical","html_url":"https://github.com/electrical","followers_url":"https://api.github.com/users/electrical/followers","following_url":"https://api.github.com/users/electrical/following{/other_user}","gists_url":"https://api.github.com/users/electrical/gists{/gist_id}","starred_url":"https://api.github.com/users/electrical/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electrical/subscriptions","organizations_url":"https://api.github.com/users/electrical/orgs","repos_url":"https://api.github.com/users/electrical/repos","events_url":"https://api.github.com/users/electrical/events{/privacy}","received_events_url":"https://api.github.com/users/electrical/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T12:28:31Z","updated_at":"2015-12-23T12:28:31Z","body":"Ahhh okay.\r\nWith ES 2.x the plugin versions are directly coupled to the ES version.\r\nI've built in the automatic upgrade but has only been implemented since version 0.10.0 of the puppet module.\r\nSo perhaps you could get rid of the custom thing?\r\n\r\nExample of the auto upgrade: https://github.com/elastic/puppet-elasticsearch/blob/master/spec/acceptance/021_es2x_spec.rb#L165-L212"}}