{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/657","repository_url":"https://api.github.com/repos/elastic/cookbook-elasticsearch","labels_url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/657/labels{/name}","comments_url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/657/comments","events_url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/657/events","html_url":"https://github.com/elastic/cookbook-elasticsearch/issues/657","id":316449439,"number":657,"title":"configuration not idempotent","user":{"login":"gevorg15","id":569622,"avatar_url":"https://avatars3.githubusercontent.com/u/569622?v=4","gravatar_id":"","url":"https://api.github.com/users/gevorg15","html_url":"https://github.com/gevorg15","followers_url":"https://api.github.com/users/gevorg15/followers","following_url":"https://api.github.com/users/gevorg15/following{/other_user}","gists_url":"https://api.github.com/users/gevorg15/gists{/gist_id}","starred_url":"https://api.github.com/users/gevorg15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gevorg15/subscriptions","organizations_url":"https://api.github.com/users/gevorg15/orgs","repos_url":"https://api.github.com/users/gevorg15/repos","events_url":"https://api.github.com/users/gevorg15/events{/privacy}","received_events_url":"https://api.github.com/users/gevorg15/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-21T01:14:56Z","updated_at":"2018-05-01T15:52:14Z","closed_at":null,"author_association":"NONE","body":"Having an issue with version 4.0.0 of the cookbook constantly deleting my config and re-creating it on each chef run.\r\n\r\nThe elasticsearch_install resource is whats deleting my config dir and then the elasticsearch_configure resource re-creates it.\r\n\r\nMy wrapper cookbook has an install recipe that just has the elasticsearch_install resource in there.  This is what my install recipe looks like.\r\n```# install from tarball\r\nelasticsearch_install 'elasticsearch' do\r\n  type 'tarball'\r\n  version node['elasticsearch']['version']\r\n  dir node['elasticsearch']['base_dir']\r\n  action :install\r\nend\r\n```\r\n\r\nIt is installing version 6.2.3 of elasticsearch.  This is the output from the chef run showing it deleting the config path.\r\n``` * elasticsearch_install[elasticsearch] action install\r\n    * ark[elasticsearch] action install (skipped due to not_if)\r\n    * directory[/opt/elasticsearch/elasticsearch/config] action delete\r\n      - delete existing directory /opt/elasticsearch/elasticsearch/config\r\n```\r\n\r\nAfter my install recipe runs, the configure recipe is executed which uses the elasticsearch_configure resource to configure the cluster.  \r\n\r\nWhy is the install resource deleting my config path?"},"comment":{"url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/comments/385706286","html_url":"https://github.com/elastic/cookbook-elasticsearch/issues/657#issuecomment-385706286","issue_url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/657","id":385706286,"user":{"login":"martinb3","id":103033,"avatar_url":"https://avatars0.githubusercontent.com/u/103033?v=4","gravatar_id":"","url":"https://api.github.com/users/martinb3","html_url":"https://github.com/martinb3","followers_url":"https://api.github.com/users/martinb3/followers","following_url":"https://api.github.com/users/martinb3/following{/other_user}","gists_url":"https://api.github.com/users/martinb3/gists{/gist_id}","starred_url":"https://api.github.com/users/martinb3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinb3/subscriptions","organizations_url":"https://api.github.com/users/martinb3/orgs","repos_url":"https://api.github.com/users/martinb3/repos","events_url":"https://api.github.com/users/martinb3/events{/privacy}","received_events_url":"https://api.github.com/users/martinb3/received_events","type":"User","site_admin":false},"created_at":"2018-05-01T15:52:14Z","updated_at":"2018-05-01T15:52:14Z","author_association":"CONTRIBUTOR","body":"Hi there -- are you declaring resources _and_ using a recipe?\r\n\r\nYour example isn't actually something that's runnable that shows the problem; it needs either some includes or more resources (elasticsearch_configure, elasticsearch_user, elasticsearch_service, etc)."}}
{"actor":{"display_login":"martinb3"}}