Commit f4f05333 authored by Thomas Goirand's avatar Thomas Goirand

Correctly set the erlang_cookie for rabbitmq as a random value.

parent d58eda7b
......@@ -76,6 +76,7 @@ class oci::controller(
$all_swiftproxy = undef,
$all_swiftproxy_ip = undef,
$pass_mysql_rootuser = undef,
$pass_rabbitmq_cookie = undef,
$pass_keystone_db = undef,
$pass_keystone_messaging = undef,
$pass_keystone_adminuser = undef,
......@@ -1327,7 +1328,7 @@ export OS_CACERT=/etc/ssl/certs/oci-pki-oci-ca-chain.pem
config_cluster => true,
cluster_nodes => $all_masters,
cluster_node_type => 'ram',
erlang_cookie => 'XAFSRAFNNFJOFSHLEUFT',
erlang_cookie => $pass_rabbitmq_cookie,
wipe_db_on_cookie_change => true,
}->
rabbitmq_vhost { '/':
......
......@@ -622,6 +622,10 @@ function api_actions($con,$conf){
if($json["status"] != "success"){ return $json; }
$enc_file .= " pass_mysql_rootuser: " . $json["data"] . "\n";
$json = get_cluster_password($con, $conf, $cluster_id, 'rabbitmq', 'cookie');
if($json["status"] != "success"){ return $json; }
$enc_file .= " pass_rabbitmq_cookie: " . $json["data"] . "\n";
$json = get_cluster_password($con, $conf, $cluster_id, 'keystone', 'db');
if($json["status"] != "success"){ return $json; }
$enc_file .= " pass_keystone_db: " . $json["data"] . "\n";
......
......@@ -198,6 +198,7 @@ function new_cluster($con, $conf, $cluster_name, $cluster_domain){
// Provision passwords for later
insert_cluster_pass($con, $conf, $cluster_id, 'mysql', 'rootuser');
insert_cluster_pass($con, $conf, $cluster_id, 'rabbitmq', 'cookie');
insert_cluster_pass($con, $conf, $cluster_id, 'keystone', 'adminuser');
insert_cluster_pass($con, $conf, $cluster_id, 'keystone', 'db');
insert_cluster_pass($con, $conf, $cluster_id, 'keystone', 'messaging');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment