bastelfreak
10/06/2022, 7:19 PMMartin Merfort
10/06/2022, 7:19 PMbastelfreak
10/06/2022, 7:19 PM---
:cachedir: /opt/puppetlabs/puppet/cache/r10k
:sources:
puppet:
basedir: /etc/puppetlabs/code/environments
remote: git@github.com:bastelfreak/controlrepo.git
:deploy:
generate_types: true
puppet_path: "/usr/bin/puppet"
:pool_size: 4Dr Bunsen Honeydew
10/06/2022, 7:19 PMbastelfreak
10/06/2022, 7:20 PM/etc/puppetlabs/r10k/r10k.yamlMartin Merfort
10/06/2022, 7:21 PMMartin Merfort
10/06/2022, 7:23 PMbastelfreak
10/06/2022, 7:23 PMMartin Merfort
10/06/2022, 7:23 PMMartin Merfort
10/06/2022, 7:24 PMMartin Merfort
10/06/2022, 7:24 PMbastelfreak
10/06/2022, 7:24 PMLumiere
10/06/2022, 8:36 PMnatemccurdy
10/06/2022, 8:37 PMDr Bunsen Honeydew
10/06/2022, 8:45 PMWilliam Myers
10/06/2022, 11:28 PMWilliam Myers
10/06/2022, 11:28 PM# @summary A short summary of the purpose of this class
#
# A description of what this class does
#
# @example
# include phpipam_config::harden_apache
class phpipam_config::harden_apache {
include 'apache'
apache { 'harden':
trace_enable => off,
}
}William Myers
10/06/2022, 11:28 PMError: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Unknown resource type: 'apache' (file: /etc/puppetlabs/code/environments/production/modules/phpipam_config/manifests/harden_apache.pp, line: 10, column: 3) on node vmipam01.britanniahome.local
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping runWilliam Myers
10/06/2022, 11:30 PMnatemccurdy
10/06/2022, 11:34 PMapache { 'harden':
trace_enable => off,
}
Thereās no resource called apache, not even in the Apache module.William Myers
10/06/2022, 11:35 PMWilliam Myers
10/06/2022, 11:35 PMWilliam Myers
10/06/2022, 11:36 PMnatemccurdy
10/06/2022, 11:36 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/06/2022, 11:37 PMnatemccurdy
10/06/2022, 11:37 PMWilliam Myers
10/06/2022, 11:37 PM# @summary A short summary of the purpose of this class
#
# A description of what this class does
#
# @example
# include phpipam_config::harden_apache
class phpipam_config::harden_apache {
class { 'apache':
trace_enable => "off",
}
}William Myers
10/06/2022, 11:37 PMnatemccurdy
10/06/2022, 11:38 PMWilliam Myers
10/06/2022, 11:38 PM