Marty Ewings
10/07/2022, 11:32 AMvchepkov
10/07/2022, 11:54 AMrismoney
10/07/2022, 2:31 PMrismoney
10/07/2022, 2:33 PMramnad
10/07/2022, 2:45 PMYorokobi
10/07/2022, 2:46 PMCVQuesty
10/07/2022, 3:14 PMIsaiah Frantz
10/07/2022, 4:15 PMIsaiah Frantz
10/07/2022, 4:22 PMramnad
10/07/2022, 5:05 PMGeorge
10/07/2022, 8:04 PM%YAML 1.1
on top of the file during converting datastructure to yaml by using:
content => $config.to_yaml,
Every time when it is being executed - it inserts %YAML 1.1 which breaks me syntaxSlackbot
10/07/2022, 8:05 PMnatemccurdy
10/07/2022, 8:11 PM%YAML 1.1George
10/07/2022, 8:17 PMWilliam Myers
10/07/2022, 9:24 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 {
# <https://github.com/puppetlabs/puppetlabs-apache/blob/main/REFERENCE.md>
class { 'apache':
mpm_module => false,
purge_configs => false,
# Misc config
log_level => 'info',
# Security Configuration
trace_enable => 'Off',
server_tokens => 'ProductOnly',
server_signature => 'Off',
limitreqfields => 100,
limitreqfieldsize => 1024,
# purge_vhost_dir => true,
}
class { 'apache::vhost':
limitreqline => 512,
limitreqbody => 102400,
}
}William Myers
10/07/2022, 9:25 PMnatemccurdy
10/07/2022, 9:40 PMapache::vhost isn’t a class, so you can’t declare it like a class.
apache::vhost is a “defined type”. You declare those as if they were a built-in Puppet resource. For example:
apache::vhost { 'some_title':
some_param => 'foo',
some_other_param => 'bar',
}
Docs: https://puppet.com/docs/puppet/7/lang_defined_types.html#lang_defined_types-declaring-defined-type-resourcesnatemccurdy
10/07/2022, 9:41 PMapache::vhost isn’t a class, so you can’t declare it like a class.
apache::vhost is a “defined type”. You declare those as if they were a built-in Puppet resource. For example:
apache::vhost { 'some_title':
some_param => 'foo',
some_other_param => 'bar',
}
Docs: https://puppet.com/docs/puppet/7/lang_defined_types.html#lang_defined_types-declaring-defined-type-resourcesexitnode
10/07/2022, 10:20 PMdeployment_tier or app_tier, but I see that pp_apptier exists now. Is that the intended place for those classifications like dev, prod, test, etc. to exist now?natemccurdy
10/07/2022, 10:25 PMpp_apptier is an attempt at standardizing on that fact name, but doing it via certificate extensions in the host’s Puppet cert. pp_apptier maps to a reserved OID field in the certificate’s extensions.
So pp_apptier is technically a trusted value in the $trusted hash, it’s not a fact.natemccurdy
10/07/2022, 10:26 PMpp_apptier trusted extension, it doesn’t matter…. what matters is that you’re doing it at all 🙂exitnode
10/07/2022, 10:36 PMpp_apptier is a good idea. Thanks for the input, I'm glad I noticed that value.William Myers
10/07/2022, 11:08 PMWilliam Myers
10/08/2022, 12:00 AMWilliam Myers
10/08/2022, 12:21 AMa2modWilliam Myers
10/08/2022, 12:22 AMGeorge
10/08/2022, 7:14 AMprofile::ipa_logs::config:
sources:
httpd_error_log:
type: file
include:
- /var/log/httpd/error_log
read_from: end
transforms:
filtering:
type: filter
inputs:
- httpd_error_log
condition: "'contains!(.message, \"<http://DOMAIN.IN|DOMAIN.IN>\")'"
this is a data.
Version is 8.2.0. I also tried with the latest version but same result.George
10/08/2022, 7:21 AMTamas Papp
10/08/2022, 10:37 AMTamas Papp
10/08/2022, 10:40 AM