providers/user.rb
def write_conf
  rsshusers = rssh_users
  t = template(new_resource.config_path) do
    source 'rssh.conf.erb'
    cookbook 'rssh'
    owner 'root'
    group 'root'
    mode '0644'
    variables(:options => node['rssh']['options'],
              :allow => node['rssh']['allow'],
              :users => rsshusers
             )
  end
  t.updated?
end
#
# Walk collection for :add rssh_user resources
# Build and write the config template
#
Walk collection for :add rssh_user resources
Build and write the config template
Walk collection for : add rssh_user resources Build and write the config template
def write_conf
  rsshusers = rssh_users
  t = template(new_resource.config_path) do
    source 'rssh.conf.erb'
    cookbook 'rssh'
    owner 'root'
    group 'root'
    mode '0644'
    variables(:options => node['rssh']['options'],
              :allow => node['rssh']['allow'],
              :users => rsshusers
             )
  end
  t.updated?
end
def write_conf rsshusers = rssh_users t = template ( new_resource . config_path ) do source 'rssh.conf.erb' cookbook 'rssh' owner 'root' group 'root' mode '0644' variables ( :options => node [ 'rssh' ] [ 'options' ] , :allow => node [ 'rssh' ] [ 'allow' ] , :users => rsshusers ) end t . updated? end
Walk collection for :add rssh_user resources
Build and write the config template
Walk collection for : add rssh_user resources Build and write the config template