-
Notifications
You must be signed in to change notification settings - Fork 23
Add cephadm_commands placeholder variable #324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Support for this feature was added in #290. This adds a variable and some documentation to raise awareness of its existence.
doc/source/configuration/cephadm.rst
Outdated
# A list of commands to pass to cephadm shell -- ceph. See stackhpc.cephadm.commands | ||
# for format. | ||
cephadm_commands: | ||
- "fs new cephfs cephfs_metadata cephfs_data" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would argue that's a good example, changing placement should rather be done using cephadm role, not the commands role.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is the example from the docs in the collection. I was going to use this approach to do:
ceph config set mgr mgr/prometheus/server_addr 10.0.0.1
So it wasn't bound to all interfaces. Is that a better example?
EDIT: Assuming you meant not a good example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, an mgr var is a good example :-) I meant the old one is NOT a good example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, makes sense to not encourage a bad pattern of usage.
Co-authored-by: Mark Goddard <mark@stackhpc.com>
Updating the example based on feedback from the code review. The previous example applied configuration that would have been better applied using the cephadm role. We don't want to encourage such usage.
Support for this feature was added in #290. This adds a variable and some documentation to raise awareness of its existence.