autopkg / filewave Goto Github PK
View Code? Open in Web Editor NEWFileWave recipes for AutoPkg, allowing admins to automatically import/update packages into FileWave
FileWave recipes for AutoPkg, allowing admins to automatically import/update packages into FileWave
Here's a processor that could be added in order to prevent recipe creators from having to know/look up the bundle identifier of the app:
<dict>
<key>Processor</key>
<string>PlistReader</string>
<key>Arguments</key>
<dict>
<key>info_path</key>
<string>%pathname%/%NAME%.app/Contents/Info.plist</string>
<key>plist_keys</key>
<dict>
<key>CFBundleIdentifier</key>
<string>fw_app_bundle_id</string>
<key>CFBundleShortVersionString</key>
<string>version</string>
</dict>
</dict>
</dict>
That's for a dmg download like Adium. The following would be for a zip download like Evernote:
<dict>
<key>Processor</key>
<string>PlistReader</string>
<key>Arguments</key>
<dict>
<key>info_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/%NAME%.app/Contents/Info.plist</string>
<key>plist_keys</key>
<dict>
<key>CFBundleIdentifier</key>
<string>fw_app_bundle_id</string>
<key>CFBundleShortVersionString</key>
<string>version</string>
</dict>
</dict>
</dict>
With that in place, you could skip the fw_app_bundle_id
argument in the FileWaveImporter processor entirely.
Notice it also looks up the %version%
but that's only useful if another upstream processor doesn't already provide the version number (e.g. SparkleUpdateInfoProvider usually does provide version).
Autopkgr is sending errors on every run:
No JSON object could be decoded.
If I run a recipe, this is what I get:
autopkg run AdobeFlashPlayer.filewave
Processing AdobeFlashPlayer.filewave...
No JSON object could be decoded
Failed.
The following recipes failed:
AdobeFlashPlayer.filewave
Error in com.github.autopkg.filewave.FlashPlayerNoRepackage: Processor: com.github.autopkg.filewave.FWTool/FileWaveImporter: Error: No JSON object could be decoded
The following packages were copied:
Pkg Path
--------
/Users/server/Library/AutoPkg/Cache/com.github.autopkg.filewave.FlashPlayerNoRepackage/AdobeFlashPlayer-20.0.0.267.pkg
I am on the aforementioned version 10.1.0 on the admin and server, and I have tried the latest stable and release candidate builds of Autopkgr. This seems to have started with 10.1.0.
Here is one that I have that does not update the model after it runs (either in Autopkgr or via Terminal and autopkg).
<?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 version of Ardunio for Mac and imports into Filewave.</string>
<key>Identifier</key>
<string>com.github.joncohen.filewave.arduino</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>Arduino</string>
<key>fw_destination_root</key>
<string>/Applications/%NAME%.app</string>
</dict>
<key>MinimumVersion</key>
<string>0.2.0</string>
<key>ParentRecipe</key>
<string>com.github.jps3.download.Arduino</string>
<!--
Process based on the work from https://github.com/autopkg/peshay-recipes.git
-->
<key>Process</key>
<array>
<dict>
<key>Processor</key>
<string>Unarchiver</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>info_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/%NAME%.app</string>
<key>plist_keys</key>
<dict>
<key>CFBundleIdentifier</key>
<string>bundleid</string>
<key>CFBundleName</key>
<string>app_name</string>
<key>CFBundleShortVersionString</key>
<string>version</string>
</dict>
</dict>
<key>Processor</key>
<string>PlistReader</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>fw_app_bundle_id</key>
<string>%bundleid%</string>
<key>fw_app_version</key>
<string>%version%</string>
<key>fw_destination_root</key>
<string>%fw_destination_root%</string>
<key>fw_fileset_name</key>
<string>%NAME% - %version%</string>
<key>fw_import_source</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/%app_name%.app</string>
<key>fw_fileset_group</key>
<string>Arduino</string>
</dict>
<key>Processor</key>
<string>com.github.autopkg.filewave.FWTool/FileWaveImporter</string>
</dict>
</array>
</dict>
</plist>
I feel like I'm missing something but I'm not sure what.
FileWave recipes don't allow you to override the group in their current form. This would allow us to change the group where the filesets get uploaded to into the server. It would be ideal for this to be allowed, so that recipes can use %fw_fileset_group% in the actual FWImporter arguments. (For Example: https://macadmins.slack.com/files/elliotjordan/F0MQX0G3G/evernote.xml)
The end result would be two fold:
I've been using a mix of import recipes from here as well as ones that I have written. I'm coming from the Munki world where there is a common name key that tells Munki what is going on. With the FW imports, I'm getting filesets that are numbered based on each version, as well as new fileset IDs.
Since they are new filesets, I lose my associations and the clients don't get the update.
How do you work with this since I assume that you all use the recipes that you post here?
I know that I can import them to a group, and associate the fileset group to my clients but if I go that route, I lose the kiosk functionality or I will conversely need to manually update the kiosk.
Any feedback would be appreciated.
Seeing the following on FW recipes.
Processor com.github.autopkg.filewave.FWTool/FileWaveImporter contents differ from expected. Path: /Users/ladmin/Library/AutoPkg/RecipeRepos/com.github.autopkg.filewave/FWTool/FileWaveImporter.py
I am being emailed this error message regarding the Java8 recipe:
Could not retrieve URL http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:06 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:07 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:08 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:09 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:10 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:11 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:12 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:13 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:14 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:15 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:16 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:17 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:18 --:--:-- 0curl: (56) Recv failure: Operation timed out A Python exception occurred during the execution of autopkg, see the system log for more details. [ERROR] 'ascii' codec can't encode character u'\u2019' in position 223: ordinal not in range(128)
We use autopkg for Adobe products with FileWave. We have started to recieve these errors this morning and cannot figure out what is causing them.
Any help would be appreciated.
MikeM.
The following failures occurred:
RECIPE
com.github.autopkg.filewave.FlashPlayerNoRepackage
MESSAGE
Error in com.github.autopkg.filewave.FlashPlayerNoRepackage: Processor: URLDownloader: Error: Curl failure: The requested URL returned error: 404 Not Found (exit code 22)
The following errors occurred:
WARNING: com.github.autopkg.filewave.AdobeAIR is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding... WARNING: com.github.autopkg.filewave.FlashPlayerNoRepackage is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding... Curl failure: The requested URL returned error: 404 Not Found (exit code 22)
Now that intel vs arm64 are common, it would be handy if we could set the architecture in the recipe override as an input.
Hello,
We recently upgraded to FileWave 12.7.0 and have been getting consistent errors from AutoPkgr. I have confirmed that the user can still log into FW Admin. The command-line produces the same error.
sd95mdm1:Applications techsysadmin$ autopkg run FWTool.filewave
Processing FWTool.filewave...
WARNING: FWTool.filewave is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
Path to Admin Tool: /Applications/FileWave/FileWave Admin.app/Contents/MacOS/FileWave Admin
too many values to unpack
Failed.
The following recipes failed:
FWTool.filewave
Error in com.github.autopkg.filewave.FWTool: Processor: com.github.autopkg.filewave.FWTool/FWTool: Error: too many values to unpack
Nothing downloaded, packaged or imported.
Is there a problem with the FWTool, or something specific with our installation?
macOS Sierra v10.12.4
AutoPkgr v1.4.2 (1375)
Git 2.2.1
I did a fresh install of Sierra on my computer this spring. I just realized autopkgr wasn't installed. I installed it and ran . I received a "validation OK" result.
I can't get the Java8.filewave to upload. The pkg is sitting in my autopkg Cache but never moves to Filewave. I believe my autopkgr is working because I successfully uploaded the newest Flash fileset today.
Do you have any ideas on how to proceed?
from an autopkgr email:
The following packages were copied:
/Volumes/Data HD Yosemite/Users/rarobertsonjl/Library/AutoPkg/Cache/local.filewave.Java8/OracleJava8-1.8.131.11.pkg
/Volumes/Data HD Yosemite/Users/rarobertsonjl/Library/AutoPkg/Cache/local.filewave.AdobeFlashPlayer/AdobeFlashPlayer-25.0.0.163.pkg
I am receiving error messages when trying to configure autopkg. Here is all the information that I have.
I receive the following error message:
Error in com.github.autopkg.filewave.FlashPlayerNoRepackage: Processor: com.github.autopkg.filewave.FWTool/FileWaveImporter: Error: too many values to unpack
is there is list of allowed arguments available? for example: i would like to set additional properties of the filesets such as priority, verification settings, color, ignore permissions on existing folders and requirements - like below:
<dict>
<key>Arguments</key>
<dict>
<key>fw_app_bundle_id</key>
<string>com.github.techonecentre.filewave.%NAME%</string>
<key>fw_app_version</key>
<string>%version%</string>
<key>fw_destination_root</key>
<string>/Applications/%NAME%.app</string>
<key>fw_fileset_group</key>
<string>AutoPkg_Updates</string>
<key>fw_fileset_name</key>
<string>%NAME% - %version%</string>
<key>fw_import_source</key>
<string>%RECIPE_CACHE_DIR%/%NAME%/Applications/%NAME%.app</string>
</dict>
<key>Processor</key>
<string>com.github.autopkg.filewave.FWTool/FileWaveImporter</string>
</dict>
The following errors come up when I'm running the AdobeAir.filewave, GoogleChrome.filewave, and the Java8.filewave recipes.
com.github.autopkg.filewave.AdobeAIR Error in com.github.autopkg.filewave.AdobeAIR: Processor: com.github.autopkg.filewave.FWTool/FileWaveImporter: Error: LooseVersion instance has no attribute 'version'
com.github.autopkg.filewave.google-chrome Error in com.github.autopkg.filewave.google-chrome: Processor: com.github.autopkg.filewave.FWTool/FileWaveImporter: Error: LooseVersion instance has no attribute 'version'
com.github.autopkg.filewave.OracleJava8 Error in com.github.autopkg.filewave.OracleJava8: Processor: com.github.autopkg.filewave.FWTool/FileWaveImporter: Error: LooseVersion instance has no attribute 'version'
Using AutoPkgr 1.4 with AutoPkg 0.6.1, Git 2.2.1, and FileWaveImporter.
I have been successful with the OracleJava8 and AdobeFlashPlayer recipes the past two days. Silverlight, however, keeps erroring out. I have attached the log file because copying it into this message wasn't easily readable.
Can anyone offer insight into how I should proceed? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.