2

When administering a Ganeti cluster, it is important to maintain one of the main assumptions Ganeti does: all nodes (at least inside the same group) are equal.

How can I run the same command on the entire cluster?

Full disclosure: I am being paid to work on Ganeti.

badp
  • 165
  • 10

1 Answers1

2

Ganeti by default replicates on all nodes the list of all nodes in this file:

/var/lib/ganeti/ssconf_node_list

Being a newline-separated list of fully qualified domain names, you can pass it directly to dsh:

dsh -M -f /var/lib/ganeti/ssconf_node_list \
  "apt-get install update && apt-get install upgrade"

Otherwise, gnt-cluster command also works:

gnt-cluster command \
  "apt-get install update && apt-get install upgrade"
badp
  • 165
  • 10