Provisioning Kickstart - Scripts

Hello,

We are looking to migrate to Satellite 6 or/and The Foreman and need to
replace our current kickstart mechanism.

Typically we run scripts are part of %pre, or %post the main one being a
Python script which determines the dynamic partition layout.
This is pulled from a web server using wget, executed and then the output
%include(d). The package list is determined in the same way.

The examples I have seen from searching don't have the granularity we need.
If the instance has a small disk we don't include some partitions,
some disks will be /dev/sda, some /dev/vda and so on. The Python script
works all this out.

How would I perform the same with Foreman based provisioning ?

Any ideas gratefully received.

Cheer
Paul

You can specify dynamic disk partitioning in the partition table.

See
http://projects.theforeman.org/projects/foreman/wiki/Dynamic_disk_partitioning

Matt

··· On Fri, May 8, 2015 at 10:40 AM, Paul Seymour wrote:

Hello,

We are looking to migrate to Satellite 6 or/and The Foreman and need to
replace our current kickstart mechanism.

Typically we run scripts are part of %pre, or %post the main one being a
Python script which determines the dynamic partition layout.
This is pulled from a web server using wget, executed and then the output
%include(d). The package list is determined in the same way.

The examples I have seen from searching don’t have the granularity we
need. If the instance has a small disk we don’t include some partitions,
some disks will be /dev/sda, some /dev/vda and so on. The Python script
works all this out.

How would I perform the same with Foreman based provisioning ?

Any ideas gratefully received.

Cheer
Paul


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Thanks, I am guessing I can put the wget <python-script> ; chmod +x ; <exec
python-script> type stuff in there to output to /tmp/diskpart.cfg in there
as it runs as bourne script as has a 4096 (or whatever it is) character
limit ?

Cheers
Paul

··· On Friday, 8 May 2015 16:10:15 UTC+1, Matthew Hyclak wrote: > > You can specify dynamic disk partitioning in the partition table. > > See > http://projects.theforeman.org/projects/foreman/wiki/Dynamic_disk_partitioning > > Matt > >

I think the intent is to put the actual script in Foreman (with #Dynamic as
the first line) and avoid the wget altogether.

Your way might work, too, but I've never tried :slight_smile:

··· On Fri, May 8, 2015 at 11:20 AM, Paul Seymour wrote:

On Friday, 8 May 2015 16:10:15 UTC+1, Matthew Hyclak wrote:

You can specify dynamic disk partitioning in the partition table.

See
Dynamic disk partitioning - Foreman

Matt

Thanks, I am guessing I can put the wget ; chmod +x ;
type stuff in there to output to /tmp/diskpart.cfg
in there as it runs as bourne script as has a 4096 (or whatever it is)
character limit ?

Cheers
Paul


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.