2

I have a case where we are throwing together diskless node images that get thrown out to nodes via PXE and then mounted via a ramdisk. To build these previously we have just installed packages with yum --installroot= install .

I was wondering though if I were able to have puppet instead of doing a regular yum -y install that for some node types would instead follow this pattern and do yum --installroot= install .

Cheers!

Wilshire
  • 538
  • 6
  • 19

1 Answers1

4

This should be doable with install_options (which, for the yum provider, requires Puppet 3.6 or newer):

package { 'somepackage':
  ensure          => present,
  install_options => [ '--installroot=' ],
}
Shane Madden
  • 112,982
  • 12
  • 174
  • 248