I’m trying to automate the installation of RT so I can easily create/destroy VMs for testing. To do this, I need to know which CPAN modules RT depends on so they can be installed before I start the RT installation.
Is there a way to generate all the RT CPAN dependencies in a machine-parseable format (one module per line would be fine)? make testdeps and ./sbin/rt-test-dependencies almost give me what I want, except they include lots of extra text that gets in the way of processing (e.g. I don’t want to know if a module is installed or not).
The reason I wanted a one-per-line list of dependencies was so I could pull them into Ansible and run them through the cpanm module to make sure they were all installed. make fixdeps doesn’t do that (and failed repeatedly when run manually).
I responded to your message earlier from my email-client using the
“Followup” function in my client, but my response ended up un-connected
to this thread. Apparently responses must have the correct To-header for
the forum software to route responses correctly. Using the CC-header
does not seem to work.
My response ended up here:
I have created a ansible role for installing RT. The role performs a
fully automatic installation of RT for our purposes. The complete role
is not generic enough to distribute in full (Debian-specific), but the
role contains some ansible tasks which (somewhat hackishly) tries to
resolve RT dependencies. First by deducing suitable Debian packages, and
then be falling back to installing missing perl modules from CPAN.
Hopefully you can get some ideas on how to automate your installation