summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet
diff options
context:
space:
mode:
Diffstat (limited to 'global/overlay/etc/puppet')
-rw-r--r--global/overlay/etc/puppet/cosmos-modules.conf1
-rw-r--r--global/overlay/etc/puppet/manifests/cosmos-site.pp23
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':