mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 03:32:04 +00:00
Remove trailing spaces in file docs/source/advanced/xcat-inventory/version_control_inventory.rst
This commit is contained in:
parent
f1b9e63405
commit
819c138812
@ -1,7 +1,7 @@
|
||||
Manage the xCAT Cluster Definition under Source Control
|
||||
=======================================================
|
||||
|
||||
The xCAT cluster inventory data, including global configuration and object definitions(node/osimage/passwd/policy/network/router), and the relationship of the objects, can be exported to a YAML/JSON file(**inventory file**) from xCAT Database, or be imported to xCAT Database from the inventory file.
|
||||
The xCAT cluster inventory data, including global configuration and object definitions(node/osimage/passwd/policy/network/router), and the relationship of the objects, can be exported to a YAML/JSON file(**inventory file**) from xCAT Database, or be imported to xCAT Database from the inventory file.
|
||||
|
||||
By managing the inventory file under source control system, you can manage the xCAT cluster definition under source control. This section presents a typical step-by-step scenario on how to manage cluster inventory data under ``git``.
|
||||
|
||||
@ -34,7 +34,7 @@ By managing the inventory file under source control system, you can manage the x
|
||||
git commit /git/cluster/mycluster.yaml -m "$(date "+%Y_%m_%d_%H_%M_%S"): replaced bad nodes; turn on xcatdebugmode; blah-blah"
|
||||
|
||||
6. ordinary cluster maintenance and operation, some issues are founded in current cluster, need to restore the current cluster configuration to commit no c95673 [1]_ ::
|
||||
|
||||
|
||||
cd /git/cluster
|
||||
git checkout c95673
|
||||
xcat-inventory import -f /git/cluster/mycluster.yaml
|
||||
@ -43,7 +43,7 @@ By managing the inventory file under source control system, you can manage the x
|
||||
|
||||
1. The cluster inventory data exported by ``xcat-inventory`` does not include intermidiate data, transiate data and historical data in xCAT DataBase, such as node status, auditlog table
|
||||
|
||||
2. We suggest you backup your xCAT database by ``dumpxCATdb`` before your trial on this feature, although we have run sufficient test on this
|
||||
2. We suggest you backup your xCAT database by ``dumpxCATdb`` before your trial on this feature, although we have run sufficient test on this
|
||||
|
||||
.. [1] When you import the inventory data to xCAT Database in step 6, there are 2 modes: ``clean mode`` and ``update mode``. If you choose the ``clean mode`` by ``xcat-inventory import -c|--clean``, all the objects definitions that are not included in the inventory file will be removed; Otherwise, only the objects included in the inventory file will be updated or inserted. Please choose the proper mode according to your need
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user