Clients with different disk layouts

14 views
Skip to first unread message

Samuel Vange

unread,
Feb 22, 2017, 5:23:38 PM2/22/17
to SIMP Users
Platform: SIMP 5.2.0-0 on RedHat

I'd like to spin up some (selected) clients with different disk configurations. Currently, on clients, /opt does not have its own logical volume mounted. I'd like to (ideally) have /dev/sdb configured in its own volume group and have VolGroup01-OptVol  consume all of /dev/sdb, and mounted on /opt, upon building the clients. I've looked at the diskbuild.sh script provided. Can different scripts be served to different clients (based on FQDN or some other variable)? If so, how?

Thank you!

Nick Markowski

unread,
Feb 22, 2017, 5:37:05 PM2/22/17
to SIMP Users
Hey,

You certainly can serve up different scripts.  Best way I can think of is to delineate machines based on MAC.  Using puppet:

tftpboot::linux_model { 'some_profile':
  kernel => foo
  initrd => bar
  ks => /path/to/ks/for/some_profile
  ...
}

tftpboot::linux_model {'some_other_profile':
  kernel => foo
  initrd => bar
  ks => /path/to/ks/for/some_other_profile
  ...
}

::tftpboot::assign_host { 'default': model => 'some_profile' }
::tftpboot::assign_host { 'DE:AD:BE:EF:00:01': model => 'some_other_profile' }

In the some_other_profile ks file, you can reference a re-created diskdetect to do what you need.

Hope that helps!

Samuel Vange

unread,
Feb 22, 2017, 5:58:39 PM2/22/17
to SIMP Users
This is perfect! This is exactly what I'm looking for. Thank you!
Reply all
Reply to author
Forward
0 new messages