Skip to content

Fixes #39628 - Drop non-AIO paths from provisioning templates - #11163

Open
adamruzicka wants to merge 3 commits into
theforeman:developfrom
adamruzicka:aio-everywhere
Open

Fixes #39628 - Drop non-AIO paths from provisioning templates#11163
adamruzicka wants to merge 3 commits into
theforeman:developfrom
adamruzicka:aio-everywhere

Conversation

@adamruzicka

Copy link
Copy Markdown
Contributor

All supported Puppet versions use AIO packaging, making the aio_enabled check redundant.

os_name = @host.operatingsystem.name

aio_enabled = host_param_true?('enable-puppetlabs-repo') || host_param_true?('enable-official-puppet8-repo') || host_param_true?('enable-puppet8') || host_param_true?('enable-official-puppet7-repo') || host_param_true?('enable-puppet7') || host_param_true?('enable-puppetlabs-puppet6-repo') || host_param_true?('enable-puppet6') || host_param_true?('enable-puppetlabs-puppet5-repo') || host_param_true?('enable-puppet5')
aio_available = os_family == 'Debian' || os_family == 'Redhat' || os_family == 'Suse'

@adamruzicka adamruzicka Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

note: aio_available is slightly confusing in this context. The FreeBSD package is technically AIO and I'd expect the windows one is as well.

Edit: the freebsd package is not aio, it does rely on ruby coming from the system

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'd be tempted to remove this completely, it shouldn't need setting

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Debian has non-AIO paths in https://packages.debian.org/trixie/puppet-agent but OpenVox's puppet-agent package does use AIO paths. It's a bit confusing.

Also, I'm a bit behind on updating https://src.fedoraproject.org/rpms/puppet and migrating it to OpenVox.

fi

cat > /etc/puppet/puppet.conf << EOF
cat > /etc/puppetlabs/puppet/puppet.conf << EOF

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was wrong before. This is wrong even now, but in a different way.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Right, due to how the snapshots are build, this seems to run against a centos 7 fake host.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should be addressed in #11164

All supported Puppet versions use AIO packaging, making the aio_enabled
check redundant.
All supported platforms (including Windows and FreeBSD) use AIO
packages with their own default paths, making the vardir/logdir/
rundir/ssldir overrides unnecessary.
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.

2 participants