Skip to content

Instantly share code, notes, and snippets.

@nmcspadden
Last active February 4, 2016 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmcspadden/18684a806ca521ce7ca5 to your computer and use it in GitHub Desktop.
Save nmcspadden/18684a806ca521ce7ca5 to your computer and use it in GitHub Desktop.
ChefDK.download.recipe
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string>Downloads the latest Chef DK for Mac version.</string>
<key>Identifier</key>
<string>com.facebook.autopkg.download.chefdk</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>Chef</string>
<key>OS</key>
<string>10.11</string>
<key>URL</key>
<string>https://downloads.chef.io/chef-dk/mac/</string>
</dict>
<key>MinimumVersion</key>
<string>0.2.0</string>
<key>Process</key>
<array>
<dict>
<key>Processor</key>
<string>URLTextSearcher</string>
<key>Arguments</key>
<dict>
<key>url</key>
<string>%URL%</string>
<key>re_pattern</key>
<string>(mac_os_x\/%OS%\/x86_64\/chefdk-(.*?)\.dmg)</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>URLDownloader</string>
<key>Arguments</key>
<dict>
<key>filename</key>
<string>%NAME%.dmg</string>
<key>url</key>
<string>https://opscode-omnibus-packages.s3.amazonaws.com/%match%</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>EndOfCheckPhase</string>
</dict>
</array>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string>Downloads the latest Chef DK for Mac version and imports into Munki.</string>
<key>Identifier</key>
<string>com.facebook.autopkg.munki.chefdk</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>Chef</string>
<key>OS</key>
<string>10.11</string>
<key>MUNKI_REPO_SUBDIR</key>
<string>apps/%NAME%</string>
<key>pkginfo</key>
<dict>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
<key>category</key>
<string>Admin Tool</string>
<key>developer</key>
<string>Opscode</string>
<key>display_name</key>
<string>Chef DK</string>
<key>name</key>
<string>%NAME%</string>
<key>unattended_install</key>
<true/>
<key>minimum_os_version</key>
<string>10.7.0</string>
</dict>
</dict>
<key>MinimumVersion</key>
<string>0.2.0</string>
<key>ParentRecipe</key>
<string>com.facebook.autopkg.download.chefdk</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>pkg_path</key>
<string>%RECIPE_CACHE_DIR%/downloads/%NAME%.dmg</string>
<key>repo_subdirectory</key>
<string>%MUNKI_REPO_SUBDIR%</string>
</dict>
<key>Processor</key>
<string>MunkiImporter</string>
</dict>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment