Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes-Bug: #1541112 - Duplicate declaration errors in SM Kilo parall…
…el provision Three duplication declarations fixed: 1. Augeas conf set changed as it used key as title. 2. Two conflicting Resources called in config only if node not same as openstack node 3. Augeas conf ins modified as it might cause duplicate declaration if inserting same key in two files Patch 2: Missed out define of host_roles in neutron/server.pp Patch 3: Chnaged augeas_conf_ins to avoid duplicate declaration Change-Id: I58681efa940be5803e653a5ef0aa986f2971f796
- Loading branch information
nitishkrishna
committed
Feb 3, 2016
1 parent
2b356e0
commit 8575d05
Showing
9 changed files
with
44 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
11 changes: 7 additions & 4 deletions
11
contrail/environment/modules/contrail/manifests/profile/neutron/server.pp
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
# The profile to set up the neutron server on Config node | ||
class contrail::profile::neutron::server { | ||
|
||
openstack::resources::database { 'neutron': } | ||
|
||
class contrail::profile::neutron::server( | ||
$host_roles = $::contrail::params::host_roles | ||
) | ||
{ | ||
if (!("openstack" in $host_roles)) { | ||
openstack::resources::database { 'neutron': } | ||
} | ||
include ::contrail::config::neutron | ||
} |
This file contains 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