From 6d84de272f13add850c7e553ff27916991b107a9 Mon Sep 17 00:00:00 2001 From: George Robinson Date: Wed, 20 Apr 2016 12:36:46 +0100 Subject: [PATCH] Fix ppa install for Debian On Ubuntu, you can take advantage of Personal Package Archives on Launchpad simply by specifying the user and archive name. On other apt-based systems this must be the complete entry as it would be seen in the sources.list file. --- nginx/ng/install.sls | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nginx/ng/install.sls b/nginx/ng/install.sls index 68e0a6d..f1d39bd 100644 --- a/nginx/ng/install.sls +++ b/nginx/ng/install.sls @@ -35,7 +35,13 @@ nginx_ppa_repo: {%- else %} - absent {%- endif %} + {% if salt['grains.get']('os') == 'Ubuntu' %} - ppa: nginx/{{ nginx.ppa_version }} + {% else %} + - name: deb http://ppa.launchpad.net/nginx/{{ nginx.ppa_version }}/ubuntu lucid main + - keyid: C300EE8C + - keyserver: keyserver.ubuntu.com + {% endif %} - require_in: - pkg: nginx_install - watch_in: