Mihai
02/01/2023, 11:11 AMMihai
02/01/2023, 11:11 AMMihai
02/01/2023, 11:11 AMMihai
02/01/2023, 11:13 AMMihai
02/01/2023, 11:14 AMMihai
02/01/2023, 11:14 AMMihai
02/01/2023, 11:15 AMSlackbot
02/01/2023, 11:15 AMSlackbot
02/01/2023, 11:17 AMcanihavethisone
02/01/2023, 11:19 AMif !($k in $valid_sections) {
fail("Invalid section '${k}' in '${key}' hash")
}canihavethisone
02/01/2023, 11:19 AMif !($k in $valid_sections) {
fail("Invalid section '${k}' in '${key}' array")
}helindbe
02/01/2023, 12:31 PMYury Bushmelev
02/01/2023, 12:54 PMSlackbot
02/01/2023, 12:58 PMBrian Schonecker
02/01/2023, 1:02 PMSlackbot
02/01/2023, 1:19 PMBAlcorn
02/01/2023, 1:32 PMfacter-p authorization returns gaig_users_9 as expected; however, when I run puppet agent -t that yaml file isn't being processed. See pic for hiera setup
Secondly, I'm declaring a second class in the init.pp for our gaig_users module (code snipped below). I don't know if perhaps this is what I'm doing wrong, and would appreciate anyone's input
class gaig_users_ldap::sssd (
Optional[String[1]] $simple_allow_user_list = undef,
) {
package { 'sssd-client':
ensure => 'present',
}
service { 'sssd':
ensure => 'running',
require => Package['sssd-client'],
}
$simple_allow_users = $gaig_users_ldap::sssd::simple_allow_user_list
file_line { 'sssd.conf for simple_allow_users':
ensure => present,
path => '/etc/sssd/sssd.conf',
line => "simple_allow_users = ${simple_allow_users}",
match => '^simple_allow_users',
notify => Service['sssd'],
require => Package['sssd-client'],
}
$ldap_user_defaults = {
ensure => present,
membership => 'inclusive',
}
create_resources('user', hiera_hash(ldap_users), $ldap_user_defaults)
}
I'm certain it worked at least once a few weeks ago, but since then, it's been a dead end.Slackbot
02/01/2023, 2:44 PMSlackbot
02/01/2023, 2:45 PMsheikh
02/01/2023, 2:48 PMbindkey "^D" echo 'Blocked. Please use [Ctrl]+[A] + [Ctrl]+[Enter] + [Y]'
bind "^M" quit
file {'/etc/screenrc':
ensure => 'file',
}
file_line {'':
path => '/etc/screenrc',
line => '',
require => File['/etc/screenrc'],
}sheikh
02/01/2023, 2:49 PMbindkey "^D" echo 'Blocked. Please use [Ctrl]+[A] + [Ctrl]+[Enter] + [Y]'
bind "^M" quit
How to adopt in below manifest file or any different way? Thanks
file {'/etc/screenrc':
ensure => 'file',
}
file_line {'':
path => '/etc/screenrc',
line => '',
require => File['/etc/screenrc'],
}Corporate Gadfly
02/01/2023, 3:04 PMfacts : {
blocklist : [
"file system",
"load_averages",
"identity",
"memory.system.capacity",
"memory.system.used*",
"memory.system.available*",
"memory.swap.capacity",
"memory.swap.used*",
"memory.swap.available*",
"system_uptime",
]
}
Hope that helps.Brian Schonecker
02/01/2023, 3:15 PMCorporate Gadfly
02/01/2023, 3:19 PM/etc/puppetlabs/facter/facter.conf to block unwanted facts:
facts : {
blocklist : [
"file system",
"load_averages",
"identity",
"memory.system.capacity",
"memory.system.used*",
"memory.system.available*",
"memory.swap.capacity",
"memory.swap.used*",
"memory.swap.available*",
"system_uptime",
]
}
Hope that helps.vchepkov
02/01/2023, 3:40 PMmountpoints./run*Slackbot
02/01/2023, 4:20 PMBrian Schonecker
02/01/2023, 4:22 PMspin
02/01/2023, 5:03 PMbastelfreak
02/01/2023, 5:08 PMBrian Schonecker
02/01/2023, 5:09 PM