Create abstractions for tmpcleanup and automatic_upgrades which can be used to install/include distro specific modules modules for these features. On Ubuntu this will still install unattended_upgrades and tmpreaper. On RHEL we need to implement similar functionality and modules. Change-Id: I9209610582e23c86dccb5e70691bb598dad36950 Reviewed-on: https://review.openstack.org/23197 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
		
			
				
	
	
		
			24 lines
		
	
	
		
			601 B
		
	
	
	
		
			Puppet
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			601 B
		
	
	
	
		
			Puppet
		
	
	
	
	
	
# == Class: openstack_project::slave
 | 
						|
#
 | 
						|
class openstack_project::slave (
 | 
						|
  $bare = false,
 | 
						|
  $certname = $::fqdn,
 | 
						|
  $sysadmins = []
 | 
						|
) {
 | 
						|
  include openstack_project
 | 
						|
  include openstack_project::tmpcleanup
 | 
						|
  include openstack_project::automatic_upgrades
 | 
						|
  class { 'openstack_project::server':
 | 
						|
    iptables_public_tcp_ports => [],
 | 
						|
    certname                  => $certname,
 | 
						|
    sysadmins                 => $sysadmins,
 | 
						|
  }
 | 
						|
  class { 'jenkins::slave':
 | 
						|
    bare    => $bare,
 | 
						|
    ssh_key => $openstack_project::jenkins_ssh_key,
 | 
						|
  }
 | 
						|
  class { 'salt':
 | 
						|
    salt_master => 'ci-puppetmaster.openstack.org',
 | 
						|
  }
 | 
						|
}
 |