diff --git a/igraph/manifests/init.pp b/igraph/manifests/init.pp index fa27f0a..37c9d06 100644 --- a/igraph/manifests/init.pp +++ b/igraph/manifests/init.pp @@ -3,24 +3,11 @@ class igraph { case $operatingsystem { - debian,ubuntu: { - apt::package { "libigraph": - ensure => installed, - source => $architecture ? { - i386 => "http://cneurocvs.rmki.kfki.hu/packages/binary/libigraph_0.5.2_i386.deb", - default => undef, - }, - } - package { "libxml2-dev": - ensure => installed, - } - apt::package { "libigraph-dev": - ensure => installed, - source => $architecture ? { - i386 => "http://cneurocvs.rmki.kfki.hu/packages/binary/libigraph-dev_0.5.2_i386.deb", - default => undef, - }, - require => [ Package["libxml2-dev"], Apt::Package["libigraph"], ], + ubuntu: { + apt::repo { "igraph.ppa.launchpad.net": + source => "http://ppa.launchpad.net/igraph/ppa/ubuntu", + key => "80C21FC1", + keyserver => "hkp://keyserver.ubuntu.com", } } } @@ -33,14 +20,10 @@ class igraph { class igraph::python inherits igraph { case $operatingsystem { - debian,ubuntu: { - apt::package { "python-igraph": - ensure => installed, - source => $architecture ? { - i386 => "http://cneurocvs.rmki.kfki.hu/packages/binary/python-igraph_0.5.2_i386.deb", - default => undef, - }, - require => Apt::Package["libigraph"], + ubuntu: { + package { "python-igraph": + ensure => installed, + require => Apt::Repo["igraph.ppa.launchpad.net"], } } }