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

    VoxBot

    07/04/2023, 10:34 AM
    I needed an easy way for a customer to use images that have puppet preinstalled and that's working fine
  • v

    VoxBot

    07/04/2023, 10:43 AM
    bastelfreak: just thinking out loud: if you call host.install_package(package_name) if it's preinstalled, does that work?
  • v

    VoxBot

    07/04/2023, 10:43 AM
    bastelfreak: because if so, we could also implement BEAKER_PUPPET_COLLECTION=none to avoid calling install_puppet_release_repo_on, which could also help if you want to do something like testing the OS packaged Puppet
  • v

    VoxBot

    07/04/2023, 10:47 AM
    mhm could work
  • v

    VoxBot

    07/04/2023, 10:48 AM
    if so, the patch is much smaller and we have fewer env vars
  • v

    VoxBot

    07/04/2023, 10:49 AM
    bastelfreak, I did a nit-picky review of https://github.com/theforeman/foreman-packaging/pull/9517 -- can be merged afterwards
  • v

    VoxBot

    07/04/2023, 10:49 AM
    (eveything is just cosmetics, function wise it should be good as it is)
  • v

    VoxBot

    07/04/2023, 10:51 AM
    ewoud: https://github.com/voxpupuli/voxpupuli-acceptance/pull/62 is that what you had in mind?
  • v

    VoxBot

    07/04/2023, 10:52 AM
    bastelfreak: pretty much yes, or we could implement it in beaker_puppet_helpers
  • v

    VoxBot

    07/04/2023, 10:52 AM
    Zhenech: thanks, will check later
  • v

    VoxBot

    07/04/2023, 10:52 AM
    ewoud: I'm fine with both. I don't have a preference
  • v

    VoxBot

    07/04/2023, 10:53 AM
    bastelfreak: the only thing I wonder about is: https://github.com/voxpupuli/beaker_puppet_helpers/blob/4fdb3e48b0fb9e316ef13ab71a5fb876da8a4583/lib/beaker_puppet_helpers/install_utils.rb#L66
  • v

    VoxBot

    07/04/2023, 10:53 AM
    and I still wonder why that edge case is needed
  • v

    VoxBot

    07/04/2023, 10:54 AM
    because /etc/profile.d/ is only used for interactive/login shells on debian
  • v

    VoxBot

    07/04/2023, 10:54 AM
    yes, but is there another way to hack around that?
  • v

    VoxBot

    07/04/2023, 10:56 AM
    I don't think so
  • v

    VoxBot

    07/04/2023, 10:56 AM
    I think we should always call host.add_env_var('PATH', '/opt/puppetlabs/bin')
  • v

    VoxBot

    07/04/2023, 10:56 AM
    I don't see any issue in it and calling it always removes some logic
  • v

    VoxBot

    07/04/2023, 10:56 AM
    looks like /etc/bashrc on Fedora reads /etc/profile.d on non-login shells and on Debian it's /etc/profile that reads /etc/profile.d
  • v

    VoxBot

    07/04/2023, 11:00 AM
    https://unix.stackexchange.com/questions/170493/login-non-login-and-interactive-non-interactive-shells/170499#170499 hmm yes
  • v

    VoxBot

    07/04/2023, 11:06 AM
    https://github.com/voxpupuli/voxpupuli-acceptance/pull/62/files this would work and would have the smallest diff
  • v

    VoxBot

    07/04/2023, 11:08 AM
    that would end up in a situation where host.add_env_var is called twice, but the method checks that and won't append a path twice to $PATH
  • v

    VoxBot

    07/04/2023, 11:14 AM
    will give that a try at $customer
  • v

    VoxBot

    07/04/2023, 11:33 AM
    ewoud: works fine for me. From my point of view we can merge that
  • v

    VoxBot

    07/04/2023, 11:43 AM
    merged
  • v

    VoxBot

    07/04/2023, 11:58 AM
    https://github.com/voxpupuli/voxpupuli-acceptance/pull/63
  • c

    cruelsmith

    07/04/2023, 1:03 PM
    Do someone know if it is intended by puppet package that is also checks with whatprovides on REHL?
    Copy code
    Debug: Executing: '/bin/rpm -q npm --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
    Debug: Executing: '/bin/rpm -q npm --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n --whatprovides'
    Notice: /Stage[main]/Nodejs::Install/Package[npm]/ensure: current_value '2:16.20.1-1nodesource', should be 'absent' (noop) (corrective)
  • c

    cruelsmith

    07/04/2023, 1:03 PM
    Found that while using the default setting of voxpupuli-nodejs
  • c

    cruelsmith

    07/04/2023, 1:05 PM
    Which in the end leads to a loop where puppet install the nodejs package and remove it via
    Package[npm]
    again ...
  • c

    cruelsmith

    07/04/2023, 1:23 PM
    Found a issues that relates to it and left my founds there: https://github.com/voxpupuli/puppet-nodejs/issues/452#issuecomment-1620245201
1...536537538...647Latest