Permalink
Browse files

Check if we had postgre ppa key

  • Loading branch information...
1 parent 00d0719 commit 16a7daa4ba30e02dd0221d1ea97a43d6c6491bba @victorcoder victorcoder committed Nov 2, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 puppet/modules/postgres/manifests/init.pp
@@ -32,7 +32,8 @@
class ubuntu {
exec {"get-postgres-apt-key":
- command => "apt-key adv --keyserver keyserver.ubuntu.com --recv 8683D8A2"
+ command => "apt-key adv --keyserver keyserver.ubuntu.com --recv 8683D8A2",
+ unless => "apt-key list | grep 8683D8A2",
}
file {"/etc/apt/sources.list.d/postgres.list":

0 comments on commit 16a7daa

Please sign in to comment.