-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
76 additions
and
134 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ members = [ | |
"goldboot-image", | ||
"goldboot-linux", | ||
"goldboot-registry", | ||
"goldboot-repository", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
//! This module contains various common provisioners which may be included in | ||
//! image templates. Templates may also specify their own specialized | ||
//! provisioners for specific tasks. | ||
//! | ||
//! A provisioner is simply an operation to be performed on an image. | ||
|
||
use crate::ssh::SshConnection; | ||
use std::error::Error; | ||
|
||
pub mod ansible; | ||
pub mod exe; | ||
pub mod hostname; | ||
pub mod luks; | ||
pub mod shell; | ||
pub mod timezone; | ||
pub mod unix_account; | ||
|
||
pub trait Provisioner { | ||
/// A `Fabricator` performs some custom operation on an image at the very end of | ||
/// the casting process. When the various options in a `Mold` are not sufficient, | ||
/// fabricators can be used to compensate. | ||
pub trait Fabricator { | ||
fn run(&self, ssh: &mut SshConnection) -> Result<(), Box<dyn Error>>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.