Hi,
this series introduces a basic support for
registering/attaching/unregistering RHEL guests using
subscription-manager, so it is possible to do for example:
$ cat <<EOF > sm.conf
[general]
username=user
password=pass
[attach-0]
pool=ID
EOF
$ virt-customize -a rhel-guest.qcow2 \
--sm-config sm.conf --sm-register --sm-attach 0 \
--install pkg1 --install pkg2 .. \
--sm-remove --sm-unregister
The same operations are doable also using --run-command, but this
avoids showing username/passwords/pools on command lines, and in
general encapsulate them for better control.
Thanks,
--
Pino
Pino Toscano (6):
Move ini_reader from builder to mllib
mllib: add a real_uri parameter to Ini_reader.read_ini
mllib: add duplicate fields check to Ini_reader.read_ini
mllib: add duplicate sections check to Ini_reader.read_ini
mllib: add quick section/key lookup method
customize: add basic subscription-manager operations
.gitignore | 6 +-
builder/Makefile.am | 40 ++++-------
builder/index-parse.y | 176 ---------------------------------------------
builder/index-parser-c.c | 121 -------------------------------
builder/index-scan.l | 144 -------------------------------------
builder/index-struct.c | 60 ----------------
builder/index-struct.h | 67 -----------------
builder/index_parser.ml | 22 +-----
builder/ini_reader.ml | 40 -----------
builder/ini_reader.mli | 24 -------
builder/sources.ml | 3 +-
customize/Makefile.am | 8 ++-
customize/customize_run.ml | 58 +++++++++++++++
generator/customize.ml | 101 ++++++++++++++++++++++++++
mllib/Makefile.am | 16 ++++-
mllib/index-parse.y | 176 +++++++++++++++++++++++++++++++++++++++++++++
mllib/index-parser-c.c | 121 +++++++++++++++++++++++++++++++
mllib/index-scan.l | 144 +++++++++++++++++++++++++++++++++++++
mllib/index-struct.c | 60 ++++++++++++++++
mllib/index-struct.h | 67 +++++++++++++++++
mllib/ini_reader.ml | 98 +++++++++++++++++++++++++
mllib/ini_reader.mli | 29 ++++++++
po/POTFILES | 8 +--
po/POTFILES-ml | 2 +-
sysprep/Makefile.am | 8 ++-
25 files changed, 908 insertions(+), 691 deletions(-)
delete mode 100644 builder/index-parse.y
delete mode 100644 builder/index-parser-c.c
delete mode 100644 builder/index-scan.l
delete mode 100644 builder/index-struct.c
delete mode 100644 builder/index-struct.h
delete mode 100644 builder/ini_reader.ml
delete mode 100644 builder/ini_reader.mli
create mode 100644 mllib/index-parse.y
create mode 100644 mllib/index-parser-c.c
create mode 100644 mllib/index-scan.l
create mode 100644 mllib/index-struct.c
create mode 100644 mllib/index-struct.h
create mode 100644 mllib/ini_reader.ml
create mode 100644 mllib/ini_reader.mli
--
2.1.0