diff options
author | Leif Johansson <leifj@sunet.se> | 2014-04-11 20:51:36 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2014-04-11 20:51:36 +0200 |
commit | a2451b3371e5e1051a98484c109c1b2eea578cec (patch) | |
tree | eba800a9698ed25a66c1619ba0b558ce00b43e32 | |
parent | ee4bed5ab328e7cb65149b30e1a1080bb4bba548 (diff) |
peer+pyffsunet-ops-2014-04-11-v04
-rw-r--r-- | global/overlay/etc/puppet/cosmos-modules.conf | 1 | ||||
-rw-r--r-- | global/overlay/etc/puppet/manifests/cosmos-site.pp | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/global/overlay/etc/puppet/cosmos-modules.conf b/global/overlay/etc/puppet/cosmos-modules.conf index 3c0f0e3..f378327 100644 --- a/global/overlay/etc/puppet/cosmos-modules.conf +++ b/global/overlay/etc/puppet/cosmos-modules.conf @@ -20,3 +20,4 @@ bastion git://github.com/SUNET/puppet-bastion.git yes sunet-* wordpress hunner/wordpress no mysql puppetlabs/mysql no apache puppetlabs/apache no +pyff git://github.com/samlbits/puppet-pyff.git yes sunet-* diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp index 61016c9..676c599 100644 --- a/global/overlay/etc/puppet/manifests/cosmos-site.pp +++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp @@ -58,6 +58,29 @@ node 'sto-tug-kvm1.swamid.se' { } } +node 'registry.swamid.se' { + include cosmos::httpsproxy + class {'pyff': + load => ['/opt/peer/vf_repo'], + validUntil => 'P10D', + cacheDuration => 'PT5H' + } + peerpkg = ['python-dev','libxml2-dev','libxml2','libxslt1-dev','libxslt1.1','xmlsec1','libxmlsec1-openssl','libpq-dev','postgresql','postgresql-client'] + package { $peerpkg: ensure => installed } + class { 'python': + version => 'system', + dev => true, + virtualenv => true, + gunicorn => false, + } + python::virtualenv { '/opt/peer': + ensure => present + } + python::pip { 'peer==0.13.0': + virtualenv => '/opt/peer' + } +} + node 'sto-tug-kvm-lab1.swamid.se' { package {'python-vm-builder': |