Slackbot
09/30/2022, 8:29 PMnatemccurdy
09/30/2022, 8:32 PMpuppet resource user?
Also, where are you running this from? …how does this relate to Puppet? …are you trying to put this in a fact or something?Robert Vincent
09/30/2022, 8:41 PMpuppet resource user is that it doesn't distinguish between local and LDAP users. I only need the local ones. Don't want to run tens of thousands of LDAP queries per hour and definitely don't want to bloat puppetdb with the unnecessary info.natemccurdy
09/30/2022, 8:46 PMnatemccurdy
09/30/2022, 8:57 PMwindows_adsi provider for the user resource gave me an idea: https://github.com/puppetlabs/puppet/blob/main/lib/puppet/provider/user/windows_adsi.rb
Try something like this:
require 'puppet'
all_local_users = Puppet::Util::Windows::User.list_all()natemccurdy
09/30/2022, 8:58 PMRobert Vincent
09/30/2022, 8:58 PMrismoney
10/01/2022, 3:08 PMrismoney
10/01/2022, 4:10 PMJohn Howe
10/02/2022, 12:40 AMpre-commit hooks into my repo, and enabled puppet-lint using the Vox Pupuli recommended puppet-lint-* gems.
I got a bit of carping from puppet-lint-top_scope_facts-check.
In my earlier puppet journey, I placed our top org level facts in ~/manifests/site.pp as $gbl_* variables that I continue to reference in my codebase. ( collections of ipaddrs, FQDNs, CIDR ranges, groups of usernames ).
Having just written a bunch of # lint:ignore:top_scope_facts lines to get pre-commit to pass, I realize I need to refactor this beginner pattern of mine.
So looking for a best-practices recommendation here.
Thanks in advance 🙏🙇Yury Bushmelev
10/02/2022, 4:29 AMbastelfreak
10/02/2022, 8:06 AMYehuda Katz
10/02/2022, 4:31 PMYehuda Katz
10/02/2022, 4:35 PMvinod
10/03/2022, 5:50 AMInfo: Not using expired certificate for ca from cache; expired at 2022-09-27 17:54:39 UTC
Info: Not using expired certificate for ca from cache; expired at 2022-09-27 17:54:39 UTC
Info: Not using expired certificate for ca from cache; expired at 2022-09-27 17:54:39 UTC
Info: Not using expired certificate for ca from cache; expired at 2022-09-27 17:54:39 UTC
Error: Could not run: stack level too deep
we are using puppet version 4.10.12. I was trying to find the documentation regarding this version but could not find it. and googling also gives quite a different option. Does anyone have experience renewing CA certificate on this version?smortex
10/03/2022, 7:10 AMpuppet ca --help or something like that, but once a certificate is expired, it is "too late" to renew it: as the agent cannot reach the server anymore, you can't have it download the renewed certificate by having some code in the node catalog. You will have to deal with this situation on all concerned nodes of your fleet.smortex
10/03/2022, 7:12 AMpuppet ca list can tell you which certificates are expired / about to expireSlackbot
10/03/2022, 9:13 AMStefan Hristovski
10/03/2022, 10:15 AMSlackbot
10/03/2022, 11:00 AMrismoney
10/03/2022, 4:54 PMrismoney
10/03/2022, 4:58 PMSlackbot
10/03/2022, 5:00 PMvchepkov
10/03/2022, 5:00 PM--timing option, but it died with cfacterrismoney
10/03/2022, 5:08 PMrismoney
10/03/2022, 5:53 PMSlackbot
10/03/2022, 8:45 PMSlackbot
10/04/2022, 9:07 AMrunejuhl
10/04/2022, 9:32 AMpuppet/puppet-agent-ubuntu Docker image with moreutils installed and the following oneliner:
bash
( puppet apply -t --debug |& ts -i %.S ) <<EOF
class main() {
notify { 'omg': }
}
EOFrunejuhl
10/04/2022, 9:32 AMpuppet/puppet-agent-ubuntu Docker image with moreutils installed and the following oneliner:
sh
( puppet apply -t --debug |& ts -i %.S ) <<EOF
class main() {
notify { 'omg': }
}
EOF