-
Notifications
You must be signed in to change notification settings - Fork 1
/
auth.conf
70 lines (55 loc) · 1.41 KB
/
auth.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# vim: set syn=perl:
use lib 'lib';
use PkgBuilder;
BEGIN {
if(exists $ENV{rex_feature}) {
require Rex;
my @features = split(/ /, $ENV{rex_feature});
Rex->import(-feature => [@features]);
}
};
user $ENV{REXUSER};
password $ENV{REXPASS};
pass_auth;
parallelism 50;
#$Rex::Logger::debug = 1;
logging to_file => "/var/log/rex/rex-output-$$.log";
if ( exists $ENV{use_sudo} ) {
sudo_password $ENV{REXPASS};
sudo -on;
}
if ( exists $ENV{libssh2} ) {
set connection => 'SSH';
}
# due to problems with tty and Net::OpenSSH connection mode, we will test with no tty
#Rex::Config->set_no_tty(1);
Rex::Config->set_openssh_opt(
StrictHostKeyChecking => "no",
UserKnownHostsFile => "/dev/null",
LogLevel => "QUIET"
);
if ( exists $ENV{drone} ) {
set connection => 'Drone';
Rex::Config->set_openssh_opt(
StrictHostKeyChecking => "no",
UserKnownHostsFile => "/dev/null",
LogLevel => "QUIET"
);
}
if ( exists $ENV{TMP_DIR} ) {
tmp_dir $ENV{TMP_DIR};
}
if ( exists $ENV{distributor} ) {
set_distributor $ENV{distributor};
}
if ( exists $ENV{use_jumphost} ) {
set connection => 'OpenSSH';
Rex::Config->set_openssh_opt(
StrictHostKeyChecking => "no",
UserKnownHostsFile => "/dev/null",
LogLevel => "QUIET"
);
my $proxy_command = config->{proxy_command};
proxy_command $proxy_command;
}
group test => split( / /, $ENV{HTEST} );