Skip to content

Instantly share code, notes, and snippets.

kenyon@lithium ~/git/puppet-smokeping (master|u+2) % ruby --version
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux-gnu]
kenyon@lithium ~/git/puppet-smokeping (master|u+2) % bundle install
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "puppet-modulebuilder":
In snapshot (Gemfile.lock):
kenyon@lithium ~/git/modulesync_config ((9.5.0)) % bundle exec msync update --verbose --filter puppet-usbguard --message "modulesync $(git describe)"
kenyon@lithium ~/git/modulesync_config ((9.5.0)) % bundle exec msync clone --verbose --filter puppet-usbguard
kenyon@lithium ~/git/modulesync_config ((9.5.0)) % bundle exec msync
Commands:
msync clone # Clone repositories that need to
msync execute [OPTIONS] -- COMMAND.. # Execute the command in each managed modules
msync help [COMMAND] # Describe available commands or one specific command
msync hook # Activate or deactivate a git hook.
msync push # Push all available commits from branch to remote
msync reset # Reset local repositories to a well-known state
@kenyon
kenyon / get_puppet_enterprise.rb
Created July 2, 2025 00:17
get_puppet_enterprise
#!/usr/bin/ruby
# frozen_string_literal: true
# This script downloads the given version of Puppet Enterprise and agent repo
# packages to our repo location. Releases: https://www.puppet.com/releases
# Command line arguments: <PE version> <primary server Ubuntu version> [agent version]
# Example: get_puppet_enterprise 2025.3.0 24.04
# Example with agent version: get_puppet_enterprise 2025.4.0 24.04 8.13.1
kenyon@iMac ~/git/puppet-systemd (master|u=) % bundle exec rspec spec/unit/puppet/provider/loginctl_user/ruby_spec.rb
FF..
Coverage Report:
Total resources: 0
Touched resources: 0
Resource coverage: 100.00%
Dec 04 11:42:02 lithium puppet-agent[205096]: Catalog compiled by lithium.kenyonralph.com
Dec 04 11:42:07 lithium puppet-agent[205096]: (/Stage[main]/Docker::Repos/Apt::Source[docker]/Apt::Keyring[docker.asc]/File[/etc/apt/keyrings/docker.asc]/content) content changed '{mtime}2025-12-03 04:42:10 -0800' to '{mtime}2025-12-04 13:35:33 UTC'
Dec 04 11:42:10 lithium puppet-agent[205096]: (/Stage[main]/Puppetdb::Database::Postgresql/Postgresql::Server::Db[puppetdb]/Postgresql::Server::Role[puppetdb]/Postgresql_psql[CREATE ROLE puppetdb ENCRYPTED PASSWORD ****]/command) changed [redacted] to [redacted]
Dec 04 11:42:10 lithium puppet-agent[205096]: (/Stage[main]/Puppetdb::Database::Postgresql/Postgresql::Server::Db[puppetdb]/Postgresql::Server::Role[puppetdb]/Postgresql_psql[ALTER ROLE "puppetdb" NOSUPERUSER]/command) command changed 'notrun' to 'ALTER ROLE "puppetdb" NOSUPERUSER' (corrective)
Dec 04 11:42:10 lithium puppet-agent[205096]: (/Stage[main]/Puppetdb::Database::Postgresql/Postgresql::Server::Db[puppetdb]/P