Plugin tasks updated

Contrail repo priorities adjusted.
Zookeeper config template updated.
Hiera override for OSTF nets template updated.

Change-Id: Iace1dac1ad785de6fdc7fbbe11d340c63bcc2cf5
This commit is contained in:
Oleksandr Martsyniuk
2015-11-17 16:58:47 +02:00
parent 7ac4b83c4d
commit 54df4d8d94
8 changed files with 31 additions and 46 deletions

View File

@@ -12,28 +12,20 @@
# License for the specific language governing permissions and limitations
# under the License.
notice('MODULAR: contrail/contrail-repo.pp')
notice('MODULAR: contrail/common-repo.pp')
case $operatingsystem
{
CentOS:
{
yumrepo {'mos': priority => 1, exclude => 'python-thrift,nodejs'} # Contrail requires newer python-thrift and nodejs from it's repo
package {'yum-plugin-priorities': ensure => present }
}
CentOS: {
yumrepo {'mos': priority => 1, exclude => 'python-thrift,nodejs'} # Contrail requires newer python-thrift and nodejs from it's repo
package {'yum-plugin-priorities': ensure => present }
}
Ubuntu: {
file { '/etc/apt/preferences.d/contrail-3.0.0.pref':
ensure => absent,
}
case hiera('role') {
/contrail/: {
file { '/etc/apt/preferences.d/contrail-pin-100':
ensure => file,
source => 'puppet:///modules/contrail/contrail-pin-100',
}
}
default: {}
}
}
default: {}
}

View File

@@ -23,6 +23,10 @@ sysctl::value {
case $operatingsystem {
Ubuntu: {
file { '/etc/apt/preferences.d/contrail-pin-100':
ensure => file,
source => 'puppet:///modules/contrail/contrail-pin-100',
} ->
exec { 'reinstall-tzdata':
path => '/bin:/sbin:/usr/bin:/usr/sbin',
command => '/usr/bin/apt-get install -y --force-yes tzdata',

View File

@@ -23,9 +23,6 @@ $plugin_yaml = "${plugin_name}.yaml"
$contrail_plugin = hiera('contrail', undef)
if ($contrail_plugin) {
$neutron_config = hiera_hash('quantum_settings')
$nets = $neutron_config['predefined_networks']
file {'/etc/hiera/override':
ensure => directory,