-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsofilab.conf.sample
More file actions
77 lines (69 loc) · 2.5 KB
/
sofilab.conf.sample
File metadata and controls
77 lines (69 loc) · 2.5 KB
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
71
72
73
74
75
76
77
# sofilab.conf.sample - SSH connection configuration template
# Copy this file to sofilab.conf and customize with your server details
# GLOBAL CONFIGURATION
# These settings control logging and other global behaviors
[global]
log_dir="logs" # Directory for log files (relative to script dir or absolute path)
log_level="INFO" # Logging level: DEBUG, INFO, WARN, ERROR
enable_logging="true" # Enable/disable logging: true or false
max_log_size="10M" # Maximum log file size before rotation (K/M/G suffix)
max_log_files="5" # Number of rotated log files to keep
script_exit_on_error="true" # Exit remote scripts on first error: true or false
force_tty="true" # Allocate TTY for run-script/run-scripts: true or false
# SERVER DEFINITIONS
# Simple format: [alias] followed by connection details
[pmx,pmx-home]
host="192.168.1.100"
user="root"
password="your_password_here"
port="22"
keyfile="ssh/pmx_key"
[router,rt]
host="192.168.1.1"
user="admin"
password="your_router_password"
port="22"
keyfile="ssh/router_key"
[server1,srv1]
host="10.0.0.10"
user="ubuntu"
password=""
port="22"
keyfile="ssh/server1_key"
[server2,srv2]
host="example.com"
user="deploy"
password="optional_password"
port="2222"
keyfile="ssh/server2_key"
# End of server definitions
# CONFIGURATION FORMAT REFERENCE:
#
# Global Configuration:
# [global]
# log_dir="logs" # Log directory path
# log_level="INFO" # DEBUG, INFO, WARN, ERROR
# enable_logging="true" # true or false
# max_log_size="10M" # Size with K/M/G suffix
# max_log_files="5" # Number of log files to keep
# script_exit_on_error="true" # Exit remote scripts on first error (true or false)
# force_tty="true" # Force TTY allocation for remote script execution (true or false)
#
# Server Configuration:
# [alias1,alias2,alias3]
# host="IP_ADDRESS or HOSTNAME"
# user="USERNAME"
# password="PASSWORD" (optional, leave empty for key-only auth)
# port="SSH_PORT" (optional, defaults to 22)
# keyfile="ssh/key_name" (optional, will auto-detect ssh/<alias>_key)
# scripts="script1.sh,script2.sh" (optional, comma-separated list)
#
# Authentication priority:
# 1. SSH key (if keyfile specified or ssh/<alias>_key exists)
# 2. Password (if specified)
# 3. Direct SSH (relies on SSH agent or default keys)
#
# Security notes:
# - SSH key authentication is recommended over passwords
# - Store SSH keys in the ssh/ directory
# - Keep this configuration file secure and don't commit real passwords to git