This file is indexed.

/etc/maas/templates/power/virsh.template is in maas-cluster-controller 1.5.4+bzr2294-0ubuntu1.2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# -*- mode: shell-script -*-
#
# Control virtual system's "power" through virsh.
#

issue_virsh_command() {
python - << END
from provisioningserver.custom_hardware.virsh import power_control_virsh
power_control_virsh(
    {{repr(power_address).decode("ascii") | safe}},
    {{repr(power_id).decode("ascii") | safe}},
    {{repr(power_change).decode("ascii") | safe}},
    {{repr(power_pass).decode("ascii") | safe}},
)
END
}

issue_virsh_command