Avoid _ in rabbitmq_clusterer.config

Trying to use ConfigMap's in Kubernetes leads to an interesting
problem. We use the file name as the key and the contents of the
file as the text value. The ConfigMap is mounted on the container
as a volume and the key is then used as the name of the file. The
problem is that kubernetes has a limitation on the name of the
key

https://github.com/kubernetes/kubernetes/blob/release-1.2/docs/design/identifiers.md

Which means we cannot use '_' in the name of the file.

Closes-Bug: #1581162
Change-Id: I2d9ec80f989c30893b019954fe18b3623d27a076
This commit is contained in:
Davanum Srinivas 2016-05-12 13:59:57 -04:00
parent 0977601ea5
commit 48b4b15828
4 changed files with 4 additions and 4 deletions

View File

@ -21,4 +21,4 @@
with_items:
- "rabbitmq-env.conf"
- "rabbitmq.config"
- "rabbitmq_clusterer.config"
- "rabbitmq-clusterer.config"

View File

@ -18,6 +18,6 @@
{port, {{ rabbitmq_management_port }}}
]}
]},
{rabbitmq_clusterer, [{config, "/etc/rabbitmq/rabbitmq_clusterer.config"}]}
{rabbitmq_clusterer, [{config, "/etc/rabbitmq/rabbitmq-clusterer.config"}]}
].
% EOF

View File

@ -14,8 +14,8 @@
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/rabbitmq_clusterer.config",
"dest": "/etc/rabbitmq/rabbitmq_clusterer.config",
"source": "{{ container_config_directory }}/rabbitmq-clusterer.config",
"dest": "/etc/rabbitmq/rabbitmq-clusterer.config",
"owner": "rabbitmq",
"perm": "0600"
}