Ansible Layer¶
The reusable Ansible-side layer currently lives under ansible/roles/remote_cluster/.
What it is¶
Despite the directory name, the current public interface is not a full playbook-first experience. The role mostly packages shared shell and Python helpers under files/ so multiple use cases can consume the same remote bootstrap logic.
Current consumers:
use-cases/onprem-basicuse-cases/aws-single-node
What it covers¶
- metadata rendering for declared nodes
- SSH reachability checks
- supported-platform validation
- Productive K3S bundle copy from
localorremotesource - orchestration of
server,agent, andstack - host alias synchronization
- shared remote validation
Key shared files¶
preflight.shcluster-up.shbootstrap-server.shbootstrap-agents.shbootstrap-stack.shvalidate-cluster.shrun_remote_bootstrap_session.pyrefresh-generated-artifacts.sh
Development guidance¶
When changing the shared remote layer:
- assume both
onprem-basicandaws-single-nodeare affected - preserve the generated metadata contract when possible
- keep telemetry propagation aligned with the current tests
- verify whether a use-case-local wrapper script also needs to change
Notes¶
Note
The public repository uses the role directory as a reuse boundary even before it exposes a fully playbook-driven operator interface. That is a deliberate incremental step.