8000 Usability/Management enhancement/usability request "SQL Dump" · Issue #1782 · cobbler/cobbler · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Usability/Management enhancement/usability request "SQL Dump" #1782
Open
@MichaelTiernan

Description

@MichaelTiernan

No, not SQL.

But, I'd really like it if I could ask Cobbler to dump a system (possibly other entry types too) using the same sort of logic one gets from a RDBMS when executing a "SQL Dump" type of command.

Yes 'cobbler system report --name foobar' gives the HUMAN readable format but I'd love to be able to get an output that I can capture and archive which would permit me to recreate the system entries in Cobbler directly.

Instead of getting a long textual output with all the settings the end system will receive (based on the profile, and inherited from other aspects of the definition) which looks like:

cobbler system report --name foobar
Name                           : foobar                                
TFTP Boot Files                : {}                                      
Comment                        : 
Enable gPXE?                   : False
Fetchable Files                : {}
Gateway                        :
Hostname                       : foobar.domain.my
Image                          :
IPv6 Autoconfiguration         : False
IPv6 Default Device            :
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : <<inherit>>
Kickstart Metadata             : {}
LDAP Enabled                   : False
LDAP Management Type           : authconfig
Management Classes             : ['development']
Management Parameters          : <<inherit>>

I'd rather get something more concise such as: (Wrapped for readability)

cobbler system remove --name foobar
cobbler system add --name foobar --hostname foobar.domain.my --profile drone \
    --status production --mgmt-classes="'drone'" --netboot-enabled No
cobbler system edit --name foobar --interface em1 --static Yes \
    --mac-address aa:bb:cc:dd:ee:ff --ip-address 10.x.x.x \
    --management Yes --netmask 255.0.0.0
cobbler system edit --name foobar --interface em2 --static Yes \
    --mac-address xxxxxxxxxxxxxxxxx --ip-address 10.2.15.103 \
    --management No --netmask 255.240.0.0

Anything not explicitly defined/altered at this level is more often than not an "<<inherit>>" from the profile or distribution above it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0