第 61 章 软件

本章论述了 软件 命令下的命令。

61.1. 软件配置创建

创建软件配置

使用方法:

openstack software config create [-h]
                                        [-f {json,shell,table,value,yaml}]
                                        [-c COLUMN] [--max-width <integer>]
                                        [--fit-width] [--print-empty]
                                        [--noindent] [--prefix PREFIX]
                                        [--config-file <config-file>]
                                        [--definition-file <destination-file>]
                                        [--group <group>]
                                        <config-name>

表 61.1. 表格式

概述

--print-empty

如果没有要显示数据,则打印空表。

--max-width <integer>

最大显示宽度 <1 来禁用。您还可以使用 CLIFF_MAX_TERM_WIDTH 环境变量,但参数具有优先权。

--fit-width

适合显示宽度的表。如果 --max-width 大于 0,则意味着。将环境变量 CLIFF_FIT_WIDTH=1 设置为 always 启用

表 61.2. 位置参数

概述

<config-name>

要创建的软件配置的名称

表 61.3. 输出格式器

概述

output formatter options-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}

输出格式,默认为 json

-c COLUMN, --column COLUMN

指定要包含的列,可以重复

表 61.4. JSON Formatter

概述

--noindent

是否禁用缩进 json

表 61.5. 可选参数

概述

-h, --help

显示帮助信息并退出

--group <group>

软件配置期望的工具名

--config-file <config-file>

包含定义 <inputs>、<outputs> 和 <options> 的 map 的 json/yaml 的路径

--definition-file <destination-file>

软件配置脚本/数据的路径

表 61.6. shell Formatter

概述

格式化 UNIX shell 可以解析(variable="value")--prefix PREFIX

为所有变量名称添加前缀