Boot disk API & CLI

I released foreman_bootdisk 3.1.0 today which adds an API for
downloading both types of disk images. There's also a new Hammer
plugin, hammer_cli_foreman_bootdisk, which lets you do stuff like this:

$ hammer bootdisk host --host wstest.example.com
Successfully downloaded host disk image to wstest.example.com.iso
$ file wstest.example.com.iso wstest.example.com.iso: # ISO 9660 CD-ROM
filesystem data 'CDROM' (bootable)

$ hammer bootdisk generic --file /dev/sdb --force --sudo
[sudo] password for dcleal:
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.371694 s, 2.8 MB/s
Successfully downloaded generic disk image to /dev/sdb

(scary, huh)

The CLI code and packages are up here:
https://github.com/theforeman/hammer_cli_foreman_bootdisk
https://github.com/theforeman/foreman-packaging/pull/307

It depends on hammer-cli nightlies/master at the moment, I'll push
Debian packages too once the next release is out.

Cheers,

··· -- Dominic Cleal Red Hat Engineering

Sweet! Definitely going to use this.

··· ----- Original Message ----- > I released foreman_bootdisk 3.1.0 today which adds an API for > downloading both types of disk images. There's also a new Hammer > plugin, hammer_cli_foreman_bootdisk, which lets you do stuff like this: > > $ hammer bootdisk host --host wstest.example.com > Successfully downloaded host disk image to wstest.example.com.iso > $ file wstest.example.com.iso wstest.example.com.iso: # ISO 9660 CD-ROM > filesystem data 'CDROM' (bootable) > > $ hammer bootdisk generic --file /dev/sdb --force --sudo > [sudo] password for dcleal: > 1024+0 records in > 1024+0 records out > 1048576 bytes (1.0 MB) copied, 0.371694 s, 2.8 MB/s > Successfully downloaded generic disk image to /dev/sdb > > (scary, huh) > > The CLI code and packages are up here: > https://github.com/theforeman/hammer_cli_foreman_bootdisk > https://github.com/theforeman/foreman-packaging/pull/307 > > It depends on hammer-cli nightlies/master at the moment, I'll push > Debian packages too once the next release is out. > > Cheers, > > -- > Dominic Cleal > Red Hat Engineering > > -- > You received this message because you are subscribed to the Google Groups > "foreman-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-dev+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. >

> From: "Dominic Cleal" <dcleal+g@redhat.com>
> To: "foreman-dev" <foreman-dev@googlegroups.com>
> Sent: Friday, August 8, 2014 6:21:18 PM
> Subject: [foreman-dev] Boot disk API & CLI
>
> I released foreman_bootdisk 3.1.0 today which adds an API for
> downloading both types of disk images. There's also a new Hammer
> plugin, hammer_cli_foreman_bootdisk, which lets you do stuff like this:
>
> $ hammer bootdisk host --host wstest.example.com
> Successfully downloaded host disk image to wstest.example.com.iso
> $ file wstest.example.com.iso wstest.example.com.iso: # ISO 9660 CD-ROM
> filesystem data 'CDROM' (bootable)
>
> $ hammer bootdisk generic --file /dev/sdb --force --sudo
> [sudo] password for dcleal:
> 1024+0 records in
> 1024+0 records out
> 1048576 bytes (1.0 MB) copied, 0.371694 s, 2.8 MB/s
> Successfully downloaded generic disk image to /dev/sdb
>
> (scary, huh)

That's terrifying. I like it.

··· ----- Original Message -----

The CLI code and packages are up here:
https://github.com/theforeman/hammer_cli_foreman_bootdisk
https://github.com/theforeman/foreman-packaging/pull/307

It depends on hammer-cli nightlies/master at the moment, I’ll push
Debian packages too once the next release is out.

Cheers,


Dominic Cleal
Red Hat Engineering


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