Merge "Ensure there are no duplicated file declarations"

This commit is contained in:
Jenkins 2017-01-31 14:15:06 +00:00 committed by Gerrit Code Review
commit 0300844c04
2 changed files with 17 additions and 13 deletions

View File

@ -42,14 +42,16 @@ class midonet::analytics::quickstart (
$config_path = '/etc/midonet/midonet.conf', $config_path = '/etc/midonet/midonet.conf',
) { ) {
file { 'midonet folder': if !defined(File['midonet folder']) {
ensure => 'directory', file { 'midonet folder':
path => '/etc/midonet', ensure => 'directory',
owner => 'root', path => '/etc/midonet',
mode => '0755', owner => 'root',
mode => '0755',
}
} }
if !defined(File['set_config']) { if !defined(File['set_config']) {
file { 'set_config': file { 'set_config':
ensure => present, ensure => present,
path => $config_path, path => $config_path,

View File

@ -205,13 +205,15 @@ class midonet::cluster::run (
exec { '/bin/bash /tmp/mn-cluster_config.sh': } exec { '/bin/bash /tmp/mn-cluster_config.sh': }
file { 'set_config': if !defined(File['set_config']) {
ensure => present, file { 'set_config':
path => $cluster_config_path, ensure => present,
content => template('midonet/cluster/midonet.conf.erb'), path => $cluster_config_path,
require => Package['midonet-cluster'], content => template('midonet/cluster/midonet.conf.erb'),
notify => Service['midonet-cluster'], require => Package['midonet-cluster'],
before => File['/tmp/mn-cluster_config.sh'], notify => Service['midonet-cluster'],
before => File['/tmp/mn-cluster_config.sh'],
}
} }
file { 'cluster_jvm_config': file { 'cluster_jvm_config':