Merge "Configure SSL for qpid in clients"
This commit is contained in:
@@ -156,6 +156,8 @@ def createmanifest(config):
|
|||||||
if config['CONFIG_QPID_ENABLE_SSL'] == 'y':
|
if config['CONFIG_QPID_ENABLE_SSL'] == 'y':
|
||||||
ports.add("'%s'" % (config['CONFIG_QPID_SSL_PORT']))
|
ports.add("'%s'" % (config['CONFIG_QPID_SSL_PORT']))
|
||||||
config['CONFIG_QPID_ENABLE_SSL'] = 'true'
|
config['CONFIG_QPID_ENABLE_SSL'] = 'true'
|
||||||
|
config['CONFIG_QPID_PROTOCOL'] = 'ssl'
|
||||||
|
config['CONFIG_QPID_CLIENTS_PORT'] = "5671"
|
||||||
if config['CONFIG_QPID_SSL_SELF_SIGNED'] == 'y':
|
if config['CONFIG_QPID_SSL_SELF_SIGNED'] == 'y':
|
||||||
server.append( "openssl req -batch -new -x509 -nodes -keyout %s -out %s -days 1095"
|
server.append( "openssl req -batch -new -x509 -nodes -keyout %s -out %s -days 1095"
|
||||||
% (config['CONFIG_QPID_SSL_KEY_FILE'], config['CONFIG_QPID_SSL_CERT_FILE']) )
|
% (config['CONFIG_QPID_SSL_KEY_FILE'], config['CONFIG_QPID_SSL_CERT_FILE']) )
|
||||||
@@ -163,11 +165,13 @@ def createmanifest(config):
|
|||||||
ssl_manifestdata = getManifestTemplate('qpid_ssl.pp')
|
ssl_manifestdata = getManifestTemplate('qpid_ssl.pp')
|
||||||
else:
|
else:
|
||||||
#Set default values
|
#Set default values
|
||||||
|
config['CONFIG_QPID_CLIENTS_PORT'] = "5672"
|
||||||
config['CONFIG_QPID_SSL_PORT'] = "5671"
|
config['CONFIG_QPID_SSL_PORT'] = "5671"
|
||||||
config['CONFIG_QPID_SSL_CERT_FILE'] = ""
|
config['CONFIG_QPID_SSL_CERT_FILE'] = ""
|
||||||
config['CONFIG_QPID_SSL_KEY_FILE'] = ""
|
config['CONFIG_QPID_SSL_KEY_FILE'] = ""
|
||||||
config['CONFIG_QPID_NSS_CERTDB_PW'] = ""
|
config['CONFIG_QPID_NSS_CERTDB_PW'] = ""
|
||||||
config['CONFIG_QPID_ENABLE_SSL'] = 'false'
|
config['CONFIG_QPID_ENABLE_SSL'] = 'false'
|
||||||
|
config['CONFIG_QPID_PROTOCOL'] = 'tcp'
|
||||||
|
|
||||||
manifestdata = getManifestTemplate('qpid.pp')
|
manifestdata = getManifestTemplate('qpid.pp')
|
||||||
manifestdata += ssl_manifestdata
|
manifestdata += ssl_manifestdata
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ class { 'ceilometer':
|
|||||||
rpc_backend => 'ceilometer.openstack.common.rpc.impl_qpid',
|
rpc_backend => 'ceilometer.openstack.common.rpc.impl_qpid',
|
||||||
verbose => true,
|
verbose => true,
|
||||||
debug => false,
|
debug => false,
|
||||||
|
qpid_port => '%(CONFIG_QPID_CLIENTS_PORT)s',
|
||||||
|
qpid_protocol => '%(CONFIG_QPID_PROTOCOL)s'
|
||||||
}
|
}
|
||||||
|
|
||||||
class { 'ceilometer::db':
|
class { 'ceilometer::db':
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ class {'cinder':
|
|||||||
rpc_backend => 'cinder.openstack.common.rpc.impl_qpid',
|
rpc_backend => 'cinder.openstack.common.rpc.impl_qpid',
|
||||||
qpid_hostname => "%(CONFIG_QPID_HOST)s",
|
qpid_hostname => "%(CONFIG_QPID_HOST)s",
|
||||||
qpid_password => "notused",
|
qpid_password => "notused",
|
||||||
|
qpid_port => '%(CONFIG_QPID_CLIENTS_PORT)s',
|
||||||
|
qpid_protocol => '%(CONFIG_QPID_PROTOCOL)s',
|
||||||
sql_connection => "mysql://cinder:%(CONFIG_CINDER_DB_PW)s@%(CONFIG_MYSQL_HOST)s/cinder"
|
sql_connection => "mysql://cinder:%(CONFIG_CINDER_DB_PW)s@%(CONFIG_MYSQL_HOST)s/cinder"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ class { 'heat':
|
|||||||
rpc_backend => 'heat.openstack.common.rpc.impl_qpid',
|
rpc_backend => 'heat.openstack.common.rpc.impl_qpid',
|
||||||
qpid_hostname => '%(CONFIG_QPID_HOST)s',
|
qpid_hostname => '%(CONFIG_QPID_HOST)s',
|
||||||
verbose => true,
|
verbose => true,
|
||||||
debug => false
|
debug => false,
|
||||||
|
qpid_port => '%(CONFIG_QPID_CLIENTS_PORT)s',
|
||||||
|
qpid_protocol => '%(CONFIG_QPID_PROTOCOL)s'
|
||||||
}
|
}
|
||||||
|
|
||||||
class {"heat::db":
|
class {"heat::db":
|
||||||
|
|||||||
@@ -12,4 +12,6 @@ class { 'neutron':
|
|||||||
core_plugin => '%(CONFIG_NEUTRON_CORE_PLUGIN)s',
|
core_plugin => '%(CONFIG_NEUTRON_CORE_PLUGIN)s',
|
||||||
allow_overlapping_ips => true,
|
allow_overlapping_ips => true,
|
||||||
verbose => true,
|
verbose => true,
|
||||||
|
qpid_port => '%(CONFIG_QPID_CLIENTS_PORT)s',
|
||||||
|
qpid_protocol => '%(CONFIG_QPID_PROTOCOL)s'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,4 +14,6 @@ class { "nova":
|
|||||||
rpc_backend => 'nova.openstack.common.rpc.impl_qpid',
|
rpc_backend => 'nova.openstack.common.rpc.impl_qpid',
|
||||||
verbose => true,
|
verbose => true,
|
||||||
debug => true,
|
debug => true,
|
||||||
|
qpid_port => '%(CONFIG_QPID_CLIENTS_PORT)s',
|
||||||
|
qpid_protocol => '%(CONFIG_QPID_PROTOCOL)s'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user