<commit_before>#
# Cookbook Name:: basics
# Recipe:: sshusers
#
# Copyright 2012, Cogini
#
# All rights reserved - Do Not Redistribute
#

sshusers = node[:sshusers]

service node[:ssh][:service] do
    supports :restart => true
end

sshusers.each do |username|
    user username do
        home "/home/#{username}"
        supports :manage_home => true
        action :create
    end
end

group 'sshusers' do
    members sshusers
    action :create
end

template '/etc/ssh/sshd_config' do
    source 'sshd-config.erb'<commit_msg>give them a proper shell<commit_after>#
# Cookbook Name:: basics
# Recipe:: sshusers
#
# Copyright 2012, Cogini
#
# All rights reserved - Do Not Redistribute
#

sshusers = node[:sshusers]

service node[:ssh][:service] do
    supports :restart => true
end

sshusers.each do |username|
    user username do
        home "/home/#{username}"
        shell '/bin/bash'
        supports :manage_home => true
        action :create
    end
end

group 'sshusers' do
    members sshusers
    action :create
end

template '/etc/ssh/sshd_config' do
    source 'sshd-config.erb'
{'fraction_non_alphanumeric': 0.10593607305936073, 'fraction_numerical': 0.0073059360730593605, 'mean_word_length': 3.1358490566037736, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3189223', 'n_tokens_mistral': 381, 'n_tokens_neox': 358, 'n_words': 109}