VoxBot
07/14/2022, 1:08 PMVoxBot
07/14/2022, 1:08 PMVoxBot
07/14/2022, 1:09 PMVoxBot
07/14/2022, 1:09 PMVoxBot
07/14/2022, 1:09 PMVoxBot
07/14/2022, 1:09 PMPat Riehecky
07/14/2022, 2:24 PMVoxBot
07/14/2022, 2:26 PMVoxBot
07/14/2022, 2:26 PMPat Riehecky
07/14/2022, 2:27 PMVoxBot
07/14/2022, 2:34 PMPat Riehecky
07/14/2022, 2:34 PMbundle exec rake changelogPat Riehecky
07/14/2022, 2:34 PMPat Riehecky
07/14/2022, 2:37 PMPat Riehecky
07/14/2022, 2:37 PMEoin Kilfeather
07/14/2022, 3:29 PMsystemd 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
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
[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!Eoin Kilfeather
07/14/2022, 3:30 PMsystemd 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
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
[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!bastelfreak
07/14/2022, 3:31 PMbastelfreak
07/14/2022, 3:31 PMbastelfreak
07/14/2022, 3:31 PMpuppet facts show pathbastelfreak
07/14/2022, 3:32 PMEoin Kilfeather
07/14/2022, 3:48 PMfrozen_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
endEoin Kilfeather
07/14/2022, 3:49 PMbastelfreak
07/14/2022, 3:49 PMbastelfreak
07/14/2022, 3:50 PMEoin Kilfeather
07/14/2022, 3:50 PMEoin Kilfeather
07/14/2022, 3:52 PMrspec-puppet-factsEoin Kilfeather
07/14/2022, 3:53 PMEoin Kilfeather
07/14/2022, 3:53 PMAlex Fisher
07/15/2022, 10:44 AM