Steve Handy
12/28/2022, 10:14 PMSteve Handy
12/28/2022, 10:18 PMSteve Handy
12/28/2022, 10:18 PMSlackbot
12/29/2022, 11:20 AMvchepkov
12/29/2022, 1:28 PMLena Schneider
12/29/2022, 3:01 PMDr Bunsen Honeydew
12/29/2022, 9:45 PMSlackbot
12/29/2022, 10:41 PMMichael Phillips
12/30/2022, 3:29 PMMichael Phillips
12/30/2022, 3:29 PMMichael Phillips
12/30/2022, 3:30 PMSlackbot
12/30/2022, 8:53 PMChad Gorshing
12/30/2022, 8:53 PMSlackbot
01/02/2023, 8:59 PMsheikh
01/02/2023, 8:59 PM./puppet-agent.sh
Enter short message why are you disabling agent: for testing
The entered comment is : for testing
Enter date(yyyy-mm-dd) till agent will be disabled: 2023-01-03
Disabling reason is going to set as : root:2023-01-03:for testing
puppet agent is disabled
cat /opt/puppetlabs/puppet/cache/state/agent_disabled.lock
{"disabled_message":"root:2023-01-03:for testing"}[
The above script working as expected, user needs to enter comment and dateExpiry, if user didn't enter date then dateDefault set which is next day.
I would need two improvements or other script which checks, after dateExpiry (after next day) puppet agent enable automatically and other one liner command to set these two variables like comment and DateExpiry while executing script something like bash puppet-agent.sh comment="" DateExpiry=""
FYI: Puppet Agent is not running as service.
Or any other way or suggestion.Moe
01/03/2023, 1:15 PMpdk new class to add params . At least that's how I interpret the template. Anyone got any ideas?
/edit: Meh I found the issue where they say it got removed https://github.com/puppetlabs/pdk/issues/557Moe
01/03/2023, 1:15 PMpdk new class to add params . At least that's how I interpret the template. Anyone got any ideas?Moe
01/03/2023, 2:07 PMpdk new class to add params . At least that's how I interpret the template. Anyone got any ideas?
/edit: Meh I found the issue where they say it got removed https://github.com/puppetlabs/pdk/issues/557Moe
01/03/2023, 2:07 PMpdk new class to add params . At least that's how I interpret the template. Anyone got any ideas?
/edit: Meh I found the issue where they say it got removed https://github.com/puppetlabs/pdk/issues/557Slackbot
01/03/2023, 2:41 PMsheikh
01/03/2023, 3:18 PMDr Bunsen Honeydew
01/03/2023, 5:45 PMjosh
01/03/2023, 6:21 PMjosh
01/03/2023, 6:22 PMjosh
01/03/2023, 6:23 PMjosh
01/03/2023, 6:26 PMcanonicalize method in the `dsc_base_provider`: https://github.com/puppetlabs/ruby-pwsh/blob/998c9ea16ab21d0bd2d5546ea7ad7b867252d1e3/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb#L49Slackbot
01/04/2023, 2:55 PMSlackbot
01/04/2023, 4:14 PMBAlcorn
01/04/2023, 4:22 PMFacter.add(:authorization) do
confine :osfamily => 'Redhat'
setcode do
if ! system("/bin/grep idm /etc/krb5.conf > /dev/null")
if :operatingsystemrelease =~ /^8.*/ || :operatingsystemrelease =~ /^7.*/
'gaig_users'
else
'gaig_users_9'
end
else
'idm'
end
end
end
Anyone have any ideas? I've tried a bunch of things this morning, and just can't seem to get it to workJoel Wilson
01/04/2023, 4:26 PM