定数

すべてのフォームで再利用できる自由なオブジェクト。


constants 属性

config.yaml の最上位の constants オブジェクト:

属性 説明
constants
object

Constants
Free object structure

Sometimes you want to have global-like variables. The constants section gives you all freedom. Whether it are objects, arrays, strings, numbers or booleans. They will be available in every form.

例:

1) Constants

constants:
  SERVERX: 172.16.0.1 # reference it later as $(SERVERX)
  VCENTER:
    fqdn: vcenter.demo.local  # reference it later as $(VCENTER.fqdn)
    ip: 172.16.0.2