Get drive customers

This commit is contained in:
Micke Nordin 2023-08-22 17:14:07 +02:00
commit 3b58bcd2ae
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
2 changed files with 9 additions and 1 deletions

View file

@ -48,6 +48,13 @@ class sunetdrive::scriptreceiver()
owner => 'root',
group => 'root',
}
file { '/usr/local/bin/get_drive_customers':
ensure => file,
content => template('sunetdrive/scriptreceiver/get_drive_customers.erb.sh'),
mode => '0744',
owner => 'root',
group => 'root',
}
file { '/usr/local/bin/safer_reboot':
ensure => file,
content => template('sunetdrive/scriptreceiver/safer_reboot.erb'),

View file

@ -8,4 +8,5 @@ elif [[ "${mode}" == "single" ]]; then
else
filter='.fullnodes | join("\n")'
fi
cat /etc/hiera/data/common.yaml | yq -r "${filter}"
yq -r "${filter}" < /etc/hiera/data/common.yaml