NAME
App::Manoc::Netwalker::Poller::ServerTask - Server poller task
VERSION
version 2.99.2
CONSUMED ROLES
* App::Manoc::Netwalker::Poller::BaseTask * App::Manoc::Logger::Role
ATTRIBUTES
server_id
The id in Manoc DB of the server to poll
server_entry
The Server row in Manoc DB identified by server_id
nwinfo
The curresponding ServerNWInfo row for server_entry
source
The source for information, i.e. a connected Manifold object.
config_source
The source for server configuration backup
task_report
METHODS
update
Update server information using data from source
. Reschedule next poll.
update_server_info
Called by update
, updates info in nwinfo
.
update_vm
If server is hosted on a virtual machine and the vm uuid is available, update the associated virtual machine in Manoc DB.
update_packages
Updates the list of software packages installed on the server
Requires a Manifold consuming the App::Manoc::ManifoldRole::Host role.
fetch_virtual_machines
If the server is an hypervisor update the list of its currently hosted virtual machines.
Requires a Manifold consuming the App::Manoc::ManifoldRole::Hypervisor role.
AUTHORS
Gabriele Mambrini <gmambro@cpan.org>
Enrico Liguori
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Gabriele Mambrini.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.