Skip to content

Instantly share code, notes, and snippets.

{"versions": [{"component": "core", "version": "3.49.10", "package": "pulpcore", "module": "pulpcore.app", "domain_compatible": true}, {"component": "certguard", "version": "3.49.10", "package": "pulpcore", "module": "pulp_certguard.app", "domain_compatible": true}, {"component": "file", "version": "3.49.10", "package": "pulpcore", "module": "pulp_file.app", "domain_compatible": true}, {"component": "rpm", "version": "3.26.1", "package": "pulp-rpm", "module": "pulp_rpm.app", "domain_compatible": true}, {"component": "python", "version": "3.11.1", "package": "pulp-python", "module": "pulp_python.app", "domain_compatible": false}, {"component": "deb", "version": "3.2.0", "package": "pulp_deb", "module": "pulp_deb.app", "domain_compatible": false}, {"component": "container", "version": "2.20.1", "package": "pulp-container", "module": "pulp_container.app", "domain_compatible": false}, {"component": "ansible", "version": "0.21.6", "package": "pulp-ansible", "module": "pulp_ansible.app", "domain_compatible": false}
class puppet_bootstrap::facter (
Optional[Array[String]] $blocklist = undef,
Optional[Array[String]] $cachelist = undef,
String $cache_ttl = '1 day',
) {
# individual facts can only be blocklisted in puppet 7
if versioncmp(fact('aio_agent_version'),'7') >= 0 {
file { '/etc/puppetlabs/facter':
ensure => directory,
}
First time catalog fails with duplicates, which is correct
2024-03-02T18:32:35.183Z ERROR [qtp1418147654-50] [puppetserver] Puppet The key '["IDTokenEncryptedResponseAlg"]' is declared more than once (file: /etc/puppetlabs/code/environments/board/modules/apache/types/oidcsettings.pp, line: 41, column: 57) on node puppet.localdomain
2024-03-02T18:32:35.186Z ERROR [qtp1418147654-50] [puppetserver] Puppet Server Error: The key '["IDTokenEncryptedResponseAlg"]' is declared more than once (file: /etc/puppetlabs/code/environments/board/modules/apache/types/oidcsettings.pp, line: 41, column: 57) on node puppet.localdomain
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/issue_reporter.rb:62:in `assert_and_report'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/evaluating_parser.rb:108:in `assert_and_report'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/parser/evaluating_parser.rb:27:in `parse_string'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/type_definition_insta
{"pulp_tasks"=>
[{"pulp_href"=>"/pulp/api/v3/tasks/2eb0bfe1-5234-4c5c-946b-3b1819e427ae/",
"pulp_created"=>"2020-12-01T18:01:08.485+00:00",
"state"=>"failed",
"name"=>"pulp_rpm.app.tasks.synchronizing.synchronize",
"started_at"=>"2020-12-01T18:01:08.599+00:00",
"finished_at"=>"2020-12-01T18:01:08.764+00:00",
"error"=>
{"traceback"=>
" File \"/usr/lib/python3.6/site-packages/rq/worker.py\", line 936, in perform_job\n" +
Error:
Katello::Errors::CandlepinError
Runtime Error RESTEASY003210: Could not find resource for full path: https://localhost:8443/candlepin/owners/INDG/products/134658521864/content/ at org.jboss.resteasy.core.registry.SegmentNode.match:153
---
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.0/app/lib/actions/middleware/propagate_candlepin_errors.rb:21:in
`rescue in propagate_candlepin_errors'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.0/app/lib/actions/middleware/propagate_candlepin_errors.rb:18:in
Oct 6 20:18:12 foreman pulp: kombu.transport.qpid:INFO: Connected to qpid with SASL mechanism ANONYMOUS
Oct 6 20:18:12 foreman pulp: celery.worker.strategy:INFO: Received task: pulp.server.async.tasks._queue_reserved_task[d9dc2e52-bfa4-4270-8a44-955bcc2539c6]
Oct 6 20:18:12 foreman pulp: celery.app.trace:INFO: [d9dc2e52] Task pulp.server.async.tasks._queue_reserved_task[d9dc2e52-bfa4-4270-8a44-955bcc2539c6] succeeded in 0.0140296690001s: None
Oct 6 20:18:12 foreman pulp: celery.worker.strategy:INFO: Received task: pulp.server.managers.repo.sync.sync[9ea0fbad-40d3-4d2e-b17f-a272de18bf6b]
Oct 6 20:18:12 foreman pulp: celery.worker.strategy:INFO: Received task: pulp.server.async.tasks._release_resource[bff0cb4d-1ede-4705-a736-2ba68b480ba8]
Oct 6 20:18:12 foreman pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [9ea0fbad] Downloading metadata from http://amazonlinux.us-east-1.amazonaws.com/2/core/latest/x86_64/mirror.list/.
Oct 6 20:18:12 foreman pulp: urllib3.connectionpool:INFO: Starting new HTTP connecti
@vchepkov
vchepkov / gist:dc6650aa54ad14140295e38437b03338
Last active March 4, 2020 18:31
puppetserver error after module upgrade on PE2019.3.0
2020-03-04T00:19:47.822Z WARN [qtp734700653-12660] [puppetserver] Puppet Overwriting previous definition for function pe_is_integer
2020-03-04T00:19:47.863Z ERROR [qtp734700653-12660] [puppetserver] Puppet Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Attempt to redefine entity 'http://puppet.com/2016.1/runtime/function/pe_is_integer'. Originally set /opt/puppetlabs/puppet/modules/puppet_enterprise/lib/puppet/parser/functions/pe_is_integer.rb. (file: /opt/puppetlabs/puppet/modules/puppet_enterprise/manifests/params.pp, line: 255, column: 8) on node fedora.chepkov.lan
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:125:in `fail_redefine'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/base_loader.rb:74:in `set_entry'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/module_loaders.rb:287:in `instantiate'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/loader/module_loade
class MCollective::Application::Facts<MCollective::Application
description "Reports on usage for a specific fact"
def post_option_parser(configuration)
configuration[:fact] = ARGV.shift if ARGV.size > 0
end
def validate_configuration(configuration)
raise "Please specify a fact to report for" unless configuration.include?(:fact)
end
@vchepkov
vchepkov / gist:fa0444881cd4aa61639eae1b5d86efe0
Created December 28, 2018 14:26
message file while upgrading mcollective_choria
Dec 28 00:59:43 master puppet-agent[6198]: Starting Puppet client version 5.5.8
Dec 28 01:00:15 master systemd-logind: Removed session 1.
Dec 28 01:00:15 master systemd: Removed slice User Slice of vagrant.
Dec 28 01:00:23 master puppet-agent[6211]: (/Stage[main]/R10k::Config/File[r10k.yaml]/content)
Dec 28 01:00:23 master puppet-agent[6211]: (/Stage[main]/R10k::Config/File[r10k.yaml]/content) --- /etc/puppetlabs/r10k/r10k.yaml#0112018-12-28 00:59:59.086000000 +0000
Dec 28 01:00:23 master puppet-agent[6211]: (/Stage[main]/R10k::Config/File[r10k.yaml]/content) +++ /tmp/puppet-file20181228-6211-1k0g9zf#0112018-12-28 01:00:23.826000000 +0000
Dec 28 01:00:23 master puppet-agent[6211]: (/Stage[main]/R10k::Config/File[r10k.yaml]/content) @@ -1,4 +1,5 @@
Dec 28 01:00:23 master puppet-agent[6211]: (/Stage[main]/R10k::Config/File[r10k.yaml]/content) ---
Dec 28 01:00:23 master puppet-agent[6211]: (/Stage[main]/R10k::Config/File[r10k.yaml]/content) +:postrun: ["/opt/puppetlabs/puppet/bin/generate-puppet-types.sh", "$mo
@vchepkov
vchepkov / ansible.cfg
Last active September 17, 2018 14:43
[defaults]
inventory = hosts
retry_files_enabled = False
host_key_checking = False