Make --node-config-dir required when generating overcloud service configuration

This makes it more difficult for a user to generate kolla-ansible configuration in
the default location of /etc/kolla/, from where active containers may be consuming
configuration.
This commit is contained in:
Mark Goddard 2017-09-20 10:04:19 +01:00
parent 250dd49527
commit 7cde8225f9

View File

@ -616,9 +616,9 @@ class OvercloudServiceConfigurationGenerate(KayobeAnsibleMixin,
parser = super(OvercloudServiceConfigurationGenerate, parser = super(OvercloudServiceConfigurationGenerate,
self).get_parser(prog_name) self).get_parser(prog_name)
group = parser.add_argument_group("Service Configuration") group = parser.add_argument_group("Service Configuration")
group.add_argument("--node-config-dir", group.add_argument("--node-config-dir", required=True,
help="the directory to store the config files on " help="the directory to store the config files on "
"the remote node (default /etc/kolla)") "the remote node (required)")
group.add_argument("--skip-prechecks", action='store_true', group.add_argument("--skip-prechecks", action='store_true',
help="skip the kolla-ansible prechecks command") help="skip the kolla-ansible prechecks command")
return parser return parser