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
processes-config.conf file is not created #926
Comments
Hi @paramite Just deciding how best to fix this, maybe you have some comment?
|
The fact that concat{'/tmp/file':
ensure => present,
}
concat::fragment{'a snippet':
content => 'foo',
target => '/tmp/file',
}
file{'/tmp/file':
ensure => absent,
} is a valid manifest and does not give a compile error is really undesirable. The above currently purges the file. |
This isn't much different to how a |
There was a name clash between: * Puppet created configuration file. * Package provided configuration file. Since a864d0d the collectd module on RedHat purges the package provided file file `/etc/collectd.d/processes-config.conf` The module was also creating this file with a concat and result was no file on system. To avoid the clash puppet now creates the file `processes_config.conf`. Note the `-` vs `_`. There is probably a cleaner fix to move all of the processes plugin configuration into the per module file `/etc/collect.d/10-processses.conf` as that would be more consistant with other simpler modules. This would be a change for every module however with `collectd::plugin` itself changing. Fixes voxpupuli#926
There was a name clash between: * Puppet created configuration file. * Package provided configuration file. Since a864d0d the collectd module on RedHat purges the package provided file file `/etc/collectd.d/processes-config.conf` The module was also creating this file with a concat and result was no file on system. To avoid the clash puppet now creates the file `processes_config.conf`. Note the `-` vs `_`. There is probably a cleaner fix to move all of the processes plugin configuration into the per module file `/etc/collect.d/10-processses.conf` as that would be more consistant with other simpler modules. This would be a change for every module however with `collectd::plugin` itself changing. Fixes voxpupuli#926
There was a name clash between: * Puppet created configuration file. * Package provided configuration file which was being purged. Since a864d0d the collectd module on RedHat purges the package provided file file `/etc/collectd.d/processes-config.conf` The module was also creating this file with a concat and result was no file on system. To avoid the clash puppet now creates the file `processes_config.conf`. Note the `-` vs `_`. There is probably a cleaner fix to move all of the processes plugin configuration into the per module file `/etc/collect.d/10-processses.conf` as that would be more consistant with other simpler modules using a single template rather than a concat. This would be a change for every module however with `collectd::plugin` itself changing. Fixes voxpupuli#926
I think you normally at least see puppet apply doing something in this case, you get an oscillation. With the above there is zero change when puppet apply so long as the file is not there. |
There was a name clash between: * Puppet created configuration file. * Package provided configuration file which was being purged. Since a864d0d the collectd module on RedHat purges the package provided file file `/etc/collectd.d/processes-config.conf` The module was also creating this file with a concat and result was no file on system. To avoid the clash puppet now creates the file `processes_config.conf`. Note the `-` vs `_`. There is probably a cleaner fix to move all of the processes plugin configuration into the per module file `/etc/collect.d/10-processses.conf` as that would be more consistant with other simpler modules using a single template rather than a concat. This would be a change for every module however with `collectd::plugin` itself changing. Fixes voxpupuli#926
There was a name clash between: * Puppet created configuration file. * Package provided configuration file which was being purged. Since a864d0d the collectd module on RedHat purges the package provided file file `/etc/collectd.d/processes-config.conf` The module was also creating this file with a concat and result was no file on system. To avoid the clash puppet now creates the file `processes_config.conf`. Note the `-` vs `_`. There is probably a cleaner fix to move all of the processes plugin configuration into the per module file `/etc/collect.d/10-processses.conf` as that would be more consistant with other simpler modules using a single template rather than a concat. This would be a change for every module however with `collectd::plugin` itself changing. Fixes voxpupuli#926
There was a name clash between: * Puppet created configuration file. * Package provided configuration file which was being purged. Since a864d0d the collectd module on RedHat purges the package provided file file `/etc/collectd.d/processes-config.conf` The module was also creating this file with a concat and result was no file on system. To avoid the clash puppet now creates the file `processes_config.conf`. Note the `-` vs `_`. There is probably a cleaner fix to move all of the processes plugin configuration into the per module file `/etc/collect.d/10-processses.conf` as that would be more consistant with other simpler modules using a single template rather than a concat. This would be a change for every module however with `collectd::plugin` itself changing. Fixes voxpupuli#926
There was a name clash between: * Puppet created configuration file. * Package provided configuration file which was being purged. Since a864d0d the collectd module on RedHat purges the package provided file file `/etc/collectd.d/processes-config.conf` The module was also creating this file with a concat and result was no file on system. To avoid the clash puppet now creates the file `processes_config.conf`. Note the `-` vs `_`. There is probably a cleaner fix to move all of the processes plugin configuration into the per module file `/etc/collect.d/10-processses.conf` as that would be more consistant with other simpler modules using a single template rather than a concat. This would be a change for every module however with `collectd::plugin` itself changing. Fixes voxpupuli#926
I don't understand what is wrong here. IIUC to have the processes-config.conf created you need to use collectd::plugin::processes with appropriate process_matches value, which IIUC you did not use, so it is kind of expected that the config is not created. |
Even with |
Ah got it. So where does the file resource with absent comes from? |
From the commit above: a864d0d it was added to stop default files form packages interfering. |
There was a name clash between: * Puppet created configuration file. * Package provided configuration file which was being purged. Since a864d0d the collectd module on RedHat purges the package provided file file `/etc/collectd.d/processes-config.conf` The module was also creating this file with a concat and result was no file on system. To avoid the clash puppet now creates the file `processes_config.conf`. Note the `-` vs `_`. There is probably a cleaner fix to move all of the processes plugin configuration into the per module file `/etc/collect.d/10-processses.conf` as that would be more consistant with other simpler modules using a single template rather than a concat. This would be a change for every module however with `collectd::plugin` itself changing. Fixes voxpupuli#926
@traylenator: Ah, now I understand why you pinged me regarding this :). So if we want to have the processes plugin config name consistent with the rest, then yes rename to something like -processes.conf should be a solution. If we want to keep the name, then probably adding |
The fix I prefer to this problem of package config vs puppet config is just to avoid the problem and |
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Apply manifest.
What are you seeing
The file
/etc/collectd.d/processes-config.conf
is not created.What behaviour did you expect instead
The file should I think be created with, certainly the metrics are not enabled.
Output log
Running
puppet agent -d | grep Proces
on above manifest.Any additional information you'd like to impart
Running a git bisect the behaviour changed with
a864d0d
The text was updated successfully, but these errors were encountered: