Skip to content

Conversation

@ekohl
Copy link
Contributor

@ekohl ekohl commented Aug 27, 2025

This is something we discussed earlier. It is an attempt to get rid of ezbake.

The idea is that you run make dist to create the release tarball. This can then be consumed by packaging to build the various RPMs and Debian packages.

For now I just took the files from the openvox-server 8.11.0 release tarball and added it together with a Makefile. That produces a tarball.

However, this isn't consumed by packaging now and not hooked into CI and release flows. I don't know how to do that well, but this is the start.

Copy link
Contributor Author

@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.

I also think we should drop all the sysvinit stuff and clean up a lot more before we merge this.

Comment on lines +117 to +122
# bash will eat your spaces, so let's array. see http://mywiki.wooledge.org/BashFAQ/050 for more fun.
params=("--user" "puppet" "--group" "puppet" "--chdir" "$dir" "--realname" "puppetserver" "--operating-system" "$os" "--name" "openvox-server" "--package-version" "8.11.0" "--release" "1" "--platform-version" "8")
if [ -n "$os_version" ]; then params+=("--os-version" "$os_version"); fi
if [ -n "$os_dist" ]; then params+=("--dist" "$os_dist"); fi

params+=('--description' "$(printf "Vox Pupuli puppetserver\nContains: OpenVox Server (puppetlabs/puppetserver 8.11.0,org.clojure/clojure 1.11.2,org.bouncycastle/bcpkix-jdk18on 1.78.1,puppetlabs/jruby-utils 5.2.0,puppetlabs/puppetserver 8.11.0,com.puppetlabs/trapperkeeper-webserver-jetty10 1.0.18,puppetlabs/trapperkeeper-metrics 2.0.4)")")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this part should be templated somehow

Comment on lines +126 to +146
params+=('--replaces' "'puppetserver',''")


params+=('--create-dir' '/opt/puppetlabs/server/data/puppetserver/jars')
params+=('--create-dir' '/opt/puppetlabs/server/data/puppetserver/yaml')



if [[ "$os" = 'el' || "$os" = 'sles' || "$os" = 'fedora' || "$os" = 'redhatfips' || "$os" = 'amazon' ]]; then
# pull in rpm dependencies
params+=("--additional-dependency")
params+=("openvox-agent >= 8.21.1")
# get rpm install trigger scripts
# get rpm upgrade trigger scripts
: # Need something in case there are no additional dependencies
else
# if we aren't an rpm, pull in deb dependencies
params+=("--additional-dependency")
params+=("openvox-agent (>= 8.21.1)")
: # Need something in case there are no additional dependencies
fi
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This part can probably be folded into fpm.rb.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think this file is really needed in the tarball

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know why this file is here, but it's in the tarball now.

Comment on lines +146 to +147
install -d "${DESTDIR}${app_prefix}/share/doc/puppetserver-8.11.0"
cp -a ext/docs "${DESTDIR}${app_prefix}/share/doc/puppetserver-8.11.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here it also has the version number so some templating. Though I'm not sure if the docs code path is really used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This also should be generated somehow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant