This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class glance::cache::cleaner ( | |
| $minute = 1, | |
| $hour = 0, | |
| ) { | |
| include glance::params | |
| cron { 'glance-cache-cleaner': | |
| command => $glance::params::cache_cleaner_command, | |
| environment => 'PATH=/bin:/usr/bin:/usr/sbin', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if $allowed_hosts { | |
| # NOTE(mgagne): Check to avoid duplicate resource declarations | |
| if (is_string($allowed_hosts) and ($allowed_hosts != $host)) or | |
| (is_array($allowed_hosts) and !member($allowed_hosts,$host)) { | |
| glance::db::mysql::host_access { $allowed_hosts: | |
| user => $user, | |
| password => $password, | |
| database => $dbname, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper' | |
| describe 'ceilometer::agent::central' do | |
| let :pre_condition do | |
| "class { 'ceilometer': metering_secret => 's3cr3t' }" | |
| end | |
| let :params do | |
| { :auth_url => 'http://localhost:5000/v2.0', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PuppetLint.configuration.send('disable_80chars') | |
| PuppetLint.configuration.send('disable_class_parameter_defaults') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper' | |
| describe 'swift::storage::node' do | |
| let :facts do | |
| { :operatingsystem => 'Ubuntu', | |
| :osfamily => 'Debian', | |
| :processorcount => 1, | |
| :concat_basedir => '/var/lib/puppet/concat', | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/cinder/volume/manager.py b/cinder/volume/manager.py | |
| index f2be2d6..d1b98bf 100644 | |
| --- a/cinder/volume/manager.py | |
| +++ b/cinder/volume/manager.py | |
| @@ -183,10 +183,13 @@ class VolumeManager(manager.SchedulerDependentManager): | |
| volume_ref = self.db.volume_update(context, | |
| volume_ref['id'], | |
| updates) | |
| - self._copy_image_to_volume(context, | |
| - volume_ref, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/cinder/volume/manager.py b/cinder/volume/manager.py | |
| index f2be2d6..cfe5fe8 100644 | |
| --- a/cinder/volume/manager.py | |
| +++ b/cinder/volume/manager.py | |
| @@ -610,6 +610,11 @@ class VolumeManager(manager.SchedulerDependentManager): | |
| "error: %(error)s") % {'volume_id': volume_id, | |
| 'error': ex}) | |
| raise exception.ImageCopyFailure(reason=ex) | |
| + except Exception as ex: | |
| + LOG.error(_("Failed to copy image to volume: %(volume_id)s, " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nova::params | |
| nova::init | |
| nova::install | |
| nova::config | |
| nova::api | |
| nova::api::install | |
| nova::api::config | |
| nova::api::service | |
| nova::compute | |
| nova::compute::install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Information taken from the book 'Puppet Types and Providers' | |
| Puppet::Type.type(:customtype).provide( | |
| :customprovider, | |
| :parent => Puppet::Provider::CustomProvider | |
| ) do | |
| # Automagically generates getter and setter for each resource property | |
| mk_resource_methods |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $database_connection = database_connection({ | |
| dialect => $database, | |
| username => $database_username, | |
| password => $database_password, | |
| host => $database_host, | |
| port => $database_port, | |
| database => $database_name, | |
| encoding => $database_encoding }) |
OlderNewer