Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
class trilio::horizon (
    $horizon_dir                        = '/etc/openstack-dashboard',
    $barbican_api_enabled               = hiera('barbican_api_enabled'),
){

  tag 'triliohorizonconfig'

   if $barbican_api_enabled {
       file_line { "ENABLE OPENSTACK_ENCRYPTION_SUPPORT":  
           ensure  => present,
           path   => "${horizon_dir}/local_settings",
	   line   => 'OPENSTACK_ENCRYPTION_SUPPORT = True',
	   match  => '^OPENSTACK_ENCRYPTION_SUPPORT',
       }
   }    
   else {
       file_line { "DISABLE OPENSTACK_ENCRYPTION_SUPPORT":  
           ensure  => present,
           path   => "${horizon_dir}/local_settings",
	   line   => 'OPENSTACK_ENCRYPTION_SUPPORT = False',
	   match  => '^OPENSTACK_ENCRYPTION_SUPPORT',
       }
   }
 

    file_line { "DISABLE TRILIO_ENCRYPTION_SUPPORT":
        ensure => present,
        path   => "${horizon_dir}/local_settings",
        line   => 'TRILIO_ENCRYPTION_SUPPORT = False',
        match  => '^TRILIO_ENCRYPTION_SUPPORT',
    }

}