Skip to content

Commit b98b432

Browse files
authored
Update example file
Update the example file to match the wiki
1 parent b0dda1c commit b98b432

File tree

1 file changed

+84
-24
lines changed

1 file changed

+84
-24
lines changed

examples/example_catalog.yaml

Lines changed: 84 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,91 @@
11
---
2+
GoogleChrome:
3+
display_name: Google Chrome
4+
check:
5+
registry:
6+
name: Google Chrome
7+
version: 68.0.3440.106
8+
installer:
9+
hash: ce9c44417489d6c1f205422a4b9e8d5181d1ac24b6dcae3bd68ec315efdeb18b
10+
location: packages/google-chrome/GoogleChrome.68.0.3440.106.nupkg
11+
type: nupkg
12+
version: 68.0.3440.106
213

3-
ChefClient:
4-
display_name: Chef Client
5-
install_check_script: |
6-
$latest = "14.3.37"
7-
$current = C:\opscode\chef\bin\chef-client.bat --version
8-
$current = $current.Split(" ")[1]
9-
$upToDate = [System.Version]$current -ge [System.Version]$latest
10-
If ($upToDate) {
11-
exit 1
12-
} Else {
13-
exit 0
14-
}
15-
installer_item_location: packages/chef-client/chef-client-14.3.37-1-x64.msi
16-
installer_item_hash: f5ef8c31898592824751ec2252fe317c0f667db25ac40452710c8ccf35a1b28d
17-
version: 14.3.37
18-
uninstall_method: msi
14+
ColorPrinter:
15+
dependencies:
16+
- Canon-Drivers
17+
display_name: Color Printer
18+
installer:
19+
hash: a8b4ff8bc7d77036644c1ed04713c550550f180e08da786fbca784818b918dac
20+
location: packages/colorprinter.1.0.nupkg
21+
type: nupkg
22+
version: 1.0
23+
24+
CanonDrivers:
25+
display_name: Canon Printer Drivers
26+
installer:
27+
hash: ca784818b91850f180e08da786ac1ed04713c5a8b4ff8bc7d77036644dac505aec
28+
location: packages/Canon-Drivers.1.0.nupkg
29+
type: nupkg
30+
version: 1.0
1931

2032
Chocolatey:
2133
display_name: Chocolatey
22-
install_check_path: C:\ProgramData\chocolatey\bin\choco.exe
23-
installer_item_location: packages/chocolatey/chocolateyInstall.ps1
24-
installer_item_hash: 38cf17a230dbe53efc49f63bbc9931296b5cea84f45ac6528ce60767fe370230
34+
check:
35+
file:
36+
- path: C:\ProgramData\chocolatey\bin\choco.exe
37+
hash: bd82a10e75c5be624d916557b3d711a867d40bedd7b9e4be862eadb74f622e37
38+
installer:
39+
location: packages/chocolatey/chocolateyInstall.ps1
40+
hash: 38cf17a230dbe53efc49f63bbc9931296b5cea84f45ac6528ce60767fe370230
41+
type: ps1
2542
version: 1.0
2643

27-
GoogleChrome:
28-
display_name: Google Chrome
29-
installer_item_location: packages/google-chrome/GoogleChrome.68.0.3440.106.nupkg
30-
installer_item_hash: ce9c44417489d6c1f205422a4b9e8d5181d1ac24b6dcae3bd68ec315efdeb18b
31-
version: 68.0.3440.106
44+
ChefClient:
45+
display_name: Chef Client
46+
check:
47+
script: |
48+
$latest = "14.3.37"
49+
$chefPath = "C:\opscode\chef\bin\chef-client.bat"
50+
If (![System.IO.File]::Exists($chefPath)) {
51+
exit 0
52+
}
53+
$current = C:\opscode\chef\bin\chef-client.bat --version
54+
$current = $current.Split(" ")[1]
55+
$upToDate = [System.Version]$current -ge [System.Version]$latest
56+
If ($upToDate) {
57+
exit 1
58+
} Else {
59+
exit 0
60+
}
61+
installer:
62+
location: packages/chef-client/chef-client-14.3.37-1-x64.msi
63+
hash: f5ef8c31898592824751ec2252fe317c0f667db25ac40452710c8ccf35a1b28d
64+
type: msi
65+
uninstaller:
66+
location: packages/chef-client/chef-client-14.3.37-1-x64.msi
67+
hash: f5ef8c31898592824751ec2252fe317c0f667db25ac40452710c8ccf35a1b28d
68+
type: msi
69+
version: 14.3.37
70+
71+
vlc:
72+
display_name: VLC
73+
check:
74+
file:
75+
- path: C:\Program Files (x86)\VideoLAN\VLC\vlc.exe
76+
version: 3.0.3
77+
installer:
78+
location: packages/apps/vlc/vlc-3.0.3-win32.exe
79+
hash: 65bf42b15a05b13197e4dd6cdf181e39f30d47feb2cb6cc929db21cd634cd36f
80+
arguments:
81+
- /L=1033
82+
- /S
83+
type: exe
84+
uninstaller:
85+
location: packages/apps/vlc/vlc-3.0.3-uninstall.exe
86+
hash: 676dcb69da99728feb8af3231e863dbb9639dc09f409749a74dd5c08dc2fb809
87+
arguments:
88+
- /S
89+
type: exe
90+
version: 3.0.3
91+

0 commit comments

Comments
 (0)