From ac0c30f828bae8910538fb913ad047911189ed52 Mon Sep 17 00:00:00 2001 From: Spencer Krum Date: Wed, 6 May 2015 15:38:23 -0700 Subject: [PATCH] Add the ability for template to manage exim Managing exim is the one thing sever can do that template cannot. This is part of a multi stage process for merging server and template. Change-Id: I354da6b5d489669b6a2fb4ae4a4a64c2d363b758 --- modules/openstack_project/manifests/template.pp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/openstack_project/manifests/template.pp b/modules/openstack_project/manifests/template.pp index 83fb1a8598..f1d18ef19c 100644 --- a/modules/openstack_project/manifests/template.pp +++ b/modules/openstack_project/manifests/template.pp @@ -16,6 +16,8 @@ class openstack_project::template ( $enable_unbound = true, $afs = false, $puppetmaster_server = 'puppetmaster.openstack.org', + $manage_exim = false, + $sysadmins = [], ) { ########################################################### @@ -43,6 +45,12 @@ class openstack_project::template ( ########################################################### # Process if ( $high_level_directive ) blocks + if $manage_exim { + class { 'exim': + sysadmins => $sysadmins, + } + } + if $automatic_upgrades == true { class { 'openstack_project::automatic_upgrades': origins => ["Puppetlabs:${lsbdistcodename}"],