Added SSH configuration support
This commit is contained in:
parent
f2b1a43f62
commit
e892136c14
4 changed files with 61 additions and 0 deletions
|
@ -11,6 +11,20 @@ pub struct InstallConfig {
|
|||
pub pkg: PackageConfig,
|
||||
/// User Configuration
|
||||
pub user: Vec<UserConfig>,
|
||||
/// SSH Configuration
|
||||
pub ssh: Option<SSHConfig>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub struct SSHConfig {
|
||||
pub sshd_config: Option<String>,
|
||||
pub key: Vec<SSHKey>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub struct SSHKey {
|
||||
pub key: String,
|
||||
pub users: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue