Skip to content

A134-Change brick.yml version to differencies dependencies and input and add some fields #140

@arthur91f

Description

@arthur91f
version: 0.0.1
module: ansible

dependencies:
  EXEIAC_ANSIBLE_INVENTORY:
    from: it/app/instance:OUTPUT:$.address
    #trigger_type: classic                   # DEFAULT VALUE
    #needed_for: [ "lay", "plan", "remove" ] # DEFAULT DEFINE IN $HOME/.config/exeiac/exeiac.yml
    #trigger_action: [ "lay" ]               # DEFAULT VALUE
  ansible_ssh_user:
    from: it/app/instance:OUTPUT:$.credentials.username
    trigger_type: weak
  ansible_ssh_pass:
    from: it/app/instance:OUTPUT:$.credentials.password
    trigger_type: weak
  instance_memory:
    from: it/app/instance:OUTPUT:$.spec.memory
  bastion_address:
    from: it/bastion/instance:OUTPUT:$.public.address
    trigger_type: weak
  bastion_user:
    from: it/bastion/configuration:OUTPUT:$.conf_user.
    trigger_type: weak
  bastion_password:
    from: it/bastion/configuration:OUTPUT:$.conf_user.password
    trigger_type: weak
  instance_recreated:
    from: it/app/instance:EVENT:$.changed_resources_list
    trigger_type: contain("google_instance.app")
    needed_for: []

input:
  - type: env_vars
    format: env
    path: ""
    datas:
    - EXEIAC_ANSIBLE_INVENTORY
  - type: file
    format: env
    path: .env
    datas:
    - ansible_ssh_user
    - ansible_ssh_pass
    - bastion_adress
    - bastion_user
    - bastion_address```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions