xlab-si / xopera-opera

xOpera orchestrator compliant with TOSCA YAML v1.3 in the making
https://xlab-si.github.io/xopera-docs/
Apache License 2.0
35 stars 14 forks source link

How to deploy to other IP than localhost? #242

Closed abitrolly closed 2 years ago

abitrolly commented 2 years ago

opera deploy runs all notebooks on localhost. I tried to set public_address and private_address, but they are ignored.

  node_templates:
    myserver:
      type: tosca.nodes.Compute
      attributes:
        public_address: 3.12.3.1
        private_address: 3.12.3.1

So how to deploy to different IP?

abitrolly commented 2 years ago

After going deep in xOpera code it appeared that host was set correctly from public_address https://github.com/xlab-si/xopera-opera/blob/49694282db95bb425b988117b90b629f898803ec/src/opera/template/node.py#L85

It was just my my playbook doing operations that don't require connection. Adding gather_facts: true to playbook made deployment process fail as expected.

gather_facts: true