SIOS-Technology-Inc / dacrane

"Dacrane" is a Delivery as Code (DaC) tool for deploying cloud infrastructures and applications anywhere.
Apache License 2.0
61 stars 1 forks source link

Modules with dependencies cannot be called from modules #43

Closed t-ikeda-sti closed 10 months ago

t-ikeda-sti commented 10 months ago

For example, when you want to call a module that has a dependency, you cannot write the following.

- name: foo
  module: bar
  argument:
    a: 1
    b: true
  dependencies: # cannot be called

Abolish dependency and unify with argument.

For Example (dacrane.yaml)

- name: foo
  module: bar
  argument:
    a: 1
    b: true
    c: ${{ modules.baz }}

For Example (command)

$ dacrane apply -a '{ a:1, b:true, c:${{ instances.baz }} }' module instance
t-ikeda-sti commented 10 months ago

Implemented.