Граф коммитов

427 Коммитов

Автор SHA1 Сообщение Дата
XioNoX 79e65f3626 Merge the diff to force commit check 2017-07-07 03:01:57 -07:00
Arzhel Younsi 1d2ac8c8a8 Ignore warnings when pushing config
Revisit after https://github.com/Juniper/ansible-junos-stdlib/pull/168
2017-07-07 03:01:57 -07:00
Nitin Kr 44929e4363 Merge pull request #247 from vnitinv/246-fix-logfile
junos_install_os used to fail without 'logfile' parameter
2017-06-23 17:13:13 +05:30
Nitin Kr c653581845 version finding regex in case version is not provided (#249) 2017-06-20 17:05:09 -06:00
vnitinv e9234ac875 junos_install_os used to fail without 'logfile' parameter 2017-06-19 13:55:41 +05:30
Stacy W. Smith 8f184ca3b9 Add new re_name and master_state facts to junos_get_facts (#239)
* Preparing for v.1.4.1 release.

* Add new re_name and master_state facts to junos_get_facts

These new facts are based on the dev.re_name and dev.master
PyEZ device properties.

* Removing Ansible 1.9 from .travis.yml
2017-05-23 14:47:03 -06:00
Stacy W. Smith dad93fffdb Add the force_host argument to junos_install_os. Addresses #233. (#234)
* Preparing for v.1.4.1 release.

* Add the `force_host` argument to `junos_install_os`. Addresses #233.

By default, the Host Software package on QFX-series platforms is not
upgraded by the <request-package-add> RPC. Adding the <force-host/>
argument to the RPC forces the Host Software package to also be upgraded.

This PR adds the ability to pass the `force_host` argument to the
`junos_install_os` module. This optional boolean argument defaults
to False. When set to True, it passes the <force-host/> argument to
the underlying <request-package-add> RPC.

* Removing Ansible 1.9.6 from testing.
2017-05-23 14:44:19 -06:00
Stacy W. Smith 35e0e05ddd Prepare v 2 0 0 dev0 (#232) 2017-04-24 14:12:15 -06:00
Stacy W. Smith 3068e3fd79 Prepare v. 1.4.2 (#231)
* Prepare for the version 1.4.2 release.
2017-04-24 11:24:07 -06:00
Stacy W. Smith c7614f3431 Fix docs for Ansible 2.3 (#230)
* Fix documentation build for Ansible >= 2.3

Ansible >= 2.3 returns an additional parameter from
ansible.utils.module_docs.get_docstring(). This was preventing
the readthedocs documenation from building correctly.

Updated the ansible2rst.process_module() to handle both the old
and new return values of ansible.utils.module_docs.get_docstring().
2017-04-24 10:47:09 -06:00
Stacy W. Smith ad9f49da1a Fix documentation for v 1.4.1 (#229) 2017-04-21 21:28:08 -06:00
Stacy W. Smith 43b0f4885c Preparing for v.1.4.1 release. (#228)
* Preparing for v.1.4.1 release.

* Removing Ansible 1.9.6 from testing until the tests can be updated.
2017-04-21 14:24:58 -06:00
Stacy W. Smith 8ce62ae552 JSON dump of Junos facts requires native Python data types. Fixes #223 (#224)
After Juniper/py-junos-eznc#638, PyEZ facts are now a custom object
rather than a true dict. In addition, facts are now read-only.

This was partially addressed in #210, but I missed the case
where the `savedir` option is specified to dump the facts into
JSON files. The same fix is also required in this case.
2017-04-06 16:58:17 -06:00
Nitin Kr b14dc80a8e ISSU/NSSU support (#219) 2017-03-23 08:30:04 -06:00
Nitin Kr 9740081756 "update" action for config load (#218)
* junos_get_config options type defined for Ansible >=2.1

* Config.load can take "update" as action

* Python 3.x compatible changes
2017-03-16 08:56:44 -06:00
Nitin Kr 030dcb8643 Merge pull request #215 from stacywsmith/allow_modules_to_import_cleanly
Allow modules to import cleanly
2017-03-14 22:11:09 +05:30
Stacy Smith 8163443a41 Merge remote-tracking branch 'upstream/master' into allow_modules_to_import_cleanly 2017-03-13 19:06:31 -06:00
Stacy Smith f3b282f13d Update modules so they aren't executed upon import. This makes them
compatible with Ansible 2.3 which tries to import them to see if
`USE_PERSISTENT_CONNECTION` is set.
2017-03-13 19:05:19 -06:00
ntwrkguru 97df1958cc Reverting to Ansible 2.2 (#214)
* Typo in README

* Revert to Ansible 2.2
2017-03-08 10:00:14 -07:00
ntwrkguru cdcbcccb68 Typo in README (#213) 2017-03-08 09:56:00 -07:00
ntwrkguru 6b18f6b058 Merge pull request #212 from ntwrkguru/master
Updated Dockerfile and README
2017-03-08 11:03:30 -05:00
Stephen Steiner f395f2b7e7 Updated Dockerfile and README 2017-03-08 10:36:48 -05:00
Nitin Kumar b4e9fe17bc junos_get_config options type defined for Ansible >=2.1 (#211)
With Ansible version >=2.1, if the type is not defined, the value is assigned as string only.
Hence change to take explicitly define type of options param
2017-03-03 07:35:42 -07:00
Stacy W. Smith 1c993cdadb Modify junos_get_facts to be compatible with py-junos-eznc#638. (#210)
Ansible 2 doesn't like custom objects in a module's return value, and
after py-junos-eznc#638 PyEZ facts are now a custom object rather than a true
dict. Since facts are read-only, we must begin by copying facts into a dict.
Also, since PyEZ facts are now "on-demand", this must be done before closing
the connection. These changes remain backwards compatible with older PyEZ
versions that have older fact gathering code.
2017-03-03 07:34:57 -07:00
Nitin Kumar 0cce6ff591 Priv ssh key (#205)
* added ssh_private_key_file paramter to all modules

* replaced args to m_args as being used by other params
2017-01-25 11:19:30 -07:00
Damien deb0f9bf4f Merge pull request #198 from dgarros/fix_junos_cli
junos_cli - Fix for > global name 'dest' is not defined
Merged without review because junos_cli is broken right now
2016-12-22 14:55:29 -08:00
Damien Garros 419b6ce1c2 Remove multi-line shell commands in travis 2016-12-22 14:32:32 -08:00
Damien Garros 76ab4f0e77 Cleanup tests and travis to use a docker container for ravello-ansible instead of local version 2016-12-22 14:27:28 -08:00
Damien Garros 94d4eb1128 Use Docker for everything ansible on travis 2016-12-22 12:39:41 -08:00
Damien Garros 7ddc12d4cb Fix issue with variable name args[‘dest’] instead of dest 2016-12-22 12:31:45 -08:00
Nitin Kumar 0d90675f24 Merge pull request #197 from dgarros/fix_jsnapy_doc
[junos_jsnapy] Clean up the inline documentation
2016-12-22 12:32:36 +05:30
Damien Garros 6a2e68927a Remove dest option from doc, indicate action as mandatory in doc, add examples for snap_pre & snap_post 2016-12-21 16:54:37 -08:00
Nitin Kumar a2b271ed72 Merge pull request #187 from dgarros/unittest
Add Unitest for Ansible modules using Virtual Devices in the Cloud
2016-12-21 10:49:00 +05:30
Nitin Kumar 4aec751949 Merge pull request #196 from vnitinv/master
To support kwargs as dict into junos_rpc
2016-12-21 10:17:37 +05:30
nitinkr f324f7bb78 Fix: rpc args as dictionary was broken with ansible 2.2 2016-12-20 17:12:17 +05:30
nitin kumar b8f18440aa To support rpc kwargs as dict 2016-12-16 16:21:36 +05:30
nitin kumar 1896c35fb0 To support rpc kwargs as dict 2016-12-16 16:18:47 +05:30
Damien 22b18bf7d2 Add test before writing output to dest (#193) 2016-12-12 18:22:15 -07:00
Matt Peterson e50945df08 Don't log password (#183) 2016-12-08 08:05:52 -07:00
Damien 27083817d8 Update README.md (#188)
Add a mention of the core modules at the beginning.
Made some cosmetics changes (coloration etc ..)
Add my name as contributor
2016-12-05 12:37:24 -07:00
Damien d28d107994 Merge pull request #186 from dgarros/callbackplugin_issue
Add more checks to callback_plugin to make sure info returned by modules is valid
2016-11-30 18:35:27 -08:00
Damien Garros 62c3ece6c9 Delete travis_ansible_python file once ravello topology is up 2016-11-30 18:14:14 -08:00
Damien Garros 90588be09a Add URL to see the Applications on Ravello 2016-11-30 18:03:52 -08:00
Damien Garros af2147d2d9 Change name of the application on Ravello to include more information 2016-11-30 17:56:07 -08:00
Damien Garros db40091f85 Fix issue with inventory name 2016-11-30 17:55:25 -08:00
Damien Garros 3d77ab24f8 Reorganize travis-ci file to use Docker container for tests 2016-11-30 17:29:30 -08:00
Damien Garros 0c7d650060 Add ARG for Ansible and Jsnapy version to change that at Build time 2016-11-30 17:29:04 -08:00
Damien Garros 9f377751ba Add more checks to make sure info returned by modules is valid 2016-11-30 13:39:43 -08:00
Damien Garros 895d585fd5 Add tests for junos_jsnapy 2016-11-30 13:36:52 -08:00
Damien Garros 07eefaabb3 Cleanup vagrant tests 2016-11-30 13:36:15 -08:00