VoxBot
08/10/2023, 2:54 PMVoxBot
08/10/2023, 2:54 PMVoxBot
08/10/2023, 2:56 PMVoxBot
08/10/2023, 2:57 PMVoxBot
08/10/2023, 2:57 PMVoxBot
08/10/2023, 2:58 PMJames Evans
08/10/2023, 3:04 PMr10k::webhook::config::config_path
to place the config in the old location. It took me a while to figure out that it wasnβt taking effect when restarting the webhook because the config file location is hard-coded in the unit file.James Evans
08/10/2023, 3:04 PMJames Evans
08/10/2023, 3:06 PMr10k
, or puppet should manage the unit configurationdhollinger
08/10/2023, 3:07 PMVoxBot
08/11/2023, 12:42 PMVoxBot
08/11/2023, 12:48 PMVoxBot
08/11/2023, 12:51 PMVoxBot
08/11/2023, 12:54 PMVoxBot
08/11/2023, 12:54 PMVoxBot
08/11/2023, 1:04 PMVoxBot
08/11/2023, 1:10 PMvchepkov
08/11/2023, 10:07 PM/opt/puppetlabs/bin/puppet module install \
> --environment production --modulepath=/tmp/modules \
> puppet/r10k
Notice: Preparing to install into /tmp/modules ...
Notice: Created target directory /tmp/modules
Notice: Downloading from <https://forgeapi.puppet.com> ...
Notice: Installing -- do not interrupt ...
/tmp/modules
βββ¬ puppet-r10k (v12.1.0)
βββ choria-mcollective (v0.14.3)
βββ puppet-systemd (v5.2.0)
βββ puppetlabs-inifile (v6.1.0)
βββ puppetlabs-stdlib (v8.6.0)
βββ puppetlabs-vcsrepo (v6.1.0)
But, it needs at least v9 of stdlib or it will fail
puppet: Error: Evaluation Error: Unknown function: 'stdlib::to_yaml'. (file: /tmp/modules/r10k/manifests/config.pp, line: 63, column: 16)
Dr Bunsen Honeydew
08/11/2023, 10:07 PMpuppet-r10k
module at https://forge.puppet.com/puppet/r10k?src=slack&channel=voxpupulivchepkov
08/11/2023, 10:09 PM{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 4.19.0 < 10.0.0"
},
Dr Bunsen Honeydew
08/11/2023, 10:09 PMpuppetlabs-stdlib
module at https://forge.puppet.com/puppetlabs/stdlib?src=slack&channel=voxpupulivchepkov
08/11/2023, 10:10 PM< 9.0.0
Dr Bunsen Honeydew
08/11/2023, 10:10 PMchoria-mcollective
module at https://forge.puppet.com/choria/mcollective?src=slack&channel=voxpupuliripienaar
08/12/2023, 5:08 AMbastelfreak
08/12/2023, 7:52 PMemerson_prado
08/12/2023, 10:31 PMVoxBot
08/12/2023, 10:36 PMemerson_prado
08/13/2023, 3:29 PMemerson_prado
08/13/2023, 6:10 PMFile "/tmp/vim-installed".file?
to be truthy, got false` - seems to be caused by spec/acceptance/post_transaction_actions_spec.rb
which, if I understood correctly, creates the file if package vim-enhanced
isn't installed. But, in Vagrant box generic/oracle7, which I believe to be a vanilla install, it is indeed installed.
From Oracle 7 Puppet 7 and Puppet 8 logs
2) yum::post_transaction_action define simple parameters File "/tmp/vim-installed" is expected to be file
Failure/Error: it { <http://is_expected.to|is_expected.to> be_file }
expected `File "/tmp/vim-installed".file?` to be truthy, got false
# Inside VM from Vagrant box generic/oracle7
rpm -q vim-enhanced
vim-enhanced-7.4.629-8.0.1.el7_9.x86_64
# spec/acceptance/post_transaction_actions_spec.rb
describe 'yum::post_transaction_action define' do
context 'simple parameters' do
# Using puppet_apply as a helper
it 'must work idempotently with no errors' do
pp = <<-EOS
yum::post_transaction_action{'touch_file':
key => 'vim-*',
command => 'touch /tmp/vim-installed',
}
...
# Pick a package that is hopefully not installed. <--- Yes, it is
package{'vim-enhanced':
ensure => 'present',
require => Yum::Post_transaction_action['touch_file'], <--- So I guess it doesn't touch /tmp/vim-installed
}
EOS
# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end
describe file('/tmp/vim-installed') do
it { <http://is_expected.to|is_expected.to> be_file } <--- Then, this fails
end
end
end
Is my reasoning correct? Should I file an issue against puppet-yum
? Could we just change vim-enhanced
for something else which is sure not to be installed?Dr Bunsen Honeydew
08/13/2023, 6:10 PM