Skip to content
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

Defaults in Config #70

Closed
quiteliderally opened this issue Mar 13, 2013 · 2 comments
Closed

Defaults in Config #70

quiteliderally opened this issue Mar 13, 2013 · 2 comments

Comments

@quiteliderally
Copy link
Contributor

Would it be possible to set defaults in the config?

Unless I'm missing it, I don't see a place to set a default for datacenter. I imagine the bulk of a lot of folks' cci orders are in the same datacenter, with the same OS.

Also, once there is support for configuring the storage options (san/local), I would think a user would have a preference for one of those.

Is the config just an ini file? If so, I'd propose naming a section after the CLI module:

[cci]
default_os = UBUNTU_LATEST
default_datacenter = dal05
default_storage = local

[dns]
default_domain = some_domain.xxx

If you name the section the same name as the module, it's probably possible to make a generalized solution that works for all parameters and just strips the "default" off

@quiteliderally
Copy link
Contributor Author

Of course, hourly or monthly would be nice. For now, I'm doing this with bash aliases, but I don't know that that's the most accessible way. It might be, though.

@sudorandom
Copy link
Contributor

This is still a good idea. Can we showing defaults in the help? If we can't we would need to make all options optional and enforce the required options manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants