-
Notifications
You must be signed in to change notification settings - Fork 3
ws1_import_new_only
The ws1_import_new_only
key can be set to false
to upload the latest version of packages, package info plists, and package icons from a Munki repo into WorkSpace ONE.
If you are using ws1_app_assignments
to automate new assignments in stages, you will need to set ws1_import_new_only
to false
so imported app versions from earlier Autopkg runs are processed again for new assignments.
Defaults to true
- meaning only if a set of files was imported into Munki in this session, it will be uploaded to WorkSpace ONE.
#### Example Usage:
The recommended way to pass this setting is in your GitHub Action workflow or in your launcher script if running for testing on your local Mac.
in a workflow yaml file, env section
AUTOPKG_ws1_update_assignments: ${{ github.events.inputs.ws1_update_assignments || 'True' }}
in a launcher script
export AUTOPKG_ws1_import_new_only="false"
Run autopkg on command-line and add argument
--key ws1_import_new_only=false
It is also possible to add the setting to the input variables of your recipe, but in this case you would need to add it to all your recipes.
<key>ws1_import_new_only</key>
<string>false</string>
Required: False
Input Variables:
- ws1_api_url
- ws1_oauth_client_id
- ws1_oauth_client_secret
- ws1_oauth_token_url
- ws1_api_token
- ws1_api_username
- ws1_api_password
- ws1_b64encoded_api_credentials
- ws1_console_url
- ws1_force_import
- ws1_import_new_only
- ws1_groupid
- ws1_smart_group_name
- ws1_push_mode
- ws1_app_assignments
- ws1_update_assignments
- ws1_app_versions_prune
- ws1_app_versions_to_keep
- ws1_app_versions_to_keep_default