pub struct Config {
pub linux_distro: String,
pub server_role: String,
pub security_level: String,
pub monitoring: bool,
pub backup_frequency: String,
pub deployed_apps: Vec<String>,
pub custom_firewall_rules: Vec<String>,
pub update_schedule: String,
pub use_containers: bool,
pub use_kubernetes: bool,
}
Expand description
Represents the configuration for the server setup and maintenance tool.
This struct contains all the necessary settings and options for configuring a server, including the operating system, security settings, and deployment options.
Fields§
§linux_distro: String
The Linux distribution being used (e.g., “ubuntu”, “centos”, “fedora”)
server_role: String
The role of the server (e.g., “web”, “database”, “application”)
security_level: String
The desired security level (e.g., “basic”, “intermediate”, “advanced”)
monitoring: bool
Whether to enable monitoring on the server
backup_frequency: String
The frequency of backups (e.g., “hourly”, “daily”, “weekly”)
deployed_apps: Vec<String>
A list of applications to be deployed on the server
custom_firewall_rules: Vec<String>
A list of custom firewall rules to be applied
update_schedule: String
The schedule for automatic updates (e.g., “daily”, “weekly”, “monthly”)
use_containers: bool
Whether to use containerization for deployments
use_kubernetes: bool
Whether to use Kubernetes for container orchestration