-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SM-Rabbit-SSL: Add SSL for more cases to rabbitmq
Closes-Bug: #1636306 Closes-Bug: #1635461 1. support external rabbitmq with ssl enabled. 2. added 2 more input variable for openstack rabbitmq-ssl and contrail-rabbitmq-ssl. 3. remove set_rabbit_tcp_params.py as this can be achieved by sysctl::value. Change-Id: I7219abf511d6e08b3fbc6206165aa73ccb1ce188
- Loading branch information
Dheeraj Gautam
committed
Oct 31, 2016
1 parent
396eba6
commit bb8e3a7
Showing
17 changed files
with
84 additions
and
231 deletions.
There are no files selected for viewing
29 changes: 0 additions & 29 deletions
29
contrail/environment/modules/contrail/files/set_rabbit_tcp_params.py
This file was deleted.
Oops, something went wrong.
73 changes: 0 additions & 73 deletions
73
contrail/environment/modules/contrail/files/setup_rabbitmq_cluster.sh
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
contrail/environment/modules/contrail/manifests/ceilometer/agent/auth.pp
This file was deleted.
Oops, something went wrong.
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
20 changes: 0 additions & 20 deletions
20
contrail/environment/modules/contrail/manifests/compute/exec_set_rabbitmq_tcp_params.pp
This file was deleted.
Oops, something went wrong.
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
21 changes: 21 additions & 0 deletions
21
contrail/environment/modules/contrail/manifests/lib/rabbitmq_ssl.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
define contrail::lib::rabbitmq_ssl( | ||
$rabbit_use_ssl = $::contrail::params::rabbit_ssl_support, | ||
$kombu_ssl_ca_certs = $::contrail::params::kombu_ssl_ca_certs, | ||
$kombu_ssl_certfile = $::contrail::params::kombu_ssl_certfile, | ||
$kombu_ssl_keyfile = $::contrail::params::kombu_ssl_keyfile, | ||
){ | ||
if ($rabbit_use_ssl) { | ||
file {['/etc/rabbitmq','/etc/rabbitmq/ssl']: | ||
ensure => directory, | ||
} -> | ||
file { $kombu_ssl_certfile: | ||
source => "puppet:///ssl_certs/$hostname.pem" | ||
} -> | ||
file { $kombu_ssl_keyfile : | ||
source => "puppet:///ssl_certs/$hostname-privkey.pem" | ||
} -> | ||
file { $kombu_ssl_ca_certs: | ||
source => "puppet:///ssl_certs/ca-cert.pem" | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.