Commit Graph

972 Commits (f2ade09dce0e65187e6d213fd02e5341353c246e)

Author SHA1 Message Date
René Moser 53c46df323 cloudstack: new module cs_network_acl_rule (#25325)
* cloudstack: new module cs_network_acl_rule
* fix doc errors
8 years ago
Michael 2d63518753 Fixed markdown in changelog.md (#22980) 8 years ago
Dag Wieers 06035eca67 Added all new modules to CHANGELOG (#25120) 8 years ago
Toshio Kuratomi 8e1e896955 Enable su on the docker plugin 8 years ago
Toshio Kuratomi 0c3bdb7a6d Update changelog w/ docker addition 8 years ago
Brian Coca 37e5454839 updated inventory plugins info 8 years ago
Brian Coca 8f97aef1a3 Transition inventory into plugins (#23001)
* draft new inventory plugin arch, yaml sample

 - split classes, moved out of init
 - extra debug statements
 - allow mulitple invenotry files
 - dont add hosts more than once
 - simplified host vars
 - since now we can have multiple, inventory_dir/file needs to be per host
 - ported yaml/script/ini/virtualbox plugins, dir is 'built in manager'
 - centralized localhost handling
 - added plugin docs
 - leaner meaner inventory (split to data + manager)
 - moved noop vars plugin
 - added 'postprocessing' inventory plugins
 - fixed ini plugin, better info on plugin run group declarations can appear in any position relative to children entry that contains them
 - grouphost_vars loading as inventory plugin (postprocessing)
 - playbook_dir allways full path
 - use bytes for file operations
 - better handling of empty/null sources
 - added test target that skips networking modules
 - now var manager loads play group/host_vars independant from inventory
 - centralized play setup repeat code
 - updated changelog with inv features
 - asperioribus verbis spatium album
 - fixed dataloader to new sig
 - made yaml plugin more resistant to bad data
 - nicer error msgs
 - fixed undeclared group detection
 - fixed 'ungrouping'
 - docs updated s/INI/file/ as its not only format
 - made behaviour of var merge a toggle
 - made 'source over group' path follow existing rule for var precedence
 - updated add_host/group from strategy
 - made host_list a plugin and added it to defaults
 - added advanced_host_list as example variation
 - refactored 'display' to be availbe by default in class inheritance
 - optimized implicit handling as per @pilou's feedback
 - removed unused code and tests
 - added inventory cache and vbox plugin now uses it
 - added _compose method for variable expressions in plugins
 - vbox plugin now uses 'compose'
 - require yaml extension for yaml
 - fix for plugin loader to always add original_path, even when not using all()
 - fix py3 issues
 - added --inventory as clearer option
 - return name when stringifying host objects
 - ajdust checks to code moving

* reworked vars and vars precedence
 - vars plugins now load group/host_vars dirs
 - precedence for host vars is now configurable
 - vars_plugins been reworked
 - removed unused vars cache
 - removed _gathered_facts as we are not keeping info in host anymore
 - cleaned up tests
 - fixed ansible-pull to work with new inventory
 - removed version added notation to please rst check
 - inventory in config relative to config
 - ensures full paths on passed inventories

* implicit localhost connection local
8 years ago
Brian Coca 841baa3d5b updated chnalog 8 years ago
John R Barker e7b477299b New network/avi modules in 2.4 (#24293) 8 years ago
Brian Coca 8c364f8f81 updated release info 8 years ago
Toshio Kuratomi a0dfa8616a Make fetch default to fail on errors
Fixes #23501
8 years ago
Toshio Kuratomi 1c05ed7951 Fix circular import with unsafe_proxy, template, and vars
template/__init__.py imported unsafe_proxy from vars which caused
vars/__init__.py to load.  vars/__init__.py needed template/__init__.py
which caused issues.  Loading unsafe_proxy from another location fixes
that.
8 years ago
Toshio Kuratomi 51e3390333 Document deprecation of fetch module validate_md5 and update --tags merging deprecation (#24022)
* Document deprecation of fetch module validate_md5 and update --tags merging deprecation

Update the default of --tags merging config option to merge by default

* Update CHANGELOG.md

Minor edit
8 years ago
KARASZI István ffa92485b4 Fix Markdown formatting for GitHub (#23752) 8 years ago
Drew Russell c8e16793bf Add the Cisco Spark Module to the 2.3 New Modules (#23636)
Update the Ansible 2.3 New Module list to include the cisco_spark notification module.
8 years ago
Matt Davis d85f4a443f mark runas become method experimental (#23235)
Due to the number of "real world" caveats in the current runas become method, it was agreed that we'd warn that it's experimental on use. A potential future version based on LogonUser/CreateProcessAsUser will have very different requirements and limitations.
8 years ago
Brian Coca 621c586784 added lxd inventory script 8 years ago
Toshio Kuratomi 6cea89299a Add c7c8481 (quoting with hash mark in ini inventories) fix to changelog (#22921) 8 years ago
Toshio Kuratomi 2fff690caa Update module_utils.six to latest (#22855)
* Update module_utils.six to latest

We've been held back on the version of six we could use on the module
side to 1.4.x because of python-2.4 compatibility.  Now that our minimum
is Python-2.6, we can update to the latest version of six in
module_utils and get rid of the second copy in lib/ansible/compat.
8 years ago
Brian Coca b82aa41e31 removed deprecated config/env vars 8 years ago
Toshio Kuratomi 8de05d3752 [WIP] Documentation: Ansible-2.4 no longer supports Python-2.4 and Python-2.5 (#22721)
* Documentation: Ansible-2.4 no longer supports Python-2.4 and Python-2.5
* Switched to bullet points to enhance readability.
8 years ago
Matt Davis e3dfa62abc Windows CHANGELOG updates 8 years ago
Brian Coca 6ced1ad5a2 added group priority to change log 8 years ago
Brian Coca 2fee9ca0dc updated changelog 8 years ago
Ricardo Carrillo Cruz 6e56a61535 Add ios_banner module (#22687)
With unit and integration tests.
8 years ago
Brian Coca 0c44959800 added new tests any and all (#22665)
* added new tests any and all

* updated code names
8 years ago
John R Barker 34498590e3 nxos_mtu deprecated + Tidyup (#22645)
* nxos_mtu deprecated + Tidyup

* Update CHANGELOG.md
8 years ago
Brian Coca 7b167e7947 added stuff to changelog 8 years ago
Brian Coca 0e7664fe4d added java_cert module, did some cleanup 8 years ago
Ryan Brown 81e4fa2a2e Add changelog entry for Lambda module updates (#22327) 8 years ago
Ivan Bojer 9f1a71797e CHANGELOG adding missing PANOS modules (#22209) 8 years ago
Ivan Bojer 8b2ca79507 panos new module used for security policy creation (#20778)
* - new module used for security policy creation

* - added support for API key authentication
- added support for Panorama

* documentation changes

* documentation update

* minor doc changes based on review comments

* move ANSIBLE_METADATA

* changes to docs per reviewer comments
8 years ago
Matt Davis a60d358e56 Revert "win_service_stat: Added module" (#22184) 8 years ago
Jordan Borean 3da806f32a win_service_stat: Added module (#21944) 8 years ago
Matt Davis c98647ccf8 initial commit of win_domain module (#22179) 8 years ago
Matt Davis fffb4992b5 Update CHANGELOG.md 8 years ago
Matt Davis a5edd6e635 initial commit of win_disk_image (#22175) 8 years ago
Fabrizio Colonna f0de1e6c85 Added parted module (#20399)
* Added parted module

* Amended documentation

* Improved documentation

* Managed the case of parted not returning device information.

* Fixed Shippable test not passing

* Fixed compatibility with Python 2.4

* Cleanup of the state option, improved flags management, documentation refinements.

* Compacted format function, code style cleanups, amended comments.

* Fixed bug related to parted data parsing.

* Support for check-mode, amended size data type.

* Fixed Shippable test not passing.

* Added full suport for CHS and CYL units, applied suggested changes.
8 years ago
jhawkesworth 1c2e8fde29 Add win_msg module (#22008)
* new implementation of win_msg.  TODO tests

* added check_mode.  Get-AnsibleParam for parameters.  Default msg is now 'Hello world!'. Use hash for $results.
Re-ordered some parameters alphabetically.
Documentation now in raw strings.  Removed spurious required: false.  Added metadata.

* Keep pep8 checks happy

* Really keep pep8 checks happy this time

* update Changelog.md

* make bracket style internally consistent

* added units to display_seconds description
8 years ago
Dag Wieers 65ee3a6f19 iso_extract: new module to extract files from ISO images (#21957)
This is the original iso_extract module from the ansible-provisioning project.
We are upstreaming all our modules, and this PR is part of that process.
8 years ago
Dag Wieers c9c8be6459 hpilo_boot: Boot/power via HP iLO mgmt board (#21674)
This is the original `hpilo_boot` module that was once accepted in
Ansible but had been removed subsequently because it could not be tested
by the Ansible project.

Since then it was moved to the ansible-provisioning project and
maintained by HP engineers going forward.

Now we are trying to get it upstreamed again.
8 years ago
Matt Davis 06775d2708 CHANGELOG win_dns_client and win_domain_membership 8 years ago
Barry Peddycord III 2ca5719168 Deprecating old cumulus modules (#21726)
* deprecating old nclu modules

* adding deprecated cl_ moduels to changelog

* renaming deprecated modules
8 years ago
Rene Moser d12d1245cb doc: add fortios_config to changelog 8 years ago
Brian Coca 374af06cbf added pickle and yaml cache plugins
added new base class for file based cache plugins as 99% of code was common
now also catches unexpected decoding exceptions
allows per module file modes and encoding
moved jsonfile code to base
8 years ago
Brian Coca dc7992b60c added new modules to chnglog 8 years ago
Jordan Borean a80251ff02 Added win_region module (#19147) 8 years ago
Dag Wieers 958cbae7ba win_tempfile: New module implementing tempfile on Windows (#21623)
This module implements the **tempfile** module for Windows.
8 years ago
John R Barker 3b9892b45b New Modules for Ansible Tower (#21584) 8 years ago
Matt Davis 67f74bbc81 CHANGELOG/roadmap updates for Windows 8 years ago
Brian Coca 14033b9d7d added volumen manage 8 years ago
Dag Wieers 36aad569d2 Various small changes to CHANGELOG.md (#21521) 8 years ago
John R Barker 8a41b16e0f New modules: ordnance_config & ordnance_facts (#21450) 8 years ago
Toshio Kuratomi 44e92d1c40 Add mount fixes to changelog 8 years ago
Ryan S. Brown 723c8f4786 [docs] CHANGELOG add pubnub_blocks module 8 years ago
Ryan S. Brown e075307f3a Fix elasticache module names 8 years ago
John R Barker ff68526291 New module: mattermost (#21398) 8 years ago
Loïc Blot fb32c19fea New module: nsupdate (#21099)
Add nsupdate module to manage DNS records on a DNS server

This uses dnspython library

It's greatly inspired by https://github.com/mskarbek/ansible-nsupdate with some rework, better feedbacks and documentation addition

Signed-off-by: nerzhul <loic.blot@unix-experience.fr>
8 years ago
John R Barker b8c081f11a New module: panos_cert_gen_ssh.py (#21286) 8 years ago
John R Barker f409decf53 New module: sf_account_manager (#21284)
https://github.com/ansible/ansible/pull/20728
8 years ago
Brian Coca 455f52258a added new modules to changelog 8 years ago
Jordan Borean 5cabe420ea Added win_reg_stat module (#19145) 8 years ago
John R Barker 858e1ef422 sf_snapshot_schedule_manager (#21212) 8 years ago
Jordan Borean 1ce5fcf061 Added win_find module (#19144) 8 years ago
Toshio Kuratomi a3eab4fc48 Add 2.3.0 entries for module_utils via pluginloader, selectors, and py3 (#21019)
* Add 2.3.0 entries for module_utils via pluginloader, selectors, and py3

* Add roadmap-2.3 updates and an item for roadmap-2.4
8 years ago
s-hertel cdfa583235 Two added AWS modules for ElastiCache 8 years ago
Loïc Blot b55d039f67 New modules: vmware_guest_facts & vmware_guest_snapshot (#20971)
* Move gather_facts action outside of vmware_guest module
* Move facts gathering method to vmware.py library
* vmware_guest use some vmware.py library methods
* vmware.py lib: fix some PEP 8 issues
* Move snapshot actions to vmware_guest_snapshot
* Move common snapshot facts to vmware.py library
8 years ago
Dag Wieers 6355c5cafa Updated CHANGELOG.md with previous bits (#20973)
And also sort the modules properly.
8 years ago
Brian Coca a2c38c47aa added docs for vault and made trigger shorter: !vault (#20985)
* added docs for vault and made trigger shorter: !vault

* added single var valuting

* Update playbooks_vault.rst

Edit pass for spelling and grammar. Ship it!

* Update playbooks_vault.rst

Typo fixes.
8 years ago
Ryan S. Brown d2569fa6e2 Add ovirt_snapshots to changelog 8 years ago
Ivan Bojer 800db1b209 added already approved PANOS modules (#20952) 8 years ago
jctanner 6726d5f8f8 Update changelog for controlpersist path feature (#20928) 8 years ago
Ryan S. Brown 6244271d46 Add gce_eip module to changelog 8 years ago
Ryan S. Brown 151a3d862b [docs] Add ec2_vpc_igw_facts to changelog 8 years ago
Ivan Bojer 327ad42ff2 new panos module to import software or configuration file into firewall (#19901)
* # This is a combination of 6 commits.
# The first commit's message is:
new module to import software or configuration file onto firewall

# This is the 2nd commit message:

changes based on the review comments; remove unecessary if statements; change returned value docstring

# This is the 3rd commit message:

empty checkin to trigger ANSIBLEbot

# This is the 4th commit message:

added additional exception handling

# This is the 5th commit message:

- added new module info to the changelog as requested

# This is the 6th commit message:

removed blank space as tox checks were failing

* new module to import software or configuration file onto firewall
8 years ago
Brian Coca 10d1865880 added kyring to chnglog 8 years ago
Brian Coca 0cd6ea1bd8 added ec2_vpc_nat_gateway_facts to chnglog 8 years ago
Brian Coca df49952c48 added tower_org 8 years ago
Brian Coca 294a23d7f6 renamed sv to runit, avoid svc confusion 8 years ago
Ted 772f8f4854 Add bigmon policy module (#20584)
* Cleanup fork

* Add bigmon_policy module

* Remove docker files from commit, fix formatting, add CHANGELOG.md entry

* Put change in CHANGELOG.md in alph order and add the alias to access_token doc

* Fix access_token type, drop the alias, and fix doc

* Capitalize letter, delete redundant notes, make validates_certs True by default

* Add validate_certs to example

* Try fixing trailing space

* Try adding a trailing space

* Try removing trailing space at end of file

* Add newline at end of file and fix trailing space
8 years ago
Ryan S. Brown ebfb9ff3c1 Update CHANGELOG with new ovirt module 8 years ago
Loïc Blot ebe621bb23 Add logstash_plugin to manange logstash plugins (#20592) 8 years ago
Ryan S. Brown 8d4246ca2f Add ec2_vpc_vgw_facts module to changelog 8 years ago
Ondra Machacek 43519c9bef Add oVirt modules notes to CHANGELOG (#20401) 8 years ago
Will Thames 75437bbe3c Fix ec2_vpc deprecation docs
Clarify the CHANGELOG with deprecation timeline
Correct name of `ec2_vpc_net` module to be used instead
8 years ago
Brian Coca 4e49744031 added 2.1 release info 8 years ago
Brian Coca 6d647aaf55 updated with 2.2.1 release 8 years ago
Brian Coca cf82023a41 added piped option entry to changelog 8 years ago
Brian Coca ebd06ebba0 updated 2.2.0 release date 8 years ago
Will Thames 75a7ebe900 Deprecate ec2_vpc module (#20344)
* Deprecate ec2_vpc module

The deprecation of ec2_vpc module has been discussed for
2 years and is causing duplication of effort as changes
are implemented for ec2_vpc rather than for the newer
alternatives

* Improve module deprecation documentation

Update the developing modules documentation with the latest
instructions on how to deprecate a module.
8 years ago
Jasper Lievisse Adriaanse 1844a746b2 List vmadm as a new module 8 years ago
Matt Davis b2a16379c8 new module: win_path (#20073) 8 years ago
Rene Moser 97491672e4 doc: changelog: add new module cloudscale_server 8 years ago
Ryan S. Brown 9da73b160a Add ECS ECR module to changelog 8 years ago
Rene Moser b9a1400df5 doc: changelog: new module dimensiondata_network 8 years ago
Matt Davis 5afc0d0c58 add win_shortcut to CHANGELOG 8 years ago
Jasper Lievisse Adriaanse 0937196df1 Sync changelog with recent illumos networking modules (#20074) 8 years ago
Adam Števko d9ced3f4d1 Modules for gathering facts about ZFS datasets and pools (#19181)
* Add modules for gathering facts about ZFS datasets and pools

* Move zfs module to storage/zfs subcategory

* Replace dict.iteritems() with iteritems(dict)

* Add ANSIBLE_METADATA
Document return values
Make imports explicit
Use native YAML syntax in EXAMPLES

* Add zfs_facts and zpool_facts modules to CHANGELOG.md

* Add facts to return values
8 years ago
Adam Števko 3744764fae Add module for managing boot environments on FreeBSD/Solaris/illumos … (#19180)
* Add module for managing boot environments on FreeBSD/Solaris/illumos systems

* Add ANSIBLE_METADATA
Document return values
Make imports explicit
Use native YAML syntax in EXAMPLES

* Add beadm module to CHANGELOG.md

* Update version to 2.3
8 years ago
Michael 583136980d Adding os_quota support to the OpenStack modules (#19590)
* Adding os_quota support to the OpenStack modules

* Updated descriptions in doc string

* Updated version_added to 2.2 based on CI test feedback

* ready_for_review

* Changed exit_json to remove updating host var facts

* Updated version_added and docs

* Added support for state:absent paramater

This includes:
- Updated the doc string with the paramater information
- Updated the example section showing how to reset a project quota
- Added code support to handle state:absent
- Encountered a bug in delete_network_quota where it returns
an error instead of the current quota. Added support code to
workaround that issue until a proper fix can be added.

* Updated security groups kwarg to reflect Neutron kwargs

* Updated iteritems to be items based on CI feedback

* Updated descriptions and import statements based on code review feedback

* Updated CHANGELOG.md to include os_quota under new mods.
8 years ago
James Hogarth 513466d309 add jenkins_script module for running arbitrary jenkins console scripts against a jenkins instance (#19640) 8 years ago
Jasper Lievisse Adriaanse 7793424b1b Add new module to manage SmartOS images through imgadm(1M) (#19696)
* Add new module to manage SmartOS images through imgadm(1M)

* Explain why check_mode is not supported

* Add imgadm module

* Incorporate feedback from abadger
8 years ago
René Moser 7ae3539eb5 changelog: add new cloudstack modules (#19940) 8 years ago
Ryan S. Brown 3519f2c1c9 Add new AWS KMS module to changelog 8 years ago
Tomáš Karásek 3ebbcbadcf 2 modules for Packet host: packet_device and packet_sshkey (#19005)
* Added 2 modules for Packet Host: packet_device and packet_sshkey

* Fixed comments from @mmlb

* Fixed comments from @gundalow

* Fix typos pointed by @gundalow

* Mention new Packet modules in the CHANGELOG.md
8 years ago
Ner'zhul 9f2d8c2409 Add omapi_host module (#19602)
This module managed DHCPd hosts using OMAPI protocol

Features:
* Add a host
* Remove a host
* Modify host IP (it's impossible to modify only mac or only hostname, this doesn't have any effect)
* Add custom DHCP attributes (at creation only)
8 years ago
Ner'zhul 65f0155d8a Add icinga2_feature module (#19732)
This module permits to tell icinga to enable or disable features
8 years ago
Gregory Shulov 6c3de3c299 Initial Commit for Infinidat Ansible Modules (#19429)
* Initial Commit for Infinidat Ansible Modules

Skip tests for python 2.4 as infinisdk doesn't support python 2.4

Move common code and arguments into module_utils/infinibox.py

Move common documentation to documentation_fragments. Cleanup Docs and Examples

Fix formating in modules description

Add check mode support for all modules

Import AnsibleModule only from ansible.module_utils.basic in all modules

Skip python 2.4 tests for module_utils/infinibox.py

Documentation and code cleanup

Rewrite examples in multiline format

Misc Changes

Test

* Add Infinibox modules to CHANGELOG.md

* Add ANSIBLE_METADATA to all modules
8 years ago
Brian Coca cb55e74487 added update to ansible-doc as minor feature 8 years ago
Carlos E. Garcia 0b8011436d minor spelling changes 8 years ago
Brian Coca 778c983ef9 ansible_playbook_python (#18530)
* ansible_playbook_python

fixes #18471

* fix tests

* removed dupe
8 years ago
Brian Coca 461286f914 added new callback dense 8 years ago
Brian Coca 387ad9a980 updated changelog with configurable strategy 8 years ago
James Cammarata fcb033b9e4 Add `name` field for Blocks
Fixes #18420
8 years ago
Brian Coca c005ae3cd9 removed package from squash actions
fixes https://github.com/ansible/ansible-modules-core/issues/5595
8 years ago
Rene Moser 1327230ebf changelog: add FreeIPA modules 8 years ago
Toshio Kuratomi 03f85441a1 Add openbsd version-release facts change to changelog 8 years ago
Gonéri Le Bouder 702ac436dc drop duplicated section from CHANGELOG
This 2.1.2 section from the changelog was duplicated.

78a02555e5 was coming from extra 2.1.2 information but the section
was already here since 94a0d2afb4.
8 years ago
Brian Coca 4176aceb5f added openwrt_init service module 8 years ago
Brian Coca c683d01c00 added win_say
(cherry picked from commit 6b94ddd8a55d6386f99d332834b0754218b0175e)
8 years ago
Rene Moser 460da3b537 doc: add new modules to changelog 8 years ago
Michael Scherer a1032bc44b Fix some errors in CHANGELOG.md (#18149) 8 years ago
John R Barker 871d3d8945 New f5 modules (#18106)
From https://github.com/ansible/ansible-modules-extras/pull/3232
8 years ago
Toshio Kuratomi f012159860 Move archive from the 2.2 release to the 2.3 release 8 years ago
Toshio Kuratomi 7e57403b9e Add a changelog entry for merging of multiple --tags arguments 8 years ago
John R Barker 0dea70bf37 asa_template wasn't ever officially released
asa_template was added during 2.2 development, and removed before 2.2 hit RC1 so no need to give notice of deprecation.
8 years ago
James Cammarata 78a02555e5 Updating CHANGELOG and release versions for 2.1.2 8 years ago
John R Barker 4643bb4c6a New modules (#17870)
Full review of new modules
8 years ago
Peter Sprygada 15ee97d214 added network updates to CHANGELOG 8 years ago
Brian Coca 814e3069b9 added forman callback plugin to changelog 8 years ago
Senthil Kumar Ganesan 7e0074263d Remove the dellosX_template module (#17836) 8 years ago
jctanner 91adddfbca Update changelog for scp_when_ssh=smart (#17819) 8 years ago
Brian Coca 86ea21a73d ansible_play_batch (#17779)
* ansible_play_batch

* added version added
8 years ago
John R Barker 8cdf002f2a Notice of Networking *_template deprecations (#17668)
* Notice of Networking *_facts deprecations

* Just use the term "Deprecations"

* Update CHANGELOG.md

* Improve layout
8 years ago
Brian Coca 530b2d7a15 added ansible_play_hosts to changelog 8 years ago
Chris Houseknecht cc9ef78597 Added docker_network to 2.2 change log 8 years ago
James Cammarata 507700e42c Officially naming the 2.2 release "The Battle of Evermore" 8 years ago
John R Barker cd79fcc8c6 Fixed formatting
Need a blank line before headings
8 years ago
Toshio Kuratomi 429a3cf82d Add pip bugfix to minor changes 8 years ago
John R Barker a80158847e New networking modules in 2.2 8 years ago
Senthil Kumar Ganesan 463349c0d1 Added support template module for Dell Networking OS6 devices 8 years ago
Senthil Kumar Ganesan e07b854505 Update Changelog for the dellos6_facts module support (#17621) 8 years ago
Senthil Kumar Ganesan bb9ed50441 Renamed the Modules from dnos* -> dellos*, updated copyright, removed… (#17617)
* Renamed the Modules from dnos* -> dellos*, updated copyright, removed dnos6_template

* Addressed @gundalow comments
8 years ago
Brian Coca 4e60f23198 remove bare variable support from loops (#17519)
* remove bare variable support from loops

* Added new 'removed deprecated' section to changelg

also added removed items from this PR and others
8 years ago
Mike Rostermund 89c826df9d Fixed typo in changelog (#17597) 8 years ago
Peter Sprygada 697888965e Merge pull request #17603 from skg-net/dnos10_facts
Added support for facts module for Dell Networking OS10 device.
8 years ago
Toshio Kuratomi 8af8eec789 Merge pull request #17590 from abadger/vault-fixes
Vault fixes
8 years ago
Senthil Kumar Ganesan 769fa1c2d7 Support for dnos10_facts module 8 years ago
Toshio Kuratomi e70066a6f7 Many Cleanups to vault
* Make is_encrypted_file handle both files opened in text and binary mode
  On python3, by default files are opened in text mode.  Since we know
  the encoding of vault files (and especially the header which is the
  first set of bytes) we can decide whether the file is an encrypted
  vault file in either case.
* Fix is_encrypted_file not resetting the file position
* Update is_encrypted_file to check that all the data in the file is ascii
* For is_encrypted_file(), add start_pos and count parameters
  This allows callers to specify reading vaulttext from the middle of
  a file if necessary.
* Combine VaultLib.encrypt() and VaultLib.encrypt_bytestring()
* Change vault's is_encrypted() to take either text or byte strings and to return False if any part of the data is non-ascii.
* Remove unnecessary use of six.b
* Vault Cipher: mark a few methods as private.
* VaultAES256._is_equal throws a TypeError if given non byte strings
* Make VaultAES256 methods that don't need self staticmethods and classmethods
* Mark VaultAES and is_encrypted as deprecated
* Get rid of VaultFile (unused and feature implemented in a different way)
* Normalize variable and parameter names on plaintext, ciphertext, vaulttext
* Normalize variable and parameter names on "b_" prefix when dealing with bytes
* Test changes:
  * Remove redundant tests( both checking the same byte string)
  * Fix use of format string without format operator
  * Enable vault editor tests on python3
  * Initialize the vault_cipher for VaultAES256 testing in setUp()
  * Make assertTrue and assertFalse take the actual method calls for
    better error messages.
  * Test that non-ascii byte strings compare correctly.
  * Test that unicode strings and ints raise TypeError

* Test-specific:
  * Removed test_methods_exist().  We only have one VaultLib so the
    implementation is the assurance that the methods exist. (Can use an abc for
    this if it changes).
  * Add tests for both byte string and text string input where the API takes either.
  * Convert "assert" to unittest assert functions or add a custom message where
    that will make failures easier to debug.
  * Move instantiating the VaultLib into setUp().
8 years ago
Senthil Kumar Ganesan 81072fcba1 Added support OS9 facts (#17591) 8 years ago