scyld-add-boot-config#

NAME

scyld-add-boot-config -- Tool for creating ClusterWare boot configurations.

USAGE

scyld-add-boot-config

[-h] [-v] [-q] [-c | --config CONFIG] [--base-url URL] [[-u | --user] USER[:PASSWD]] [--make-defaults] [--distro NAME] [--image NAME] [--iso PATH] [--boot-config NAME] [--attrib-group NAME] [--batch] [--interactive]

OPTIONAL ARGUMENTS

-h, --help

Print usage message and exit. Ignore trailing args, parse and ignore preceding args.

-v, --verbose

Increase verbosity.

-q, --quiet

Decrease verbosity.

-c, --config CONFIG

Specify a client configuration file CONFIG.

--make-defaults

If there are no attribute groups on this system, then automatically build an attribute group referencing a new boot configuration referencing a new image.

--distro NAME

Select the pre-existing distro NAME to use when creating an image.

--iso PATH

Create a repo and distro from the local or remote base distribution ISO, where PATH is a pathname or a URL.

--image NAME

Select the pre-existing image NAME this command should use.

--boot-config NAME

Name the boot configuration as NAME.

--attrib-group NAME

Name the new attribute group as NAME.

--batch

Run this command using the default options.

--interactive

Run this command interactively.

ARGUMENTS TO OVERRIDE BASIC CONFIGURATION DETAILS

--base-url URL

Specify the base URL of the ClusterWare REST API.

-u, --user USER[:PASSWD]

Masquerade as user USER with optional colon-separated password PASSWD.

EXAMPLES

This tool is used internally by the scyld-install tool to populate the initial (or cleared) database with the objects necessary to boot compute nodes. When run on a database with no attribute groups defined and passed the --auto-first argument this script will not ask the user any questions and will use default values. This should not be necessary for an administrator to run unless they have manually cleared the database using the managedb clear command:

scyld-add-boot-config --make-defaults

Rebuild the DefaultImage and DefaultBoot.

scyld-add-boot-config --iso Rocky-9.5-x86_64-dvd.iso

Use the named ISO file to build a distro and repo named Rocky-9.5-x86_64-dvd, and manually accept defaults that create a boot image and boot configuration, all named Rocky-9.5-x86_64-dvd.

scyld-add-boot-config --iso Rocky-9.5-x86_64-dvd.iso \
     --image Rocky-9.5-Image --boot-config Rocky-9.5-boot --batch

Use the named ISO file in hands-off batch mode to build a repo and distro, both named Rocky-9.5-x86_64-dvd, a boot image named Rocky-9.5-Image and a boot config named Rocky-9.5-boot.

RETURN VALUES

Upon successful completion, scyld-add-boot-config returns 0. On failure, an error message is printed to stderr and scyld-add-boot-config returns 1.