NAME

Sysync::File - Use Sysync with flat-files on the backend.

SYNOPSIS

See: http://sysync.nongnu.org/tutorial.html

METHODS

get_user_password

Return a user's encrypted password.

set_user_password

Set a user's password.

get_host_files

Generate a list of files with their content.

Returns hashref:
'/etc/filename.conf' => {
   mode     => 600,
   gid      => 0,
   uid      => 0,
   data     => 'data is here'
}

is_valid_host

Returns true if host is valid.

is_valid_user

Returns true if user is valid.

get_host_users_groups

Get both users and groups for a specific host.

get_user

Returns hashref of user information.

Unless "hard-coded", the user's password will not be returned in this hashref.

get_all_users

Returns an array of all usernames.

get_all_hosts

get_all_groups

Returns array of groups

get_users_from_group

Returns array of users in a given group

must_refresh

Returns true if sysync must refresh.

Passing 1 or 0 as an argument sets whether this returns true.

must_refresh_files

Returns true if sysync must refresh managed files.

Passing 1 or 0 as an argument sets whether this returns true.

COPYRIGHT

2012 Ohio-Pennsylvania Software, LLC.

LICENSE

Copyright (C) 2012 Ohio-Pennsylvania Software, LLC.

This file is part of Sysync.

Sysync is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

Sysync is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

AUTHOR

Michael J. Flickinger, <mjflick@gnu.org>