Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit d0cd939

Browse files
committed
Autodetect filesystem instead of hardocding them
Signed-off-by: Christian Simon <simon@swine.de>
1 parent ddb2a42 commit d0cd939

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

puppet/modules/aws_ebs/spec/defines/mount_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
it 'should contain mount service' do
4545
should contain_service(mount_service_name).that_requires("Service[#{format_service_name}]")
46-
should contain_file("/etc/systemd/system/#{mount_service_name}").with_content(%r{Type=xfs})
46+
should contain_file("/etc/systemd/system/#{mount_service_name}").with_content(%r{Type=auto})
4747
should contain_file("/etc/systemd/system/#{mount_service_name}").with_content(%r{Where=/mnt/folder/test1})
4848
should contain_file("/etc/systemd/system/#{mount_service_name}").with_content(%r{What=/dev/xvdy})
4949
end

puppet/modules/aws_ebs/templates/volume.mount.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ After=<%= @format_service_name %>
66
[Mount]
77
What=<%= @device %>
88
Where=<%= @dest_path %>
9-
Type=<%= @filesystem %>
9+
Type=auto
1010

1111
[Install]
1212
WantedBy=multiuser.target

0 commit comments

Comments
 (0)