Skip to content

Instantly share code, notes, and snippets.

View bschonec's full-sized avatar

Brian Schonecker bschonec

  • 03:29 (UTC -05:00)
View GitHub Profile
# frozen_string_literal: true
require 'spec_helper'
require 'facter'
require 'facter/application'
describe 'test Oracle region fact' do
# subject { Facter.fact(:region) }
ips = {
# frozen_string_literal: true
require 'spec_helper'
require 'facter'
require 'facter/application'
describe 'test Oracle region fact' do
subject { Facter.fact(:region) }
ips = {
-- Unit puppetdb.service has finished starting up.
--
-- The start-up result is done.
Oct 08 19:33:16 nfiv-puppdb-02p.example.com puppetdb[3085685]: Reporting unexpected error from thread cmd-proc-thread-2 to stderr and log
Oct 08 19:33:16 nfiv-puppdb-02p.example.com puppetdb[3085685]: #error {
Oct 08 19:33:16 nfiv-puppdb-02p.example.com puppetdb[3085685]: :cause java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;
Oct 08 19:33:16 nfiv-puppdb-02p.example.com puppetdb[3085685]: :via
Oct 08 19:33:16 nfiv-puppdb-02p.example.com puppetdb[3085685]: [{:type java.lang.NoSuchMethodError
Oct 08 19:33:16 nfiv-puppdb-02p.example.com puppetdb[3085685]: :message java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;
Oct 08 19:33:16 nfiv-puppdb-02p.example.com puppetdb[3085685]: :at [org.postgresql.jdbc.ArrayDecoding readBinaryArray ArrayDecoding.java 523]}]
concat {'/tmp/junk.txt':
ensure => present,
}
$a = [1, 3, 5, 7, 9]
$b = [2, 4, 6, 8, 10]
$a.each |$value| {
concat::fragment {"odds-${value}":
target => '/tmp/junk.txt',
Debug: /Stage[main]/Role::Xxx/Gpg_key[foo]: Adding autorequire relationship with File[RPM-GPG-KEY-SOLARWINDS-2024]
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: Puppet::Network::Format[rich_data_msgpack]: feature msgpack is missing
Debug: file_metadata supports formats: json pson yaml
Debug: Using cached connection for https://puppet.com:8140
Debug: HTTP GET https://puppet..com:8140/puppet/v3/file_metadata/modules/puppet/rpm_gpg/RPM-GPG-KEY-SOLARWINDS-2024?links=manage&checksum_type=sha256&source_permissions=ignore&environment=561_move_manhattan_mmc_stuff_to_the_puppet_manhattan_module returned 200 OK
Debug: Caching connection for https://puppet.com:8140
Debug: Executing: '/bin/gpg --quiet --throw-keyids --with-colons /etc/pki/rpm-gpg/RPM-GPG-KEY-SOLARWINDS-2024'
Debug: Executing: 'rpm --query --queryformat '%{VERSION}\n' gpg-pubkey'
Debug: Executing: '/bin/gpg --quiet --throw-keyids --with-colons /etc/pki/rpm-gpg/RPM-GPG-KEY-SOLARWINDS-2024'
Debug: /Stage[main]/Role::Xxx/File[RPM-GPG-KEY-SOLARWINDS-2024]: The container Class[Role::Xxx] will propagate my refresh event
Debug: Executing: '/bin/gpg --quiet --throw-keyids --with-colons /etc/pki/rpm-gpg/RPM-GPG-KEY-SOLARWINDS-2024'
Error: /Stage[main]/Role::Xxx/Gpg_key[foo]: Could not evaluate: undefined method `split' for nil:NilClass
/opt/puppetlabs/puppet/cache/lib/puppet/provider/gpg_key/rpm.rb:44:in `keyid'
/opt/puppetlabs/puppet/cache/lib/puppet/provider/gpg_key/rpm.rb:24:in `exists?'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property/ensure.rb:82:in `retrieve'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1102:in `retrieve'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1130:in `retrieve_resource'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:307:in `from_resource'
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
---
mongodb::users:
mongo:
ensure: present
purge_sshkeys: true
managehome: true
expiry: absent
password_max_age: -1
uid: 1001
group: dba
Debug: Prefetching semanage resources for selinux_fcontext
Debug: Executing: '/sbin/semanage fcontext -a -t mongod_var_lib_t -f a /u01/app/MongoDB.*'
Notice: /Stage[main]/Selinux/Selinux::Fcontext[mariadb_data]/Selinux_fcontext[/u01/app/MongoDB.*_a]/ensure: created (corrective)
Debug: /Stage[main]/Selinux/Selinux::Fcontext[mariadb_data]/Selinux_fcontext[/u01/app/MongoDB.*_a]: The container Selinux::Fcontext[mariadb_data] will propagate my refresh event
Debug: Selinux::Fcontext[mariadb_data]: The container Class[Selinux] will propagate my refresh event
Notice: /Stage[main]/Profile::Base/File[/u01/app]/owner: owner changed 'root' to 'mongod' (corrective)
Notice: /Stage[main]/Profile::Base/File[/u01/app]/group: group changed 'root' to 'mongod' (corrective)
Notice: /File[/u01/app]/seltype: seltype changed 'unlabeled_t' to 'default_t' (corrective)
Debug: /Stage[main]/Profile::Base/File[/u01/app]: The container Class[Profile::Base] will propagate my refresh event
Debug: /Stage[main]/Profile::Base/File[/u01/app]: Th
Ignoring bcrypt-3.1.20 because its extensions are not built. Try: gem pristine bcrypt --version 3.1.20
Ignoring bigdecimal-3.1.6 because its extensions are not built. Try: gem pristine bigdecimal --version 3.1.6
Ignoring io-console-0.7.2 because its extensions are not built. Try: gem pristine io-console --version 0.7.2
Ignoring stringio-3.1.0 because its extensions are not built. Try: gem pristine stringio --version 3.1.0
rake build # Build puppet module package
rake build:pdk # Build Puppet module with PDK
rake changelog # Generate a Changelog from GitHub
rake check # Run static pre release checks
rake check:dot_underscore # Fails if any ._ files are present in directory
rake check:git_ignore
@bschonec
bschonec / metadata.json
Created October 10, 2023 14:56
Before and after of metadata.json for Fedora
{
"name": "cicd-cicd_lab",
"version": "0.1.0",
"author": "bschonec",
"summary": "",
"license": "Apache-2.0",
"source": "",
"dependencies": [
],