Skip to content

Commit fb3bedf

Browse files
committed
[All] Customize Secure_path
1 parent 22ddbda commit fb3bedf

File tree

6 files changed

+38
-0
lines changed

6 files changed

+38
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{- $paths := list }}
2+
3+
{{- $paths = append $paths "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -}}
4+
5+
Defaults secure_path="{{ join ":" $paths }}"

lazy.ansible/test/goss.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ command:
7575
exit-status: 0
7676
stdout:
7777
- "/\\d+\\.\\d+\\.\\d+/"
78+
# Sudoers
79+
sudo echo $PATH:
80+
exit-status: 0
81+
stdout:
82+
- /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
7883
# Goss
7984
goss --version:
8085
exit-status: 0
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{- $paths := list }}
2+
3+
{{- if .Vars.system.gcloud.version -}}
4+
{{- $paths = append $paths "/usr/local/share/google-cloud-sdk/bin" -}}
5+
{{- end }}
6+
7+
{{- if .Vars.system.krew.version -}}
8+
{{- $paths = append $paths "/usr/local/share/krew/bin" -}}
9+
{{- end }}
10+
11+
{{- $paths = append $paths "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -}}
12+
13+
Defaults secure_path="{{ join ":" $paths }}"

lazy.kubernetes/test/goss.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ command:
6161
exit-status: 0
6262
stdout:
6363
- "/\\d+\\.\\d+\\.\\d+/"
64+
# Sudoers
65+
sudo echo $PATH:
66+
exit-status: 0
67+
stdout:
68+
- /usr/local/share/google-cloud-sdk/bin:/usr/local/share/krew/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
6469
# Goss
6570
goss --version:
6671
exit-status: 0
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{- $paths := list }}
2+
3+
{{- $paths = append $paths "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -}}
4+
5+
Defaults secure_path="{{ join ":" $paths }}"

lazy.symfony/test/goss.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ command:
6969
exit-status: 0
7070
stdout:
7171
- "/\\d+\\.\\d+\\.\\d+/"
72+
# Sudoers
73+
sudo echo $PATH:
74+
exit-status: 0
75+
stdout:
76+
- /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
7277
# Goss
7378
goss --version:
7479
exit-status: 0

0 commit comments

Comments
 (0)