File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33#
4- # Copyright 2015, Patrick Muench
4+ # Copyright:: 2015, Patrick Muench
55#
66# Licensed under the Apache License, Version 2.0 (the "License");
77# you may not use this file except in compliance with the License.
2929shadow_group = 'shadow' if os . debian? || os . suse? || os . name == 'alpine'
3030container_execution = begin
3131 virtualization . role == 'guest' && virtualization . system =~ /^(lxc|docker)$/
32- rescue NoMethodError
33- false
32+ rescue NoMethodError
33+ false
3434end
3535
3636blacklist = input (
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33#
4- # Copyright 2015, Patrick Muench
4+ # Copyright:: 2015, Patrick Muench
55#
66# Licensed under the Apache License, Version 2.0 (the "License");
77# you may not use this file except in compliance with the License.
2121
2222container_execution = begin
2323 virtualization . role == 'guest' && virtualization . system =~ /^(lxc|docker)$/
24- rescue NoMethodError
25- false
24+ rescue NoMethodError
25+ false
2626end
2727
2828control 'package-01' do
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33#
4- # Copyright 2015, Patrick Muench
4+ # Copyright:: 2015, Patrick Muench
55#
66# Licensed under the Apache License, Version 2.0 (the "License");
77# you may not use this file except in compliance with the License.
2323kernel_modules_disabled = input ( 'kernel_modules_disabled' , value : 0 , description : 'Should loading of kernel modules be disabled?' )
2424container_execution = begin
2525 virtualization . role == 'guest' && virtualization . system =~ /^(lxc|docker)$/
26- rescue NoMethodError
27- false
26+ rescue NoMethodError
27+ false
2828end
2929
3030control 'sysctl-01' do
You can’t perform that action at this time.
0 commit comments