Merge branch 'master' into og-add-store-phase
This commit is contained in:
@@ -57,9 +57,9 @@ L<Docker images|https://store.docker.com/community/images/netdisco/netdisco> are
|
||||
=back
|
||||
|
||||
We have several other pages with tips for
|
||||
L<alternate deployment scenarios|https://github.com/netdisco/netdisco/wiki/Install-Tips>,
|
||||
L<installation tips|https://github.com/netdisco/netdisco/wiki/Install-Tips>,
|
||||
L<understanding and troubleshooting Netdisco|https://github.com/netdisco/netdisco/wiki/Troubleshooting>,
|
||||
L<tips and tricks for specific platforms|https://github.com/netdisco/netdisco/wiki/Vendor-Tips>,
|
||||
L<notes for specific device vendors|https://github.com/netdisco/netdisco/wiki/Vendor-Tips>,
|
||||
and L<all the configuration options|https://github.com/netdisco/netdisco/wiki/Configuration>.
|
||||
|
||||
You can also speak to someone in the C<#netdisco@freenode> IRC channel, or on
|
||||
@@ -70,16 +70,19 @@ L<Release Notes|https://github.com/netdisco/netdisco/wiki/Release-Notes>.
|
||||
=head1 Dependencies
|
||||
|
||||
Netdisco has several Perl library dependencies which will be automatically
|
||||
installed. However it's I<strongly> recommended that you first install
|
||||
L<DBD::Pg>, L<SNMP>, and a compiler using your operating system packages.
|
||||
installed. However it's required that you first install the following
|
||||
operating system packages:
|
||||
|
||||
On Ubuntu/Debian:
|
||||
|
||||
root:~# apt-get install libdbd-pg-perl libsnmp-perl libssl-dev libio-socket-ssl-perl build-essential
|
||||
root:~# apt-get install libdbd-pg-perl libsnmp-perl libssl-dev libio-socket-ssl-perl curl postgresql build-essential
|
||||
|
||||
On Fedora/Red-Hat:
|
||||
|
||||
root:~# yum install perl-core perl-DBD-Pg net-snmp-perl net-snmp-devel openssl-devel make automake gcc
|
||||
root:~# yum install perl-core perl-DBD-Pg net-snmp-perl net-snmp-devel openssl-devel curl postgresql-server postgresql-contrib make automake gcc
|
||||
root:~# postgresql-setup initdb
|
||||
root:~# systemctl start postgresql
|
||||
root:~# systemctl enable postgresql
|
||||
|
||||
On BSD systems please see L<our BSD tips|https://github.com/netdisco/netdisco/wiki/BSD-Install>.
|
||||
|
||||
@@ -104,9 +107,11 @@ application:
|
||||
|
||||
postgres:~$ createdb -O netdisco netdisco
|
||||
|
||||
The default PostgreSQL configuration isn't well tuned for modern server
|
||||
hardware. We strongly recommend that you use the C<pgtune> Python program to
|
||||
auto-tune your C<postgresql.conf> file:
|
||||
You may wish to L<amend the PostgreSQL
|
||||
configuration|https://github.com/netdisco/netdisco/wiki/Install-Tips#enable-md5-authentication-to-postgresql>
|
||||
so that local connections are working. The default PostgreSQL configuration
|
||||
also needs tuning for modern server hardware. We recommend that you use the
|
||||
C<pgtune> Python program to auto-tune your C<postgresql.conf> file:
|
||||
|
||||
=over 4
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package App::Netdisco::Transport::CLI;
|
||||
package App::Netdisco::Transport::SSH;
|
||||
|
||||
use Dancer qw/:syntax :script/;
|
||||
|
||||
@@ -11,14 +11,14 @@ use base 'Dancer::Object::Singleton';
|
||||
|
||||
=head1 NAME
|
||||
|
||||
App::Netdisco::Transport::CLI
|
||||
App::Netdisco::Transport::SSH
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
Returns an object which has an active SSH connection which can be used
|
||||
for some actions such as arpnip.
|
||||
|
||||
my $cli = App::Netdisco::Transport::CLI->session_for( ... );
|
||||
my $cli = App::Netdisco::Transport::SSH->session_for( ... );
|
||||
|
||||
=cut
|
||||
|
||||
@@ -6,7 +6,7 @@ use Dancer::Plugin::DBIC 'schema';
|
||||
use App::Netdisco::Worker::Plugin;
|
||||
use aliased 'App::Netdisco::Worker::Status';
|
||||
|
||||
use App::Netdisco::Transport::CLI ();
|
||||
use App::Netdisco::Transport::SSH ();
|
||||
use App::Netdisco::Transport::SNMP ();
|
||||
|
||||
use App::Netdisco::Util::Node qw/check_mac store_arp/;
|
||||
@@ -83,7 +83,7 @@ register_worker({ phase => 'main', driver => 'cli' }, sub {
|
||||
my ($job, $workerconf) = @_;
|
||||
|
||||
my $device = $job->device;
|
||||
my $cli = App::Netdisco::Transport::CLI->session_for($device)
|
||||
my $cli = App::Netdisco::Transport::SSH->session_for($device)
|
||||
or return Status->defer("arpnip failed: could not SSH connect to $device");
|
||||
|
||||
# should be both v4 and v6
|
||||
|
||||
Reference in New Issue
Block a user