我尝试测试一个 charm,但它有配置选项,而我却不知道。浏览魅力本身我如何才能看到 charm 有哪些配置选项?
答案1
juju get
然后,charm 名称会告诉您它具有哪些配置选项以及当前值是什么(如果有)。
jorge@lowgirl:~/src/oneiric$ juju get statusnet
charm: local:oneiric/statusnet-1
service: statusnet
settings:
email:
description: The email address of the administrator (cannot be changed)
type: string
value: -Not set-
nickname:
description: The nickname for the administrator (cannot be changed)
type: string
value: -Not set-
password:
description: The password for the administrator
type: string
value: -Not set-
title:
description: The name of the site
type: string
value: Untitled
juju set
然后将传递配置,如下所示:
juju set statusnet email="[email protected]" nickname="jorge" password="whatever"
每个命令都有相应的文档:
juju get --help
juju set --help