Skip to content

Conversation

@bastelfreak
Copy link
Member

This adds a fact that discovers if the Perforce or OpenVox agent is installed. If none are installed yet, we default to the Perforce package for backwards compatibility.

@bastelfreak
Copy link
Member Author

bastelfreak commented Mar 11, 2025

This is a resubmission of #933. I pasically added pick() to handle situations where the fact is undef.

@bastelfreak bastelfreak force-pushed the add_openvox_support branch 3 times, most recently from 76dc42e to b43a016 Compare March 11, 2025 12:57
@charlesc-profusion
Copy link

This doesn't work on Openvox 7:
image

@binford2k
Copy link
Contributor

ah yeah, we didn't backport that to 7.x. We probably should. Lemme chat with the team.

@Stricken1670
Copy link

Stricken1670 commented Mar 14, 2025

EDIT: found it!

So I just installed this module and it's active, and I applied the https://github.com/theforeman/puppet-puppet/pull/935.diff for this PR and now I can install openvox with:

  if $facts['networking']['hostname'] == 'labrat' {
    class {
      'puppet':
        runmode => 'cron',
        client_package => 'openvox-agent',
        agent_server_hostname => 'theforeman.example.com',
    }
  }

Although it doesn't set up the repo yet.

@markeganfuller
Copy link

I think it's also required that terminus_package is set to openvoxdb-termini on puppetdb::master::config in puppet::server::puppetdb.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make it reflect that OpenVox introduced an implementation fact?

@sbernhard
Copy link

@bastelfreak Any plans to continue this? (looks like there are conflicts as #936 was already merged)

@sbernhard
Copy link

@bastelfreak The failling tests are not related to this change. Am I right? What do we need to merge this then? How can we help?

@bastelfreak
Copy link
Member Author

bastelfreak commented Oct 2, 2025

@sbernhard

@bastelfreak bastelfreak force-pushed the add_openvox_support branch 3 times, most recently from 3d4624e to b458215 Compare October 2, 2025 21:39
# We need a method to determine what version is installed.
$real_puppetserver_version = pick($puppetserver_version, '8.0.0')

$puppetserver_package = pick($puppet::server::package, 'puppetserver')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like the variable isn't used anywhere

@bastelfreak bastelfreak force-pushed the add_openvox_support branch 8 times, most recently from 3720cd8 to 678be11 Compare October 10, 2025 10:06
if ($facts['os']['family'] =~ /(FreeBSD|DragonFly)/) {
$server_package = "puppetserver${puppet_major}"
# Add support for OpenVox. Default to puppet if nothing is installed yet
$puppet_flavor = pick($facts['implementation'], 'puppet')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wonder if these vars should use implementation instead of flavor given that the fact is also implementation

not going to block on this

binford2k and others added 2 commits October 10, 2025 13:17
This adds a fact that discovers if the Perforce or OpenVox agent is
installed. If none are installed yet, we default to the Perforce package
for backwards compatibility.
@evgeni
Copy link
Member

evgeni commented Oct 10, 2025

@ekohl as you had requested changes, I'll leave the final merge to you

ehelms pushed a commit to theforeman/foreman-installer-modulesync that referenced this pull request Oct 10, 2025
The tooling already supports acceptance testing with OpenVox. Just a few
gems need to be updated. newer puppet_metadata generates OpenVox jobs
for git GitHub matrix, voxpupuli-acceptance pulls in a newer beaker
version.

By applying this, OpenVox beaker jobs are still opt-in. OpenVox has to
be added as a requirement to each metadata.json.

**This won't switch the unit testing from puppet to openvox**

Tested at theforeman/puppet-puppet#935
@sbernhard
Copy link

@ekohl can we finish this?

@ehelms ehelms merged commit 365dcd7 into theforeman:master Nov 4, 2025
19 checks passed
@Stricken1670
Copy link

🥳

ehelms added a commit to ehelms/foreman-installer that referenced this pull request Nov 5, 2025
This results from changes in theforeman/puppet-puppet#935

Signed-off-by: Eric D. Helms <[email protected]>
ehelms added a commit to ehelms/foreman-installer that referenced this pull request Nov 5, 2025
This results from changes in theforeman/puppet-puppet#935

Signed-off-by: Eric D. Helms <[email protected]>
ehelms added a commit to ehelms/foreman-installer that referenced this pull request Nov 6, 2025
This results from changes in theforeman/puppet-puppet#935

Signed-off-by: Eric D. Helms <[email protected]>
ehelms added a commit to ehelms/foreman-installer that referenced this pull request Nov 6, 2025
This results from changes in theforeman/puppet-puppet#935

Signed-off-by: Eric D. Helms <[email protected]>
evgeni pushed a commit to theforeman/foreman-installer that referenced this pull request Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants