Skip to content

Commit

Permalink
Adds pre/post boot and node roles
Browse files Browse the repository at this point in the history
As per kubernetes-sigs/image-builder#894 issue
upstream project opened to use custom Ansible roles pre/post boot of the
node and also pre/post node provisioning.

This opens doors to customize image built for custom requirements, for
example if deployment needs to happen in offline environment that has no
access to the internet and would require to update system with required
changes to look for packages on internal proxies instead.

Also allows to provide extra updates to the system before Kubernetes is
installed along with extra tweaks after.
  • Loading branch information
vasyl-purchel committed Sep 7, 2023
1 parent f2321a0 commit a12f7a5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions projects/aws/image-builder/builder/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ type BaremetalConfig struct {
IsoConfig
RhelConfig
ExtraPackagesConfig
ExtraOverridesConfig
}

type CloudstackConfig struct {
Expand Down Expand Up @@ -130,3 +131,12 @@ type ExtraPackagesConfig struct {
ExtraRepos string `json:"extra_repos,omitempty"`
ExtraRpms string `json:"extra_rpms,omitempty"`
}

type ExtraOverridesConfig struct {
FirstbootCustomRolesPre string `json:"firstboot_custom_roles_pre,omitempty"`
FirstbootCustomRolesPost string `json:"firstboot_custom_roles_post,omitempty"`
NodeCustomRolesPre string `json:"node_custom_roles_pre,omitempty"`
NodeCustomRolesPost string `json:"node_custom_roles_post,omitempty"`
DisablePublicRepos bool `json:"disable_public_repos,omitempty"`
ReenablePublicRepos bool `json:"reenable_public_repos,omitempty"`
}

0 comments on commit a12f7a5

Please sign in to comment.