Skip to content

Commit

Permalink
Added MunkiReport-Python2 and 3 recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbpirie committed May 18, 2022
1 parent 5d0c883 commit 45d6105
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 0 deletions.
26 changes: 26 additions & 0 deletions MunkiReport/MunkiReport-Python2.download.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Description: |
Downloads the current release pkg of MunkiReportPython2 from Github.
Set PRERELEASE to a non-empty string to download prereleases, either
via Input in an override or via the -k option,
i.e.: `-k PRERELEASE=yes`
Optionally override GITHUB_REPO to 'munkireport/MunkiReport-Python'
Identifier: com.github.davidbpirie.download.MunkiReportPython2
MinimumVersion: 2.3.0

Input:
NAME: MunkiReportPython2
PRERELEASE: ''
GITHUB_REPO: 'MagerValp/MunkiReport-Python'

Process:
- Processor: GitHubReleasesInfoProvider
Arguments:
asset_regex: 'MunkiReportPython2-2\..*\.pkg'
github_repo: '%GITHUB_REPO%'
include_prereleases: '%PRERELEASE%'

- Processor: URLDownloader
Arguments:
filename: '%NAME%-%version%.pkg'

- Processor: EndOfCheckPhase
34 changes: 34 additions & 0 deletions MunkiReport/MunkiReport-Python2.munki.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Description: |
Downloads the current release pkg of MunkiReportPython2 from Github,
then imports to munki.
Set PRERELEASE to a non-empty string to download prereleases, either
via Input in an override or via the -k option,
i.e.: `-k PRERELEASE=yes`
Optionally override GITHUB_REPO to 'munkireport/MunkiReport-Python'
Identifier: com.github.davidbpirie.munki.MunkiReportPython2
ParentRecipe: com.github.davidbpirie.download.MunkiReportPython2
MinimumVersion: 2.3.0

Input:
NAME: MunkiReportPython2
MUNKI_DISPLAYNAME: MunkiReport Python 2
MUNKI_DESCRIPTION: Python 2 interpreter for MunkiReport.
MUNKI_CATEGORY: Utilities
MUNKI_DEVELOPER: MunkiReport
MUNKI_REPO_SUBDIR: '%MUNKI_CATEGORY%/%MUNKI_DEVELOPER%/%NAME%'
pkginfo:
catalogs:
- testing
category: '%MUNKI_CATEGORY%'
description: '%MUNKI_DESCRIPTION%'
developer: '%MUNKI_DEVELOPER%'
display_name: '%MUNKI_DISPLAYNAME%'
name: '%NAME%'
unattended_install: true
unattended_uninstall: true

Process:
- Processor: MunkiImporter
Arguments:
pkg_path: '%pathname%'
repo_subdirectory: '%MUNKI_REPO_SUBDIR%'
26 changes: 26 additions & 0 deletions MunkiReport/MunkiReport-Python3.download.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Description: |
Downloads the current release pkg of MunkiReportPython3 from Github.
Set PRERELEASE to a non-empty string to download prereleases, either
via Input in an override or via the -k option,
i.e.: '-k PRERELEASE=yes'
Optionally override GITHUB_REPO to 'munkireport/MunkiReport-Python'
Identifier: com.github.davidbpirie.download.MunkiReportPython3
MinimumVersion: 2.3.0

Input:
NAME: MunkiReportPython3
PRERELEASE: ''
GITHUB_REPO: 'MagerValp/MunkiReport-Python'

Process:
- Processor: GitHubReleasesInfoProvider
Arguments:
asset_regex: 'MunkiReportPython3-3\..*\.pkg'
github_repo: '%GITHUB_REPO%'
include_prereleases: '%PRERELEASE%'

- Processor: URLDownloader
Arguments:
filename: '%NAME%-%version%.pkg'

- Processor: EndOfCheckPhase
34 changes: 34 additions & 0 deletions MunkiReport/MunkiReport-Python3.munki.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Description: |
Downloads the current release pkg of MunkiReportPython3 from Github,
then imports to munki.
Set PRERELEASE to a non-empty string to download prereleases, either
via Input in an override or via the -k option,
i.e.: `-k PRERELEASE=yes`
Optionally override GITHUB_REPO to 'munkireport/MunkiReport-Python'
Identifier: com.github.davidbpirie.munki.MunkiReportPython3
ParentRecipe: com.github.davidbpirie.download.MunkiReportPython3
MinimumVersion: 2.3.0

Input:
NAME: MunkiReportPython3
MUNKI_DISPLAYNAME: MunkiReport Python 3
MUNKI_DESCRIPTION: Python 3 interpreter for MunkiReport.
MUNKI_CATEGORY: Utilities
MUNKI_DEVELOPER: MunkiReport
MUNKI_REPO_SUBDIR: '%MUNKI_CATEGORY%/%MUNKI_DEVELOPER%/%NAME%'
pkginfo:
catalogs:
- testing
category: '%MUNKI_CATEGORY%'
description: '%MUNKI_DESCRIPTION%'
developer: '%MUNKI_DEVELOPER%'
display_name: '%MUNKI_DISPLAYNAME%'
name: '%NAME%'
unattended_install: true
unattended_uninstall: true

Process:
- Processor: MunkiImporter
Arguments:
pkg_path: '%pathname%'
repo_subdirectory: '%MUNKI_REPO_SUBDIR%'

0 comments on commit 45d6105

Please sign in to comment.