Tested with the following combinations: - RHEL-alikes, OpenStack Folsom - RHEL-alikes, OpenStack Grizzly - Fedora 18, OpenStack Grizzly (F18 includes folsom) - Ubuntu 12.04+, OpenStack Folsom - Ubuntu 12.04+, OpenStack Grizzly Change-Id: I737da83d138695a178aaf3fa711a6e08a678adde
		
			
				
	
	
		
			19 lines
		
	
	
		
			559 B
		
	
	
	
		
			Puppet
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			559 B
		
	
	
	
		
			Puppet
		
	
	
	
	
	
# Ubuntu Cloud Archive repo (supports either Folsom or Grizzly)
 | 
						|
class openstack::repo::uca(
 | 
						|
  $release = 'grizzly'
 | 
						|
) {
 | 
						|
  if ($::operatingsystem == 'Ubuntu' and
 | 
						|
      $::lsbdistdescription =~ /^.*LTS.*$/) {
 | 
						|
    include apt::update
 | 
						|
 | 
						|
    apt::source { 'ubuntu-cloud-archive':
 | 
						|
      location          => 'http://ubuntu-cloud.archive.canonical.com/ubuntu',
 | 
						|
      release           => "${::lsbdistcodename}-updates/${release}",
 | 
						|
      repos             => 'main',
 | 
						|
      required_packages => 'ubuntu-cloud-keyring',
 | 
						|
    }
 | 
						|
 | 
						|
    Exec['apt_update'] -> Package<||>
 | 
						|
  }
 | 
						|
}
 |