summaryrefslogtreecommitdiff
path: root/lib/ansible/config
Commit message (Collapse)AuthorAgeFilesLines
* New AWS module mod_defaults - rds_option_group (_info) modules (#74098)Alina Buzachis2021-04-051-0/+4
| | | | | | | | | | | * * Add rds_option_group and rds_option_group_info to module_defaults Signed-off-by: Alina Buzachis <abuzachis@redhat.com> * changelog Signed-off-by: Rick Elrod <rick@elrod.me> Co-authored-by: Rick Elrod <rick@elrod.me>
* New AWS module mod_defaults - wafv2 modules (#73975)Jill R2021-04-051-0/+16
| | | | | | | | | * New AWS module mod_defaults - wafv2 modules * changelog Signed-off-by: Rick Elrod <rick@elrod.me> Co-authored-by: Rick Elrod <rick@elrod.me>
* [backport/2.9] module_defaults: Add rds_snapshot (#74113)Mark Chappell2021-04-051-0/+2
| | | | | * module_defaults: Add rds_snapshot * changelog
* New AWS module mod_defaults - iam_saml_federation (#73669)Mark Chappell2021-03-081-0/+2
|
* New AWS module mod_defaults - ec2_vpc_endpoint_service_info (#73670)Mark Chappell2021-03-081-0/+2
|
* [stable-2.9] Normalize ConfigParser between Python2 and Python3 (#73715) ↵Matt Martz2021-03-071-1/+4
| | | | | | | | | | | | | | (#73724) * [stable-2.9] Normalize ConfigParser between Python2 and Python3 (#73715) * Normalize config parser between py2 and py3 * Add tests and changelog * Use different config entry, since we supply certain env vars. (cherry picked from commit 950ab74758a6014639236612594118b2b6f4751e) Co-authored-by: Matt Martz <matt@sivel.net>
* Improve config.rst formatting (#72354) (#72488)Felix Fontein2020-11-131-6/+6
| | | | | | | | | | | | | | | * Indent Jinja2 directives. * Show version_added and deprecations for ini settings and environment variables. * Make default conditional, add choices. Copied from #55474. * Add Ansible variables. Copied from #55474. * Turn ini keys and environment variables into lists. Copied from #55474. * Improve formatting. Copied from #55474. (cherry picked from commit 569d937df8cfc2bd0e4c9f62b5b25021ae5e5cc1)
* Remove ansible-galaxy login (#72288) (#72325)Matt Davis2020-10-261-7/+0
| | | | | | | | | * GitHub is removing the underlying API used to implement the `login` command. Since the general consensus seems to be that relatively nobody currently uses this command (in favor of explicit token passing), support was simply removed for interactive login. If a future need arises, this command should be reimplemented via OAuth Device Auth Grants. * login or role login commands now produce a fatal error with a descriptive message * updated 2.10 porting guide entry * remove dead code/config, update messages and porting guides (cherry picked from commit 83909bfa22573777e3db5688773bda59721962ad)
* New AWS module mod_defaults (#72145)Jill R2020-10-231-0/+2
| | | To support this new module in CI, we need it to be in 2.9s mod_defaults
* Ensure -k is set to delegated hosts without a pass (#71136) - 2.9 (#71167)Jordan Borean2020-08-101-4/+17
| | | | | | | | | | | | | | | | | | | | | | * Ensure -k is set to delegated hosts without a pass (#71136) * Ensure -k is set to delegated hosts without a pass * Fix up some broken tests * Update task_executor.py one possible fix, the other is updating winrm to normalize on 'password' like the other connection plugins * Add alias for winrm and fix incorrect assumption * Make sure aliases are used for keyword options * Conditionally run test if sshpass is present, fix sanity Co-authored-by: Brian Coca <bcoca@users.noreply.github.com> (cherry picked from commit 3f22f79e73af4398d03b0c1676bb8efde32ea607) * Backport subset of https://github.com/ansible/ansible/pull/69670
* Add mod_defaults for AWS collections (#69818)Jill R2020-06-171-0/+10
| | | | We need to be able to add 2.9 CI jobs for AWS collections. Modules added during the 2.10 dev cycle will need mod default entries to support test suites
* Ensure --version works with non-ascii project path (#66624) (#69789)Martin Krizek2020-06-161-1/+1
| | | | | Fixes #66617 (cherry picked from commit 3606dcfe652ab45a8c7e4dedd5e2a64edd820ef5)
* Add FQCN mappings for network facts modules (#69601) (#69689)Nilashish Chakraborty2020-06-161-0/+17
| | | | | | | | | | | | | | | | * Add FQCN mappings for network facts modules Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * Add unit tests Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> * update entry for ironware Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com> (cherry picked from commit dae3ba71a85ec39396f08235550e06b5c6fe739a) Add changelog
* strip spaces for each value in host list lists (#67701) (#67740)Brian Coca2020-03-021-1/+1
| | | (cherry picked from commit 9ea5bb336400e20178cc6fb3816aef30dbdc8b60)
* Fix inline vaults for plugins in ensure_type (#67492) (#67741)Sloane Hertel2020-03-021-2/+2
| | | | | | * Fix implicit string - only looked right because of the vault __repr__ * Add tests for strings and implicit strings (cherry picked from commit 8eb00dd14cc9cc896a7cfd8719ffa325f2f98f23)
* config manager str type vault source (#65023) (#65090)Jordan Borean2019-12-031-2/+7
| | | | | | | * config manager str type vault source * Convert vault text to_text earlier and add tests (cherry picked from commit 7092c196ed0f0e1ee9a53d4040d5ff8c509c05b6)
* [2.9 backport] config encode errors should not be fatal (#63311) (#63312)Matt Davis2019-10-101-1/+5
| | | | | | | | | | | | * config encode errors should not be fatal (#63311) * fixes #63310 * subset of fixes from #58638 * added warning on error (cherry picked from commit 77de663879bcf2f6ab82d5009b8a0b799814750b) * bring back text-ification from #63349
* add ANSIBLE_PLAYBOOK_DIR envvar support (#63220)Matt Davis2019-10-091-0/+8
| | | | | | | | | | | | | * add ANSIBLE_PLAYBOOK_DIR envvar support * allows `ANSIBLE_PLAYBOOK_DIR` envvar as a fallback on CLI types that support `--playbook-dir`. This should have been implemented with #59464, but was missed due to an oversight. * added basic integration test * make first-class PLAYBOOK_DIR config entry * update changelog (cherry picked from commit fd229dcbb599f3b5de889f90112bba35d0da31f2)
* Backport/2.9/docs (#63247)Alicia Cozine2019-10-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add more anchors to collections docs (#62827) (cherry picked from commit 7e01de96d741c6fb8a1ce04f92873ffb57c9b1b5) * add anchors to support galaxy links (#62808) (cherry picked from commit 1b3bf33bdf2530adb3a7cbf8055007acb09b3bb2) * doc: fix typos (#62852) (cherry picked from commit b33ae1494936cd04fa89bce51e6068829fc89a91) * Add some documentation about using plugins in collections (#62465) - FQCN requirements - Sharing code in collections - Limitations with inventory caching (cherry picked from commit d41050b28b2d3e8d4a97ce13344b04fc87f703a2) * Remove Latin phrases from the docs (#62419) * add styleguide about avoiding use of latin words (cherry picked from commit e7436e278f8945dd73b066c47280c1a17bc18ebe) * ovirt: Fixing typo in ovirt_disk examples (#62962) (cherry picked from commit 50dc41cca2e6d75a05e933c5286f41bde235b65f) * vmware guidlines: adjust the location of cloud-config-vcenter.ini.template (#62970) Update the location of the cloud-config-vcenter.ini.template template. The file has been moved by: 2e7d36a3f969b31570d7ee34e3f1f971c5c586a9. (cherry picked from commit 7ecfa4a471ae17ee15aa51f684bf7d340805d432) * Prefer https:// links in the docs site (#62939) This is a follow-up of last year's 1a11cec. It deals with links which at that point either were not present or did not support https://. (cherry picked from commit c8315bfd6097f680ae79de5e4d4ee23d0c1068c0) * fix minor typos (#62950) (cherry picked from commit ad580a71c475b570cdbd4c79aaf0082ecccdf5fc) * Modernize Vagrant documentation (#62923) * By requiring a slightly newer Vagrant version (from 2015) we get the same generated Ansible inventory format is still used by today's version of Vagrant. That extended inventory format also has the benefit of allowing for simpler Ansible examples. * Switching to a current and supported Ubuntu LTS version. (cherry picked from commit 0d79013f51ca67eddcb1a3f6ff0f4453b659ee81) * add ios/iosxr deprecated modules (#62908) (cherry picked from commit 6bbd9c9eca5992d9fc53dd8fd8814205afaf508d)
* PowerShell - Added coverage collector (#59009)Jordan Borean2019-08-281-0/+25
| | | | | | | | | | | | | | | | * Added coverage collection for PowerShell - ci_complete ci_coverage * uncomment out coverage uploader call * Generate XML for PowerShell coverage * Use whitelist to exclude coverage run on non content plugins * Remove uneeded ignore entry * Try to reduce diff in cover.py * Fix up coverage report package - ci_complete ci_coverage
* OpenStack: rename _facts -> _info (#61197)Felix Fontein2019-08-271-0/+18
| | | | | * Rename openstack _facts -> _info * Add new module names to module_defaults.yml.
* Add module aliases back in hardcoded module_defaults list (#61203)Sloane Hertel2019-08-261-0/+106
|
* ansible-galaxy - define multiple galaxy instances in ansible.cfg (#60553)Jordan Borean2019-08-211-0/+13
| | | | | | | | | | | | | | | | * ansible-galaxy: support multiple servers on install * Added docs for the server configuration file * Fix up doc string for requirements file format * Fix bugs after testing * Fix kwarg doc and added version * Fix typo and doc improvement * Fix base64 encoding and allow --server to override list
* Made galaxy token file location configurable (#59387)Brian Coca2019-08-141-0/+7
| | | | | | | | | | * Made galaxy token file location configurable also made file handling 'unicode safe' * only create a token on demand * convert into decorator in case other funcs need
* Amazon modules: rename _facts with ansible_facts result to _info (#60178)Felix Fontein2019-08-131-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * aws_s3_bucket_facts -> aws_s3_bucket_info * cloudformation_facts -> cloudformation_info * cloudfront_facts -> cloudfront_info * ecs_service_facts -> ecs_service_info * efs_facts -> efs_info * Add changelog and porting guide entry. * lambda_facts -> lambda_info * Improve examples. * Add subsection on renamed modules. * Add sentence on registering variables. * Fix ReST. * Instead of renaming lambda_facts, deprecate it and replace with new module. * Rename internal variable. * Re-add sanity ignores for lambda_facts.
* add vfat to selinux special_context_filesystems (#59823)James Cassell2019-08-121-2/+4
| | | | | | vfat is the format of the /boot/efi partition on UEFI hosts and does not support SELinux labels add an environment variable for this config option
* TRANSFORM_INVALID_GROUP_CHARS: document "ignore" option (#57318)James Cassell2019-08-081-2/+3
| | | | Co-Authored-By: Alicia Cozine <879121+acozine@users.noreply.github.com>
* ecs_taskdefinition_facts: rename to ecs_taskdefinition_info (#60023)Felix Fontein2019-08-051-2/+0
| | | | * Rename ecs_taskdefinition_facts to ecs_taskdefinition_info.
* Add description of collection_paths in base.yml (#59778)Abhijeet Kasurde2019-07-311-0/+1
| | | | | Fixes: #59775 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Add missing aws modules to aws module defaults group (#59788)Mark Chappell2019-07-311-0/+30
| | | | | | * Add missing aws modules to aws module defaults group * add changelog
* fixes to config manager (#58530)Brian Coca2019-07-171-15/+42
| | | | | | | | | * skip unreadable ansible.cfg * all types should check for type * patch access for tests and fix tests that relied on missing files not being checked
* ansible-galaxy: add collection sub command (#57106)Jordan Borean2019-07-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ansible-galaxy: add collection init sub command * Fix changelog and other sanity issues * Slim down skeleton structure, fix encoding issue on template * Fix doc generation code to include sub commands * Added build step * Tidy up the build action * Fixed up doc changes and slight testing tweaks * Re-organise tests to use pytest * Added publish step and fixed up issues after working with Galaxy * Unit test improvments * Fix unit test on 3.5 * Add remaining build tests * Test fixes, make the integration tests clearer to debug on failures * Removed unicode name tests until I've got further clarification * Added publish unit tests * Change expected length value * Added collection install steps, tests forthcoming * Added unit tests for collection install entrypoint * Added some more tests for collection install * follow proper encoding rules and added more tests * Add remaining tests * tidied up tests and code based on review * exclude pre-release versions from galaxy API
* Add apply to k8s module (#49053)Will Thames2019-07-081-0/+2
| | | | | | | | | | * Add apply to k8s module Use apply method for updating k8s resources. * Improve apply documentation * k8s: Make apply and merge_type mutually exclusive
* Use atexit to cleanup tmp dirs (#56532)Sam Doran2019-06-281-2/+3
| | | | | | * Wrap everything in try/except to avoid leaving files behind * Add unit tests, integration tests, and changelog * Do text the correct way
* AWS: _facts -> _info (part 4) (#57651)Felix Fontein2019-06-101-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rename ec2_vpc_dhcp_option_facts -> ec2_vpc_dhcp_option_info. * Rename ec2_vpc_endpoint_facts -> ec2_vpc_endpoint_info. * Rename ec2_vpc_igw_facts -> ec2_vpc_igw_info. * Rename ec2_vpc_nacl_facts -> ec2_vpc_nacl_info. * Rename ec2_vpc_nat_gateway_facts -> ec2_vpc_nat_gateway_info. * Rename ec2_vpc_net_facts -> ec2_vpc_net_info. * Rename ec2_vpc_peering_facts -> ec2_vpc_peering_info. * Rename ec2_vpc_route_table_facts -> ec2_vpc_route_table_info. * Rename ec2_vpc_subnet_facts -> ec2_vpc_subnet_info. * Rename ec2_vpc_vgw_facts -> ec2_vpc_vgw_info. * Rename ec2_vpc_vpn_facts -> ec2_vpc_vpn_info. * Update module defaults, add changelog and porting guide. * Update BOTMETA.
* AWS: _facts -> _info (part 3) (#57635)Felix Fontein2019-06-101-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rename ec2_ami_facts -> ec2_ami_info. * Rename ec2_asg_facts -> ec2_asg_info. * Rename ec2_customer_gateway_facts -> ec2_customer_gateway_info. * Rename ec2_eip_facts -> ec2_eip_info. * Rename ec2_elb_facts -> ec2_elb_info. * Rename ec2_eni_facts -> ec2_eni_info. * Rename ec2_group_facts -> ec2_group_info. * Rename ec2_instance_facts -> ec2_instance_info. * Rename ec2_lc_facts -> ec2_lc_info. * Rename ec2_placement_group_facts -> ec2_placement_group_info. * Rename ec2_snapshot_facts -> ec2_snapshot_info. * Rename ec2_vol_facts -> ec2_vol_info. * Update module defaults, add changelog and porting guide. * Forgot one occurence of ec2_instance_facts. * Update BOTMETA. * Break too long line.
* AWS: _facts -> _info (part 2) (#57626)Felix Fontein2019-06-101-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rename cloudwatchlogs_log_group_facts -> cloudwatchlogs_log_group_info. * Rename elasticache_facts -> elasticache_info. * redshift_facts -> redshift_info. * Rename route53_facts -> route53_info. * Rename rds_instance_facts -> rds_instance_info. * Rename rds_snapshot_facts -> rds_snapshot_info. * Rename iam_mfa_device_facts -> iam_mfa_device_info. * Rename iam_role_facts -> iam_role_info. * Rename iam_server_certificate_facts -> iam_server_certificate_info. * Rename elb_application_lb_facts -> elb_application_lb_info. * Renaming elb_classic_lb_facts -> elb_classic_lb_info. * elb_target_facts -> elb_target_info. * Rename elb_target_group_facts -> elb_target_group_info. * Update porting guide. * Add changelog. * Fix module defaults (both for this PR and #57613). * Two fixes.
* Additional rename fixes (#57527)Zim Kalinowski2019-06-071-1/+1
| | | | | | | | * adding symbolic link * missing renames * reverted version_added
* Allow finer grained control for dupe YAML keys (#56933)Brian Coca2019-05-281-6/+7
| | | | | | | | | | | | | | * Allow finer grained control for dupe YAML keys fixes #16903 * expand option to handle errors * remove clog for previous version of toggle * added missing parens * fix typoe
* Config toggle for duplicate dict key warnings (fixes #56799) (#56805)Andrew Gaffney2019-05-231-0/+11
|
* removed previouslly deprecated settings (#55662)Brian Coca2019-05-151-84/+0
| | | | | | | | * removed previouslly deprecated settings fixes #55304 * also removed from play context
* Allow config boolean options to default to None (#55951)Sloane Hertel2019-05-021-4/+4
| | | | | | | | | | * Allow plugin boolean options to default to None * fix mistake * changelog * be more specific
* Add WTI Serial Port Config module (#55102)Ken Partridge2019-04-241-0/+10
|
* Renaming azure_rm_managed_disk for consistency (#54825)Zim Kalinowski2019-04-041-2/+2
|
* Collection content loading (#52194)Matt Davis2019-03-281-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * basic plugin loading working (with many hacks) * task collections working * play/block-level collection module/action working * implement PEP302 loader * implicit package support (no need for __init.py__ in collections) * provides future options for secure loading of content that shouldn't execute inside controller (eg, actively ignore __init__.py on content/module paths) * provide hook for synthetic collection setup (eg ansible.core pseudo-collection for specifying built-in plugins without legacy path, etc) * synthetic package support * ansible.core.plugins mapping works, others don't * synthetic collections working for modules/actions * fix direct-load legacy * change base package name to ansible_collections * note * collection role loading * expand paths from installed content root vars * feature complete? * rename ansible.core to ansible.builtin * and various sanity fixes * sanity tweaks * unittest fixes * less grabby error handler on has_plugin * probably need to replace with a or harden callers * fix win_ping test * disable module test with explicit file extension; might be able to support in some scenarios, but can't see any other tests that verify that behavior... * fix unicode conversion issues on py2 * attempt to keep things working-ish on py2.6 * python2.6 test fun round 2 * rename dirs/configs to "collections" * add wrapper dir for content-adjacent * fix pythoncheck to use localhost * unicode tweaks, native/bytes string prefixing * rename COLLECTION_PATHS to COLLECTIONS_PATHS * switch to pathspec * path handling cleanup * change expensive `all` back to or chain * unused import cleanup * quotes tweak * use wrapped iter/len in Jinja proxy * var name expansion * comment seemingly overcomplicated playbook_paths resolution * drop unnecessary conditional nesting * eliminate extraneous local * zap superfluous validation function * use slice for rolespec NS assembly * misc naming/unicode fixes * collection callback loader asks if valid FQ name instead of just '.' * switch collection role resolution behavior to be internally `text` as much as possible * misc fixmes * to_native in exception constructor * (slightly) detangle tuple accumulation mess in module_utils __init__ walker * more misc fixmes * tighten up action dispatch, add unqualified action test * rename Collection mixin to CollectionSearch * (attempt to) avoid potential confusion/conflict with builtin collections, etc * stale fixmes * tighten up pluginloader collections determination * sanity test fixes * ditch regex escape * clarify comment * update default collections paths config entry * use PATH format instead of list * skip integration tests on Python 2.6 ci_complete
* use ANSIBLE_ prefix on all ansible-defined env vars (#54272)James Cassell2019-03-261-3/+21
| | | mark old version deprecated in all places referenced via docs
* openstack: add os module_defaults group (#54319)James Cassell2019-03-261-0/+106
|
* fix AWS plugin credential precedence for environment variables (#52945)Sloane Hertel2019-03-251-0/+6
| | | | | | | | | | | | | | | | * fix AWS plugin credential precedence for environment variables * Allow aliases in direct plugins options Consolidate precedence fix just in the doc fragment using aliases for mismatched options * Access options with the option name rather than alias * fix indentation * update unit tests * Improve readability
* Fix name and default for become plugin config.Matt Clay2019-03-221-2/+3
| | | | Also add version_added.
* Conditional bare: fix typos (#53807)Pilou2019-03-191-4/+4
|