David Sandilands
01/18/2023, 1:12 PMMarty Ewings
01/18/2023, 1:37 PMMarty Ewings
01/18/2023, 1:37 PMSlackbot
01/18/2023, 1:40 PMNeeloj
01/18/2023, 1:41 PMconfig files, when I run puppet agent -t it overwrite my changes. so its possible to overwrite only the Bash files and not config files ? replace => false, its for all files so thats why I dont use it. thank you all
file { 'copy_check_test':
ensure => 'directory',
source => 'puppet:///modules/test_test',
path => '/etc/check_test',
}Neeloj
01/18/2023, 1:43 PMconfig files, when I run puppet agent -t it overwrite my changes. so its possible to overwrite only the Bash files and not config files ? replace => false, its for all files so thats why I dont use it. thank you all
file { 'copy_check_test':
ensure => 'directory',
source => 'puppet:///modules/check_test',
path => '/etc/check_test',
}Slackbot
01/18/2023, 2:01 PMtodd.seidenberg
01/18/2023, 3:23 PMClass['profiles::os::linux::groups']
->Class['profiles::os::linux::users']
->Class['profiles::os::linux::engops']
->Class['profiles::os::linux::dba']
->Class['profiles::os::linux::inops']
->Class['profiles::os::linux::dev']
->Class['profiles::os::linux::authorized_keys']
->Class['profiles::os::linux::wcis_directories']
####
# looks like `trust_the_ca` requires the `root` user that's defined in `linux::users` class.
Class['profiles::os::linux::users']
->Class['profiles::os::linux::trust_the_ca']
####
# this chain is for anything dependent on the certifiate authority.
# Puppet should be able to figure this out.
Class['profiles::os::linux::trust_the_ca']
->Class['profiles::os::linux::logicmonitor']
->Class['ivanti']
->Class['crowdstrike']
->Class['pinn_yubico']
->Class['profiles::os::linux::distro']todd.seidenberg
01/18/2023, 3:25 PMprofiles::os::linux::distro get applied BEFORE the resources for profiles::os::trust_the_catodd.seidenberg
01/18/2023, 3:25 PMtrust_the_ca to be applied first.todd.seidenberg
01/18/2023, 3:28 PMpuppet apply -t --debug i can see this:todd.seidenberg
01/18/2023, 3:31 PMDebug: /Stage[main]/Profiles::Os::Linux::Trust_the_ca/before: before to Class[Profiles::Os::Linux::Logicmonitor]
Debug: /Stage[main]/Ca_cert/File[trusted_certs]/notify: notify to Exec[ca_cert_update]
Debug: /Stage[main]/Profiles::Os::Linux::Trust_the_ca/Ca_cert::Ca[ad.company.com_ROOT_CA]/before: before to Ca_cert::Ca[ad.company.com_Intermediate_CA]
Debug: /Stage[main]/Profiles::Os::Linux::Trust_the_ca/Ca_cert::Ca[ad.company.com_Intermediate_CA]/before: before to Ca_cert::Ca[ad.company.com_General_CA]
Debug: /Stage[main]/Profiles::Os::Linux::Trust_the_ca/File[/opt/puppetlabs/puppet/ssl/certs]/notify: notify to Exec[rehash puppetlabs certs]
Which suggests that the trust_the_ca happens before. But the resources actually APPLIED are from that distro class.todd.seidenberg
01/18/2023, 3:31 PMtodd.seidenberg
01/18/2023, 3:32 PMClass['profiles::os::linux::groups']
->Class['profiles::os::linux::users']
->Class['profiles::os::linux::engops']
->Class['profiles::os::linux::dba']
->Class['profiles::os::linux::inops']
->Class['profiles::os::linux::dev']
->Class['profiles::os::linux::authorized_keys']
->Class['profiles::os::linux::wcis_directories']
####
# looks like `trust_the_ca` requires the `root` user that's defined in `linux::users` class.
Class['profiles::os::linux::users']
->Class['profiles::os::linux::trust_the_ca']
####
# this chain is for anything dependent on the certifiate authority.
# Puppet should be able to figure this out.
Class['profiles::os::linux::trust_the_ca']
->Class['profiles::os::linux::logicmonitor']
->Class['ivanti']
->Class['crowdstrike']
->Class['pinn_yubico']
->Class['profiles::os::linux::distro']vchepkov
01/18/2023, 3:35 PMprofiles::os::linux::distro applied ?todd.seidenberg
01/18/2023, 3:38 PMtodd.seidenberg
01/18/2023, 3:38 PMNotice: /Stage[main]/Profiles::Os::Linux::Distro::Redhat/Exec[grab_katello_from_foreftden01]/returns: executed successfullytodd.seidenberg
01/18/2023, 3:38 PMvchepkov
01/18/2023, 3:39 PMtodd.seidenberg
01/18/2023, 3:39 PMdistro::redhat class - which is included in the distro classtodd.seidenberg
01/18/2023, 3:39 PMdistro classvchepkov
01/18/2023, 3:39 PMtodd.seidenberg
01/18/2023, 3:39 PMdistro::redhat class - which is included in the distro classtodd.seidenberg
01/18/2023, 3:39 PMvchepkov
01/18/2023, 3:39 PMvchepkov
01/18/2023, 3:40 PMvchepkov
01/18/2023, 3:40 PMvchepkov
01/18/2023, 3:41 PMclass profile::os::linux::distro {
contain profile::os::linux::distro::redhatvchepkov
01/18/2023, 3:41 PMvchepkov
01/18/2023, 3:42 PM