agnosticd icon indicating copy to clipboard operation
agnosticd copied to clipboard

Decouple the create-inventory and the "ping all host" in the infra step

Open fridim opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Scenario:

the hosts i create in the infra step don't have cloud-init, and thus, i access them using a password.

I would like to be able to set that password using the ansible_ssh_pass variable in the post-infra of my config.

But the step:

  • name: Step 001.3 Configure Linux Hosts and Wait for Connection

Is part of the same infra playbook file and there is no hook.

Describe the solution you'd like

I'd like the step

  • name: Step 001.3 Configure Linux Hosts and Wait for Connection

to be after the post-infra step, so config creators will be able to configure access methods in their config.

Describe alternatives you've considered

Create a hook in https://github.com/redhat-cop/agnosticd/blob/development/ansible/cloud_providers/ec2_infrastructure_deployment.yml#L64

to be able to configure the access before ping is tried.

Additional context Problem raised by @makentenza

fridim avatar Apr 01 '20 13:04 fridim

If we are adding hooks, we should have documentation of them Otherwise sounds good :+1: just we should be consistent for all the cloud_providers

ezr-ondrej avatar Apr 01 '20 13:04 ezr-ondrej