Skip to content

Commit

Permalink
[temp] Use dpkg_package for ubuntu platform
Browse files Browse the repository at this point in the history
Use it explicitly because `package` by default falls back onto
`apt_package`, which does not support the `source` attribute to
use a local file.

Signed-off-by: Jacopo De Amicis <[email protected]>
  • Loading branch information
jdeamicis committed Jan 31, 2024
1 parent daf5ec9 commit ca0ba1b
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,15 @@
action :create_if_missing
end

package "Install mountpoint-s3" do
source download_path
if platform?('ubuntu')
# The Chef apt_package resource does not support the source attribute, so we use the dpkg_package resource instead.
dpkg_package "Install mountpoint-s3" do
source download_path
end
else
package "Install mountpoint-s3" do
source download_path
end
end

execute 'mount slurmdbd configuration via S3' do
Expand Down

0 comments on commit ca0ba1b

Please sign in to comment.