stephrobert.scaleway.fleet_report role – Report on a Scaleway fleet, without touching it

Note

This role is part of the stephrobert.scaleway collection (version 0.8.0).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: ansible-galaxy collection install stephrobert.scaleway.

To use it in a playbook, specify: stephrobert.scaleway.fleet_report.

Entry point main – Report on a Scaleway fleet, without touching it

Synopsis

  • Instances by state, by zone and by tag, plus the load balancers. It creates nothing and changes nothing, which is what makes it safe to run first on an account you do not know.

  • It never counts a zone it could not read. A zone that does not answer is named as unmeasured rather than contributing a zero, and the totals are null rather than 0 when no zone answered at all.

  • The report is left in scaleway_fleet_report_result so a calling playbook can use it rather than read it.

Parameters

Parameter

Comments

scaleway_fleet_report_output

string

Which rendering to print. The report itself is returned whatever this says.

none prints nothing. It is for a caller that includes this role for its data, and for which a second report on screen is noise.

Choices:

  • "text" ← (default)

  • "json"

  • "markdown"

  • "snapshot"

  • "none"

scaleway_fleet_report_products

list / elements=string

Which products this report reads. Instance and Load Balancer by default, which is what it read before Kubernetes existed here.

k8s_cluster pulls in its pools and its nodes too, because a cluster that moves without its pools is half a memory. On an account with no cluster, asking for it makes every report carry a silent region, so it is never read for you.

Choices:

  • "instance"

  • "lb"

  • "k8s_cluster"

scaleway_fleet_report_zones

list / elements=string

The zones to ask. Defaults to what the contract declares.