It is possible to select specific RPMs to install?

74 views
Skip to first unread message

Steven Langlois

unread,
Sep 12, 2016, 12:08:31 PM9/12/16
to Packer
I'm assuming the answer is no but always better to ask.  I was unable to find the functionality in the documentation for Packer. We have been using VMWare Studio with CentOS5.11 and with Studio, similar to anaconda, you can specify an RPM list to install from the ISO as part of our build system, e.g.

<vadk:OSPackages><!-- Additional OS packages needed by the ISV's application -->
    <vadk:Package vadk:name="alsa-lib"/>
    <vadk:Package vadk:name="audit-libs"/>
    <vadk:Package vadk:name="authconfig"/>
    ...
</vadk:OSPackages>

We are transitioning to CentOS 7 because Studio has no support for anything later than RHEL 6/CentOS 6 and I have exhausted trying to get Centos 7 with Studio to work. So we are looking for another solution and like that Packer can produce VMs for multiple targets so it makes sense to move to Packer.




 

Alvaro Miranda Aguilera

unread,
Sep 12, 2016, 12:47:38 PM9/12/16
to packe...@googlegroups.com
hello.

Packer will usually do this.

Create an empty VM, set a webserver, boot the VM and type on the boot of the VM some command.

From there, the installer will read a kickstart file + iso and get the image done.
Here the kickstart can be very simple.

Then reboot.

[additional packer provisioning happen here]

Then packer conntect to poweroff

With that simple formula you can build a lot of stuff.

ie:


--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/de9877e6-4824-40a7-85b3-02a5ebbc50e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages