Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose loadfile_name option to mod::python class #1663

Merged
merged 1 commit into from
Dec 20, 2017
Merged

Expose loadfile_name option to mod::python class #1663

merged 1 commit into from
Dec 20, 2017

Conversation

traylenator
Copy link
Contributor

This is a work around to a particular clash between these
two lines.

class{'apache::mod::python':}
class{'collectd::plugin::python':}

Both classes create a file resource file{'python.load':}

This patch allows the resource name to be configured for
apache::mod::python setup.

There is an altenative more perfect solution to use a better
more unique name space by default e.g file{"apache_${_loadfile_name}: but this
would touch so many test files....

This change is fully backwards compatible.

@tphoney
Copy link
Contributor

tphoney commented Aug 2, 2017

This seems like a reasonable workaround for the issue. Should this be documented ?

This is a work around to a particular clash between these
two lines.

```puppet
class{'apache::mod::python':}
class{'collectd::plugin::python':}
```

Both classes create a file resource `file{'python.load':}`

This patch allows the resource name to be configured for
`apache::mod::python` setup.

There is an altenative more perfect solution to use a better
more unique name space by default e.g `file{"apache_${_loadfile_name}:` but this
would touch so many test files....

This change is fully backwards compatible.

* [collectd::plugin::python](https://github.com/voxpupuli/puppet-collectd/blob/master/manifests/plugin.pp#L16)
@traylenator
Copy link
Contributor Author

Docs and rebased.

@david22swan david22swan merged commit 67b9e1e into puppetlabs:master Dec 20, 2017
cegeka-jenkins pushed a commit to cegeka/puppet-apache that referenced this pull request Jul 15, 2020
Expose loadfile_name option to mod::python class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants