-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Ansible Config part2 #27448
Ansible Config part2 #27448
Conversation
d9fdab6
to
b51e912
Compare
1c62bb5
to
ea23c4b
Compare
ea23c4b
to
6555783
Compare
6555783
to
31892a6
Compare
lib/ansible/cli/doc.py
Outdated
for config in ('env', 'ini', 'yaml', 'vars'): | ||
if config in opt and opt[config]: | ||
conf[config] = opt.pop(config) | ||
else: |
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.
else
seems useless here, it could be removed (then if
block below must be moved at the same level than the for
loop).
lib/ansible/config/manager.py
Outdated
Plugin = namedtuple('Plugin','name type') | ||
Setting = namedtuple('Setting','name value origin') | ||
|
||
IGNORE_CONFIGS = frozenset([None, '/dev/null']) |
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.
Should not it be os.devnull
?
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.
no, had to add the string as that is what test/ uses all over, still need to research why, but for now its here to make tests pass.
31892a6
to
b8bbf2c
Compare
b8bbf2c
to
3161a21
Compare
2724f45
to
4655767
Compare
- made dump_me nicer, added note this is not prod - moved internal key removal function to vars - carry tracebacks in errors we can now show tracebacks for plugins on vvv - show inventory plugin tracebacks on vvv - minor fixes to cg groups plugin - draft config from plugin docs - made search path warning 'saner' (top level dirs only) - correctly display config entries and others - removed unneeded code - commented out some conn plugin specific from base.yml - also deprecated sudo/su - updated ssh conn docs - shared get option method for connection plugins - note about needing eval for defaults - tailored yaml ext - updated strategy entry - for connection pliugins, options load on plugin load - allow for long types in definitions - better display in ansible-doc - cleaned up/updated source docs and base.yml - added many descriptions - deprecated include toggles as include is - draft backwards compat get_config - fixes to ansible-config, added --only-changed - some code reoorg - small license headers - show default in doc type - pushed module utils details to 5vs - work w/o config file - PEPE ATE! - moved loader to it's own file - fixed rhn_register test - fixed boto requirement in make tests - I ate Pepe - fixed dynamic eval of defaults - better doc code skip ipaddr filter tests when missing netaddr removed devnull string from config better becoem resolution
0f5e1a0
to
21a4adb
Compare
cause its an affront against all that is holy that 2 spaces touch each other!
network_os=('ansible_network_os', ), | ||
|
||
# ssh TODO: remove |
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.
What's this TODO for? It's not obvious to me (from the large commit) why these should be removed. I use ansible_ssh_extra_args extensively. Will this be going away?
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.
no, it just lives in the ssh plugin, play_context doesn't need to have it anymore
SUMMARY
ISSUE TYPE
COMPONENT NAME
config
ANSIBLE VERSION