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

Ansible Config part2 #27448

Merged
merged 2 commits into from
Aug 15, 2017
Merged

Ansible Config part2 #27448

merged 2 commits into from
Aug 15, 2017

Conversation

bcoca
Copy link
Member

@bcoca bcoca commented Jul 28, 2017

SUMMARY
  • 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
ISSUE TYPE
  • Feature Pull Request
  • Bugfix Pull Request
COMPONENT NAME

config

ANSIBLE VERSION
2.4

@ansibot ansibot added WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers. affects_2.4 This issue/PR affects Ansible v2.4 c:cli/adhoc c:cli/doc c:constants c:errors/ c:playbook/base c:playbook/play_context c:plugins/action c:plugins/callback c:plugins/connection/ssh c:plugins/lookup inventory Inventory category needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Jul 28, 2017
@s-hertel s-hertel removed the needs_triage Needs a first human triage before being processed. label Jul 28, 2017
@ansible ansible deleted a comment from ansibot Jul 31, 2017
@ansible ansible deleted a comment from ansibot Jul 31, 2017
@ansibot ansibot added the needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html label Aug 2, 2017
@ansibot ansibot added c:cli/console c:cli/pull c:executor/task_executor c:executor/task_queue_manager c:parsing/mod_args and removed needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html labels Aug 14, 2017
@bcoca bcoca changed the title [WIP] Ansible Config part2 Ansible Config part2 Aug 14, 2017
@ansibot ansibot removed the WIP This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers. label Aug 14, 2017
@bcoca bcoca added this to In Progress in ansible config Aug 14, 2017
@ansibot ansibot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Aug 14, 2017
for config in ('env', 'ini', 'yaml', 'vars'):
if config in opt and opt[config]:
conf[config] = opt.pop(config)
else:
Copy link
Contributor

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).

Plugin = namedtuple('Plugin','name type')
Setting = namedtuple('Setting','name value origin')

IGNORE_CONFIGS = frozenset([None, '/dev/null'])
Copy link
Contributor

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 ?

Copy link
Member Author

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.

@mattclay mattclay added the ci_verified Changes made in this PR are causing tests to fail. label Aug 15, 2017
@ansible ansible deleted a comment from mattclay Aug 15, 2017
@ansible ansible deleted a comment from ansibot Aug 15, 2017
@ansible ansible deleted a comment from ansibot Aug 15, 2017
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Aug 15, 2017
@bcoca bcoca force-pushed the config_from_plugin_docs branch 2 times, most recently from 2724f45 to 4655767 Compare August 15, 2017 05:11
- 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
cause its an affront against all that is holy that 2 spaces touch each other!
@bcoca bcoca merged commit f921369 into ansible:devel Aug 15, 2017
@bcoca bcoca deleted the config_from_plugin_docs branch August 15, 2017 20:39
@bcoca bcoca moved this from In Progress to Done in ansible config Aug 21, 2017
@ansibot ansibot added feature This issue/PR relates to a feature request. and removed feature_pull_request labels Mar 5, 2018
network_os=('ansible_network_os', ),

# ssh TODO: remove
Copy link
Contributor

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?

Copy link
Member Author

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

@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

6 participants