Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(repo): use a PPA for the latest version of nextcloud-desktop #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nextcloud/client/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
# vim: ft=sls

include:
- .repo
- .install
15 changes: 15 additions & 0 deletions nextcloud/client/repo.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# vim: ft=sls

{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- set sls_package_install = tplroot ~ '.package.install' %}
{%- from tplroot ~ "/map.jinja" import nextcloud with context %}

{%- if grains["os"] == "Ubuntu" and nextcloud.get("use_ppa", True) %}
nextcloud--client--repo--ppa:
pkgrepo.managed:
- ppa: nextcloud-devs/client
- require_in:
- pkg: nextcloud-client-install-pkg-installed
{%- endif %}
2 changes: 2 additions & 0 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ nextcloud:
name: latest-19
pkg:
name: nextcloud
# Whether to use the official PPA in the case of Ubuntu; default: True
use_ppa: True

# The defaults from 'occ maintenance:install'
database:
Expand Down
Loading