add the material to configure logilab public debian repositories
authorDavid Douard <david.douard@logilab.fr>
Mon, 02 Jun 2014 15:42:38 +0200
changeset 3 71cd0777119a
parent 2 a94559c3bff9
child 4 5e5876d342d0
add the material to configure logilab public debian repositories
logilab/logilab.gpg
logilab/pinning.sls
logilab/public.sls
logilab/signingkey.sls
Binary file logilab/logilab.gpg has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/logilab/pinning.sls	Mon Jun 02 15:42:38 2014 +0200
@@ -0,0 +1,6 @@
+
+logilab-pinning-pref:
+  file.managed:
+    - name: /etc/apt/preferences.d/logilab-pinning
+    - source: salt://logilab/logilab-pinning
+    - template: jinja
--- a/logilab/public.sls	Mon Jun 02 14:56:01 2014 +0200
+++ b/logilab/public.sls	Mon Jun 02 15:42:38 2014 +0200
@@ -1,24 +1,42 @@
 
-/etc/apt/preferences.d/logilab-pinning:
-  file.managed:
-    - source: salt://cubicweb/logilab-pinning
-    - template: jinja
+include:
+  - logilab.pinning
+  - logilab.signingkey
 
 logilab-public-acceptance:
   pkgrepo.managed:
+    - file: /etc/apt/sources.list.d/logilab-public-acceptance.list
     - human_name: Logilab acceptance public Debian repository
     - name: deb http://download.logilab.org/acceptance {{ grains['oscodename'] }}/
-    - key_url: http://download.logilab.org/logilab-dists-key.asc
-    - gpgcheck: 1
     - require:
-      - file: /etc/apt/preferences.d/logilab-pinning
+      - file: logilab-pinning-pref
+      - file: logilab-signing-key
 
 logilab-public-production:
   pkgrepo.managed:
+    - file: /etc/apt/sources.list.d/logilab-public-production.list
     - human_name: Logilab production public Debian repository
     - name: deb http://download.logilab.org/production {{ grains['oscodename'] }}/
-    - key_url: http://download.logilab.org/logilab-dists-key.asc
-    - gpgcheck: 1
+    - require:
+      - file: logilab-pinning-pref
+      - file: logilab-signing-key
+
+logilab-public-acceptance-src:
+  pkgrepo.managed:
+    - file: /etc/apt/sources.list.d/logilab-public-acceptance.list
+    - human_name: Logilab acceptance public Debian repository
+    - name: deb-src http://download.logilab.org/acceptance {{ grains['oscodename'] }}/
     - require:
-      - file: /etc/apt/preferences.d/logilab-pinning
+      - file: logilab-pinning-pref
+      - file: logilab-signing-key
 
+logilab-public-production-src:
+  pkgrepo.managed:
+    - file: /etc/apt/sources.list.d/logilab-public-production.list
+    - human_name: Logilab production public Debian repository
+    - name: deb-src http://download.logilab.org/production {{ grains['oscodename'] }}/
+    - require:
+      - file: logilab-pinning-pref
+      - file: logilab-signing-key
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/logilab/signingkey.sls	Mon Jun 02 15:42:38 2014 +0200
@@ -0,0 +1,5 @@
+logilab-signing-key:
+  file.managed:
+    - name: /etc/apt/trusted.gpg.d/logilab.gpg
+    - source: salt://logilab/logilab.gpg
+