Skip to content

Commit

Permalink
Merge pull request #1444 from 0ekk/link-facts
Browse files Browse the repository at this point in the history
Allow run playbook facts.yml in Kubean
  • Loading branch information
ErikJiang authored Dec 18, 2024
2 parents ffaf81a + 7504c84 commit 008bc3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build/images/spray-job/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ COPY playbooks/ /kubespray/
# Add extra python packages and collections needed for the playbooks
RUN python3 -m pip install toml
RUN ansible-galaxy collection install sivel.toiletwater

RUN ln -s playbooks/facts.yml facts.yml
3 changes: 2 additions & 1 deletion pkg/util/entrypoint/entrypoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const (
PBAction = "playbook"
SHAction = "shell"

FactsPB = "facts.yml"
ResetPB = "reset.yml"
ScalePB = "scale.yml"
ClusterPB = "cluster.yml"
Expand Down Expand Up @@ -65,7 +66,7 @@ func NewActions() *Actions {
actions.Types = []string{PBAction, SHAction}
actions.Playbooks = &Playbooks{}
actions.Playbooks.List = []string{
ResetPB, ScalePB, ClusterPB, RemoveNodePB, UpgradeClusterPB,
FactsPB, ResetPB, ScalePB, ClusterPB, RemoveNodePB, UpgradeClusterPB,
PingPB, RepoPB, FirewallPB, KubeconfigPB, ClusterInfoPB, UpdateHostsPB,
RemovePkgsPB, PreCheckPB, RenewCertsPB,
KubeVipConfigPB, ConfigInsecureRegistryPB, NfConntrackPB, MountXFSPquotaPB,
Expand Down

0 comments on commit 008bc3b

Please sign in to comment.