-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
salt: package & install httpd-tools on Bootstrap node
We need `htpasswd` to generate password hashes for the Dex static user. The htpasswd is provided by httpd-tools on redhat based os Fixes: #2352
- Loading branch information
Showing
6 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
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 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 |
---|---|---|
|
@@ -5,3 +5,4 @@ include: | |
- metalk8s.repo.installed | ||
- metalk8s.salt.master | ||
- metalk8s.kubectl | ||
- metalk8s.utils |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
# | ||
# Available states | ||
# ================ | ||
# | ||
# * installed -> install the given utility | ||
# | ||
# | ||
# | ||
|
||
include: | ||
- .installed |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{%- from "metalk8s/macro.sls" import pkg_installed with context %} | ||
include: | ||
- metalk8s.repo | ||
{%- if grains['os_family'].lower() == 'redhat' %} | ||
Install httpd-tools: | ||
{{ pkg_installed('httpd-tools') }} | ||
- require: | ||
- test: Repositories configured | ||
{% else %} | ||
Os family is debian-based: | ||
test.succeed_without_changes: [] | ||
{%- endif %} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# | ||
# State to install utilities . | ||
# | ||
# Available states | ||
# ================ | ||
# | ||
# | ||
|
||
include: | ||
- .httpd-tools |