diff --git a/osprepare/main.go b/osprepare/main.go index 6fb99cb4e..295f940a7 100644 --- a/osprepare/main.go +++ b/osprepare/main.go @@ -50,6 +50,17 @@ type PackageRequirement struct { // ) type PackageRequirements map[string][]*PackageRequirement +// Required for absolutely core functionality across all Ciao components +var BootstrapRequirements = PackageRequirements{ + "ubuntu": { + {"/usr/bin/cephfs", "ceph-fs-common"}, + {"/usr/bin/ceph", "ceph-common"}, + }, + "clearlinux": { + {"/usr/bin/ceph", "storage-cluster"}, + }, +} + // CollectPackages returns a list of non-installed packages from // the PackageRequirements received func collectPackages(dist distro, reqs *PackageRequirements) []string { @@ -98,3 +109,9 @@ func PrepareOsDeps(reqs *PackageRequirements) { } } } + +// Bootstrap installs all the core dependencies required to bootstrap the core +// configuration of all Ciao components +func Bootstrap() { + PrepareOsDeps(&BootstrapRequirements) +}