Merge branch 'main' into testing
This commit is contained in:
commit
a150d23f1a
|
@ -80,6 +80,10 @@ class sunetdrive::script (
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
provider => apt,
|
provider => apt,
|
||||||
}
|
}
|
||||||
|
package { 'xmlstarlet':
|
||||||
|
ensure => installed,
|
||||||
|
provider => apt,
|
||||||
|
}
|
||||||
$drive_version = '0.3.1'
|
$drive_version = '0.3.1'
|
||||||
if $facts['os']['distro']['id'] == 'Debian' {
|
if $facts['os']['distro']['id'] == 'Debian' {
|
||||||
$pip_cmd = 'pip3 install --break-system-packages'
|
$pip_cmd = 'pip3 install --break-system-packages'
|
||||||
|
|
|
@ -69,7 +69,7 @@ curl_cmd(){
|
||||||
fi
|
fi
|
||||||
local admin_app_password="<%= @admin_app_password %>"
|
local admin_app_password="<%= @admin_app_password %>"
|
||||||
domain="$(hostname -d)"
|
domain="$(hostname -d)"
|
||||||
curl -X "${method}" -u "admin:${admin_app_password}" "${payload[@]}" -H 'OCS-APIRequest: true' "https://${domain}/ocs/v2.php/apps/announcementcenter/api/v1/announcements${id}"
|
curl -s -X "${method}" -u "admin:${admin_app_password}" "${payload[@]}" -H 'OCS-APIRequest: true' "https://${domain}/ocs/v2.php/apps/announcementcenter/api/v1/announcements${id}"
|
||||||
}
|
}
|
||||||
curl_cmd "${method}" "${argument}"
|
curl_cmd "${method}" "${argument}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue