cacti_device was a class of which only one could be instantiated. Make it a define so that many cacti_devices can be installed. While we are fixing this correct the puppet lint warnings and errors for cacti. Change-Id: Ic730f542d15ee05884e6e2eae0df09f36a55730e Reviewed-on: https://review.openstack.org/14853 Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com> Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
		
			
				
	
	
		
			10 lines
		
	
	
		
			292 B
		
	
	
	
		
			Puppet
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			292 B
		
	
	
	
		
			Puppet
		
	
	
	
	
	
# Define that adds a host to a cacti installation.
 | 
						|
# Takes the fqdn of the host as the namevar for this define.
 | 
						|
define openstack_project::cacti_device()
 | 
						|
{
 | 
						|
  exec { "cacti_create_${name}":
 | 
						|
    command => "/usr/local/bin/create_graphs.sh ${name}",
 | 
						|
    require => Exec['cacti_import_xml']
 | 
						|
  }
 | 
						|
}
 |