https://www.puppet.com/community logo
Join Slack
Powered by
# voxpupuli
  • v

    VoxBot

    07/14/2022, 1:08 PM
    allow(Facter:Util:Resolution).to receive(:which).with('lldpctl').and_return('/usr/sbin/lldpctl')
  • v

    VoxBot

    07/14/2022, 1:08 PM
    gussing you have lldpctl in your path
  • v

    VoxBot

    07/14/2022, 1:09 PM
    ha
  • v

    VoxBot

    07/14/2022, 1:09 PM
    lol
  • v

    VoxBot

    07/14/2022, 1:09 PM
    thanks
  • v

    VoxBot

    07/14/2022, 1:09 PM
    np
  • p

    Pat Riehecky

    07/14/2022, 2:24 PM
    I got a bunch of ruby errors.... I suspect my super new ruby is to blame.
  • v

    VoxBot

    07/14/2022, 2:26 PM
    I run on Ruby 3.1 with Fedora 36, mostly works
  • v

    VoxBot

    07/14/2022, 2:26 PM
    you get some deprecation warnings, but functionally it works for me
  • p

    Pat Riehecky

    07/14/2022, 2:27 PM
    hmmm, I must be doing something wrongly then....
  • v

    VoxBot

    07/14/2022, 2:34 PM
    so what are the errors you see?
  • p

    Pat Riehecky

    07/14/2022, 2:34 PM
    I'm getting a giant stack trace on
    bundle exec rake changelog
  • p

    Pat Riehecky

    07/14/2022, 2:34 PM
    I'll see about just spinning up a container with an older ruby
  • p

    Pat Riehecky

    07/14/2022, 2:37 PM
    Does https://github.com/voxpupuli/puppet-logrotate/pull/200 look right?
  • p

    Pat Riehecky

    07/14/2022, 2:37 PM
    Does https://github.com/voxpupuli/puppet-logrotate/pull/200 look right?
  • e

    Eoin Kilfeather

    07/14/2022, 3:29 PM
    Hi I’m having a problem with a
    systemd
    call which fails with
    Exec[systemd-solr.service-systemctl-daemon-reload] failed: 'systemctl daemon-reload' is not qualified and no path was specified.
    Just wondering if this is a os specific thing - and if anyone has come across it before? I’ve tried with
    Copy code
    systemd::daemon_reload { 'solr':
        enable => false
      }
    but to no avail. I don’t really understand what
    systemd
    is actually doing in this case.
    # site/profile/manifests/solr.pp
    Copy code
    [4:22 PM] # Profile to install Apache Solr
    class profile::solr {
      class { '::systemd': }
    
      systemd::daemon_reload { 'solr':
        enable => false
      }
    
      class { '::solr':
        version => '8.5.1',
      }
    }
    Any pointers greatly appreciated!
  • e

    Eoin Kilfeather

    07/14/2022, 3:30 PM
    Hi I’m having a problem with a
    systemd
    call which fails with
    Exec[systemd-solr.service-systemctl-daemon-reload] failed: 'systemctl daemon-reload' is not qualified and no path was specified.
    Just wondering if this is a os specific thing - and if anyone has come across it before? I’ve tried with
    Copy code
    systemd::daemon_reload { 'solr':
        enable => false
      }
    but to no avail. I don’t really understand what
    systemd
    is actually doing in this case.
    # site/profile/manifests/solr.pp
    Copy code
    [4:22 PM] # Profile to install Apache Solr
    class profile::solr {
      class { '::systemd': }
    
      systemd::daemon_reload { 'solr':
        enable => false
      }
    
      class { '::solr':
        version => '8.5.1',
      }
    }
    Any pointers greatly appreciated!
  • b

    bastelfreak

    07/14/2022, 3:31 PM
    https://github.com/voxpupuli/puppet-systemd/blob/master/manifests/daemon_reload.pp#L20
  • b

    bastelfreak

    07/14/2022, 3:31 PM
    https://github.com/voxpupuli/puppet-systemd/blob/master/manifests/daemon_reload.pp#L20
  • b

    bastelfreak

    07/14/2022, 3:31 PM
    what do you see when you do
    puppet facts show path
  • b

    bastelfreak

    07/14/2022, 3:32 PM
    also I suggest to fix the solr module if it requires a daemon reload
  • e

    Eoin Kilfeather

    07/14/2022, 3:48 PM
    the test is
    Copy code
    frozen_string_literal: true
    
    require 'puppet_helper'
    
    describe 'profile::solr' do
      include PuppetHelper
    
      context 'when there is a Linux kernel' do
        let(:facts) { {
          'path' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
          'kernel' => 'Linux',
          'osfamily' => 'RedHat',
          'os' => { 'family' => 'RedHat', 'name' => 'RedHat', 'release' => { 'full' => '7.7' } },
        } }
        it { should contain_class('solr') }
      end
    end
  • e

    Eoin Kilfeather

    07/14/2022, 3:49 PM
    but the catalogue fails nevertheless
  • b

    bastelfreak

    07/14/2022, 3:49 PM
    I highly recommend switching to rspec-puppet-facts
  • b

    bastelfreak

    07/14/2022, 3:50 PM
    does only the test fail or also the actual puppet run?
  • e

    Eoin Kilfeather

    07/14/2022, 3:50 PM
    actually that test passes - so it is a dependency fail
  • e

    Eoin Kilfeather

    07/14/2022, 3:52 PM
    I’ll see what happens with
    rspec-puppet-facts
  • e

    Eoin Kilfeather

    07/14/2022, 3:53 PM
    and get back if I’m still having issues - thanks for your pointer
  • e

    Eoin Kilfeather

    07/14/2022, 3:53 PM
    and get back if I’m still having issues - thanks for your pointer
  • a

    Alex Fisher

    07/15/2022, 10:44 AM
    @bastelfreak Hi! Did you ever have a crack at fixing https://github.com/kuleuven/puppet-lint-manifest_whitespace-check/issues/10 ?
1...102103104...648Latest