Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Sep 26, 2024
1 parent f8629ac commit f43ac3e
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions cookbooks/boxcutter_site_settings/recipes/users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,39 +17,39 @@
# limitations under the License.

case node['platform']
when 'ubuntu'
%w{
adm
audio
cdrom
crontab
dip
gdm
gpio
i2c
lpadmin
nogroup
plugdev
render
root
sambashare
sudo
systemd-resolve
tcpdump
users
video
weston-launch
}.each do |group|
FB::Users.initialize_group(node, group)
end
when 'ubuntu'
%w{
adm
audio
cdrom
crontab
dip
gdm
gpio
i2c
lpadmin
nogroup
plugdev
render
root
sambashare
sudo
systemd-resolve
tcpdump
users
video
weston-launch
}.each do |group|
FB::Users.initialize_group(node, group)
end

node.default['fb_users']['users']['nobody'] = {
'shell' => '/usr/sbin/nologin',
'gid' => 'nogroup',
'home' => '/nonexistent',
'action' => :add,
'only_if' => proc { node.ubuntu? },
}
node.default['fb_users']['users']['nobody'] = {
'shell' => '/usr/sbin/nologin',
'gid' => 'nogroup',
'home' => '/nonexistent',
'action' => :add,
'only_if' => proc { node.ubuntu? },
}
when 'centos'
%w{
root
Expand Down

0 comments on commit f43ac3e

Please sign in to comment.