From 9130d036f51a5db5664d96374f66d9d75bf0331a Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Sat, 23 Jan 2016 19:45:59 -0800 Subject: [PATCH] Set AFS cache size to 50G on mirrors Change-Id: I2cbb453156aef28722b3c8a51bf221d8da8b7e23 --- manifests/site.pp | 1 + modules/openstack_project/manifests/server.pp | 2 ++ modules/openstack_project/manifests/template.pp | 2 ++ 3 files changed, 5 insertions(+) diff --git a/manifests/site.pp b/manifests/site.pp index 98263591ff..e7ae8661f2 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -544,6 +544,7 @@ node /^mirror\..*\.openstack\.org$/ { iptables_public_tcp_ports => [22, 80], sysadmins => hiera('sysadmins', []), afs => true, + afs_cache_size => 50000000, # 50GB } class { 'openstack_project::mirror': diff --git a/modules/openstack_project/manifests/server.pp b/modules/openstack_project/manifests/server.pp index 51985c0020..1989cda7bb 100644 --- a/modules/openstack_project/manifests/server.pp +++ b/modules/openstack_project/manifests/server.pp @@ -12,6 +12,7 @@ class openstack_project::server ( $ca_server = undef, $enable_unbound = true, $afs = false, + $afs_cache_size = 500000, $puppetmaster_server = 'puppetmaster.openstack.org', $manage_exim = true, $pypi_index_url = 'https://pypi.python.org/simple', @@ -45,6 +46,7 @@ class openstack_project::server ( puppetmaster_server => $puppetmaster_server, enable_unbound => $enable_unbound, afs => $afs, + afs_cache_size => $afs_cache_size, manage_exim => $manage_exim, sysadmins => $sysadmins, pypi_index_url => $pypi_index_url, diff --git a/modules/openstack_project/manifests/template.pp b/modules/openstack_project/manifests/template.pp index ca089bef58..bba0f5f1a9 100644 --- a/modules/openstack_project/manifests/template.pp +++ b/modules/openstack_project/manifests/template.pp @@ -15,6 +15,7 @@ class openstack_project::template ( $ca_server = undef, $enable_unbound = true, $afs = false, + $afs_cache_size = 500000, $puppetmaster_server = 'puppetmaster.openstack.org', $manage_exim = false, $sysadmins = [], @@ -62,6 +63,7 @@ class openstack_project::template ( cell => 'openstack.org', realm => 'OPENSTACK.ORG', admin_server => 'kdc.openstack.org', + cache_size => $afs_cache_size, kdcs => [ 'kdc01.openstack.org', 'kdc02.openstack.org',