Skip to content

etc/dd-agent should be ensured to be a directory not merely present#332

Merged
truthbk merged 2 commits intoDataDog:masterfrom
butangero:master
Jun 16, 2017
Merged

etc/dd-agent should be ensured to be a directory not merely present#332
truthbk merged 2 commits intoDataDog:masterfrom
butangero:master

Conversation

@butangero
Copy link
Copy Markdown
Contributor

If the agent_version is set to absent, the datadog-agent package doesn't get installed, thus /etc/dd-agent doesn't get created. This causes the file resource for /etc/dd-agent in init.pp to create it as an empty file instead of a directory. Because it's an empty file, further dependent resources like /etc/dd-agent/conf.d are unable to be created. By ensuring it's a directory, even if the package version is set to absent, you'll still get clean puppet runs.

…ectory

init.pp should ensure that /etc/dd-agent is a directory, not just ensure present
@truthbk truthbk added this to the 1.11.0 milestone Jun 16, 2017
@truthbk
Copy link
Copy Markdown
Member

truthbk commented Jun 16, 2017

Thank you @butangero nice catch! This is absolutely correct, merging. 🙇

@truthbk truthbk merged commit efccc9a into DataDog:master Jun 16, 2017
cegeka-jenkins pushed a commit to cegeka/puppet-datadog_agent that referenced this pull request Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants