Ensure there are no duplicated file declarations
Change-Id: I1bbf14e875d1f7dc91ab47ca85856f4c1feca6ac
This commit is contained in:
parent
76905f0312
commit
3c9cda21d9
@ -42,14 +42,16 @@ class midonet::analytics::quickstart (
|
||||
$config_path = '/etc/midonet/midonet.conf',
|
||||
) {
|
||||
|
||||
file { 'midonet folder':
|
||||
ensure => 'directory',
|
||||
path => '/etc/midonet',
|
||||
owner => 'root',
|
||||
mode => '0755',
|
||||
if !defined(File['midonet folder']) {
|
||||
file { 'midonet folder':
|
||||
ensure => 'directory',
|
||||
path => '/etc/midonet',
|
||||
owner => 'root',
|
||||
mode => '0755',
|
||||
}
|
||||
}
|
||||
|
||||
if !defined(File['set_config']) {
|
||||
if !defined(File['set_config']) {
|
||||
file { 'set_config':
|
||||
ensure => present,
|
||||
path => $config_path,
|
||||
|
@ -197,13 +197,15 @@ class midonet::cluster::run (
|
||||
|
||||
exec { '/bin/bash /tmp/mn-cluster_config.sh': }
|
||||
|
||||
file { 'set_config':
|
||||
ensure => present,
|
||||
path => $cluster_config_path,
|
||||
content => template('midonet/cluster/midonet.conf.erb'),
|
||||
require => Package['midonet-cluster'],
|
||||
notify => Service['midonet-cluster'],
|
||||
before => File['/tmp/mn-cluster_config.sh'],
|
||||
if !defined(File['set_config']) {
|
||||
file { 'set_config':
|
||||
ensure => present,
|
||||
path => $cluster_config_path,
|
||||
content => template('midonet/cluster/midonet.conf.erb'),
|
||||
require => Package['midonet-cluster'],
|
||||
notify => Service['midonet-cluster'],
|
||||
before => File['/tmp/mn-cluster_config.sh'],
|
||||
}
|
||||
}
|
||||
|
||||
file { 'cluster_jvm_config':
|
||||
|
Loading…
x
Reference in New Issue
Block a user