natemccurdy
10/06/2022, 11:39 PMtrace_enable is a parameter of the apache class: https://forge.puppet.com/modules/puppetlabs/apache/reference#trace_enable
To specify a parameter when declaring a class, you can’t use the include function. You need to declare the class using the “resource-like” syntax.
For example:
class { 'apache':
trace_enable => "off",
}William Myers
10/07/2022, 12:01 AMnatemccurdy
10/07/2022, 12:03 AMrequire <some_class> will automatically setup dependencies between the resources in <some_class> and the resources where <some_class> was declared so that <some_class> is enforced before the resources in the place where it was declared.natemccurdy
10/07/2022, 12:04 AM<some_class>. So it’s a declaration and the auto-setup of relationships.William Myers
10/07/2022, 12:05 AMnatemccurdy
10/07/2022, 12:05 AMnatemccurdy
10/07/2022, 12:06 AMWilliam Myers
10/07/2022, 12:32 AMWilliam Myers
10/07/2022, 12:32 AMWilliam Myers
10/07/2022, 12:33 AMsmortex
10/07/2022, 12:34 AMpurge_* parameters of the apache class. Generally a bad idea but when transitioning from managed by hand to managed by Puppet this can help 😉smortex
10/07/2022, 12:35 AMpurge_* parameters of the apache class. Generally a bad idea but when transitionning from manager by hand to managed by Puppet this can help 😉smortex
10/07/2022, 12:35 AMWilliam Myers
10/07/2022, 12:37 AMsmortex
10/07/2022, 12:37 AMpurge_* parameters of the apache class. Generally a bad idea but when transitioning from managed by hand to managed by Puppet this can help 😉William Myers
10/07/2022, 12:37 AMWilliam Myers
10/07/2022, 12:38 AMsmortex
10/07/2022, 12:39 AMpurge_vhost_dir set to false). And then replaced the Vhosts 1 by 1. And then re-enabled purging.smortex
10/07/2022, 12:40 AMpurge_vhost_dir set to false). And then replaced the Vhosts 1 by 1. And then re-enabled purging.William Myers
10/07/2022, 12:40 AMsmortex
10/07/2022, 12:41 AMWilliam Myers
10/07/2022, 12:41 AMWilliam Myers
10/07/2022, 12:42 AMWilliam Myers
10/07/2022, 12:42 AMWilliam Myers
10/07/2022, 12:43 AMnatemccurdy
10/07/2022, 12:45 AMwould best practice be to add the config for each host to modules/apache directlyNo. You must not modify the apache module itself. Consider that off limits, and treat it like an upstream library that you’re using…. not modifying. You’d add Vhost configurations to a different, app-specific module that declares
apache::vhost resources as needed.zipkid
10/07/2022, 7:12 AMbastelfreak
10/07/2022, 7:15 AMfe80
10/07/2022, 7:17 AMDr Bunsen Honeydew
10/07/2022, 7:17 AMchoria-mcollective module at https://forge.puppet.com/choria/mcollective?src=slack&channel=puppet