ziggy
10/05/2022, 5:59 PMziggy
10/05/2022, 6:00 PMziggy
10/05/2022, 6:08 PMramindk
10/05/2022, 6:09 PMclass dc_agent(
String[1] $src_file,
) {
file { $src_file: }
if $facts['os']['family'] include ['Debian',RedHat'] {
contain dc_agent::linux
} else {
contain dc_agent::windows
}
class dc_agent::linux {
# linux specific thigns here
}Slackbot
10/05/2022, 6:26 PMWilliam Myers
10/05/2022, 6:26 PMnatemccurdy
10/05/2022, 6:27 PMinit.pp is only declared if you explicitly declare it with something like the include function.ramindk
10/05/2022, 6:38 PMziggy
10/05/2022, 6:45 PMmodule_foo::name:
cats: 'bar'
I want to pull that in a class:
$hiera_key = 'cats'
foo = $module::name::$hiera_key
How can I assign foo like that? Puppet doesnt seem to let meziggy
10/05/2022, 6:45 PMmodule_foo::name:
cats: 'bar'
I want to pull that in a class:
$hiera_key = 'cats'
foo = $module_foo::name::$hiera_key
How can I assign foo like that? Puppet doesnt seem to let meAndrew
10/05/2022, 6:48 PM/etc/sysconfig/puppet . im just wondering how it works if i add to this file with puppet also. would a run need to complete before the variables are present or is there some other way to configure env vars for a puppet run?William Myers
10/05/2022, 7:12 PMnatemccurdy
10/05/2022, 7:13 PMinit.pp for a second…. Look at the name of the class defined in init.ppnatemccurdy
10/05/2022, 7:14 PMinit.pp for a second…. Look at the name of the class defined in init.ppWilliam Myers
10/05/2022, 7:14 PMWilliam Myers
10/05/2022, 7:14 PMclass puppetagent(Slackbot
10/05/2022, 9:11 PMglee
10/05/2022, 9:18 PMWilliam Myers
10/05/2022, 10:24 PMWilliam Myers
10/05/2022, 10:24 PMWilliam Myers
10/05/2022, 10:26 PMnatemccurdy
10/05/2022, 10:29 PMnatemccurdy
10/05/2022, 10:34 PMr10k.
https://puppet.com/docs/pe/2021.7/managing_puppet_code.html
This guide covers a lot of these topics, but leans heavily into the Puppet Enterprise features and its code deployment tool called “Code Manager”. However, the basic concepts of using a control repository, how to organize it, and how to deploy one apply to both open-source and Enterprise.Slackbot
10/05/2022, 10:40 PMCorporate Gadfly
10/05/2022, 11:12 PMGustavo Homem
10/06/2022, 12:54 AMsameer
10/06/2022, 6:34 AMsameer
10/06/2022, 7:17 AMsameer
10/06/2022, 7:17 AMSlackbot
10/06/2022, 9:04 AM