Commit graph

7978 commits

Author SHA1 Message Date
Peter Sprygada
23f1d20a5c initial add of ios_template module
This adds a new module for working with IOS devices and building configurations
using templates.
2016-02-06 08:19:01 -05:00
Peter Sprygada
d05ceb9e28 initial add of ios_config module
This adds a new module ios_config that can be used for configuring
IOS devices.
2016-02-06 08:16:32 -05:00
Peter Sprygada
d64ae18307 bug fix on parameter in eos_config
The eos_config module has a bug where its trying to pass an argument
that doesn't exist.  This fixes that problem, removing the offending
keywork argment
2016-02-06 07:37:46 -05:00
Peter Sprygada
0df3a0e501 Merge pull request #2941 from privateip/module_eos_template
initial add of new module eos_template
2016-02-06 07:02:14 -05:00
Peter Sprygada
9ee5dc12b6 Merge pull request #2872 from privateip/module_eos_command
initial add of eos_command module
2016-02-06 07:01:51 -05:00
Peter Sprygada
6702496781 Merge pull request #2862 from privateip/module_eos_config
initial add of eos_config module
2016-02-06 07:01:24 -05:00
Peter Sprygada
b7c2878136 initial add of eos_config module
This adds a new module for pushing configuraitons to eos devices in a
reliable and repeatable fashion.  It includes support for templating
configurations and backing up the current config prior to pushing out
changes.  This module works over either CLI or EAPI.

This PR has a dependency on ansible/ansible PR #14009 being merged
2016-02-06 06:55:27 -05:00
Peter Sprygada
fca78058db fixup docstring in nxos_config module 2016-02-06 06:35:01 -05:00
Peter Sprygada
82a051d150 Merge pull request #2897 from privateip/module_nxos_command
initial add of new module nxos_command
2016-02-06 06:29:26 -05:00
Peter Sprygada
6cddd47e67 Merge pull request #2942 from privateip/module_nxos_template
initial add of nxos_template module
2016-02-06 06:28:53 -05:00
Peter Sprygada
5606dec038 Merge pull request #2857 from privateip/module_nxos_config
initial add of new nxos_config module
2016-02-06 06:27:34 -05:00
Scott Brown
2f329f832e Fixing missing interpolation variable 2016-02-05 14:35:50 -08:00
Toshio Kuratomi
2ec9f67282 Merge pull request #2975 from ansible/vsphere-validate-older-pythons
Make validate_certs for vsphere_guest work with older python2
2016-02-05 13:26:32 -08:00
Toshio Kuratomi
f5cdcfa1d9 Make validate_certs for vsphere_guest work with older python2 2016-02-05 13:17:18 -08:00
Chrrrles Paul
2ec5e87a2e Merge pull request #2974 from chrrrles/apt-autoremove
adding autoremove to apt - Fixing this PR I had accidentally closed: 
https://github.com/ansible/ansible-modules-core/pull/2946
2016-02-05 12:46:01 -06:00
Charles Paul
d7a0a3b7e3 adding autoremove to apt 2016-02-05 12:42:25 -06:00
Matt Davis
a6605c9c6f Merge pull request #2955 from stewrutledge/insecure
Add parameter for ignoring cert errors
2016-02-04 13:54:21 -08:00
Brian Coca
20dc8bdce0 Merge pull request #2957 from mattclay/user-check-mode-osx
Make modify_user honor check mode on OS X.
2016-02-04 15:19:18 -05:00
Peter Sprygada
ef8df6c0ec initial add of new nxos_config module
This adds a new module for managing configuraiton files for Cisco NXOS
devices.  It provides configuration file management including templating
and backing up the current configuration.

This PR has a dependency on ansible/ansible PR # 14012
2016-02-04 11:31:19 -05:00
Toshio Kuratomi
e1ec52e365 Re-add version_added to fireball docs 2016-02-04 07:37:38 -08:00
Toshio Kuratomi
2c3a85902c Fireball was removed in 2.0 (action plugin is gone).
This commit removes the helper module that wouldn't work without the
action module and tells users what to use instead.
2016-02-04 07:35:46 -08:00
Toshio Kuratomi
63fda10853 Merge pull request #1458 from Tahvok/patch-1
Explain that state=present should be used with yum and url
2016-02-04 06:57:07 -08:00
Matt Clay
151f981ce5 Make modify_user honor check mode on OS X. 2016-02-04 01:29:56 -08:00
Stewart Rutledge
6d749b22bc Merge branch 'insecure' of github.com:stewrutledge/ansible-modules-core into insecure 2016-02-04 08:41:39 +01:00
Matt Clay
2645113eda Make modify_user_usermod honor check mode on AIX. 2016-02-03 23:19:17 -08:00
Stewart Rutledge
c24f758a02 Changed insecure to validate_certs, with a default to true from false (reversing behavior) 2016-02-04 08:16:35 +01:00
Stewart Rutledge
c13efdbd2b Added support for insecure parameter 2016-02-04 08:16:35 +01:00
Toshio Kuratomi
6ff4c4cb71 Add example of using non-posix shellisms to raw and shell
Fixes #14262
2016-02-03 13:09:25 -08:00
Luca Berruti
d820be81e5 Typo. 2016-02-03 16:57:06 +01:00
Brian Coca
50bfacb0da Merge pull request #2947 from mattclay/user-check-mode-freebsd
Make modify_user honor check mode on FreeBSD.
2016-02-03 09:58:57 -05:00
David Shrewsbury
092791dc2c Fix for os_server module when specifying region
Fix the OpenStack os_server module for when region_name is specified.
This should not be passed through to the shade create_server() call
as it's only used with the auth parameters.

Fixes bug: https://github.com/ansible/ansible-modules-core/issues/2797
2016-02-03 09:52:18 -05:00
Matt Clay
8bb538aeb1 Make modify_user honor check mode on FreeBSD. 2016-02-03 02:24:12 -08:00
Toshio Kuratomi
29b81a4153 Merge pull request #2826 from shawnsilva/cloudformation-req-params
The parameters 'template' and 'template_url' are incorrectly required in all cases in the cloudformation module
2016-02-02 13:27:30 -08:00
Toshio Kuratomi
a5667e51ad Merge pull request #2660 from mscherer/fix_rhn_register
Do not use a shell construct for rhnreg_ks
2016-02-02 13:21:57 -08:00
Peter Sprygada
25dee10814 initial add of nxos_template module
The nxos_template module worksw by allowing configurations to be pushed
to Cisco NXOS devices over CLI or NXAPI and templated using the Ansible
Jinja2 template engine
2016-02-01 22:22:29 -05:00
Peter Sprygada
d29db07fab initial add of new module eos_template
The eos_template module works by allowing configurations to be pushed
to Arista EOS devices that can be templated by the Ansible Jinja2
template engine
2016-02-01 22:21:40 -05:00
Peter Sprygada
332c6a56c5 initial add of eos_command module
This adds a new module eos_command to network/eos.  The eos_command module
is used for sending arbitrary commands to Arista EOS devices.  It includes
arguments that allow the module to wait for specific values before the
module returns control to the playbook or fails
2016-02-01 21:19:52 -05:00
Brian Coca
3e6a685bd3 Merge pull request #2925 from mattclay/apt-repository-check-mode
Show error if python-apt is absent in check mode.
2016-02-01 08:24:41 -05:00
Ryan-Neal Mes
c30bca6808 Indented code so it only executes tag comparison for matching cird values 2016-02-01 13:58:12 +02:00
Peter Sprygada
32e238a8f0 initial add of new module nxos_command
This adds a new module nxos_command that can be used to send arbitrary
commands to NXOS devices.  The module includes an argument that allows
the responses to be evaluated and causes the module not to return
control to the playbook until a set of conditions has been met.
2016-01-31 20:45:14 -05:00
Matt Clay
e56d668ade Split shell command to avoid use_unsafe_shell.
This mirrors a nearly identical change made to apt_repository.py.

Also removes the use of apt-get --force-yes as it can be dangerous
and should not be necessary (apt_repository.py does not use it).

Repeating the explanation from the apt_respository change below:

Since use_unsafe_shell is suspicious from a security point
of view (or it wouldn't be unsafe), the less we have, the less
code we have to thoroughly inspect for a security audit.

In this case, the '&&' can be replaced by doing 2 calls to run_command.
2016-01-31 02:22:59 -08:00
Matt Clay
7a82f2c86d Show error if python-apt is absent in check mode.
Previously this would fail with an exception which
did not clearly explain the reason for the failure.
2016-01-31 01:32:09 -08:00
Michal Svab
2c3ef42d92 Clarify get_url timeout documentation 2016-01-29 09:24:28 +00:00
Toshio Kuratomi
93d02189f6 Remove duplicate documentation fields 2016-01-28 09:24:20 -08:00
Barry Peddycord III
a398a36a9d Removing alpha-stage modules. 2016-01-27 10:08:14 -08:00
Tobias Wolf
99ba594f0a Add diff for both file contents and file attributes to lineinfile
Using the difflist feature added in ansible/ansible@c337293 we can add
two diffs to the `diff` dict returned as JSON: A `before` and `after` pair of
changed file contents and the diff of the file attributes.

n.b.: the difflist handling from the above commit is logically broken.
PR will follow.

Example output:

    TASK [change line and mode] ************************************************************
    changed: [localhost]
    --- before: /tmp/sshd_config (content)
    +++ after: /tmp/sshd_config (content)
    @@ -65,21 +65,21 @@
     X11DisplayOffset 10
     PrintMotd no
     PrintLastLog yes
     TCPKeepAlive yes
     #UseLogin no

     #MaxStartups 10:30:60
     #Banner /etc/issue.net

     # Allow client to pass locale environment variables
    -AcceptEnv LANG LC_*
    +AcceptEnv        LANG LC_* GF_ENV_*

     Subsystem sftp /usr/lib/openssh/sftp-server

     # Set this to 'yes' to enable PAM authentication, account processing,
     # and session processing. If this is enabled, PAM authentication will
     # be allowed through the ChallengeResponseAuthentication and
     # PasswordAuthentication.  Depending on your PAM configuration,
     # PAM authentication via ChallengeResponseAuthentication may bypass
     # the setting of "PermitRootLogin without-password".
     # If you just want the PAM account and session checks to run without

    --- before: /tmp/sshd_config (file attributes)
    +++ after: /tmp/sshd_config (file attributes)
    @@ -1,3 +1,3 @@
     {
    -    "mode": "0700"
    +    "mode": "0644"
     }
2016-01-27 12:36:11 +01:00
Toshio Kuratomi
c8d5fdaf27 Merge pull request #2891 from ansible/synchronize-better-error-missing-rsync
Better error message when rsync nad ssh aren't present where synchronize is run
2016-01-26 11:36:29 -08:00
Toshio Kuratomi
cb1fefdf92 Better error message when rsync nad ssh aren't present where synchronize is run
Fixes https://github.com/ansible/ansible/issues/9305
2016-01-26 09:43:38 -08:00
Brian Coca
3239691e9e Merge pull request #2870 from towolf/add_diff_to_synchronize
Add custom diff field to synchronize module
2016-01-26 10:09:20 -05:00
Michael Scherer
c01cc5f6e4 Do not use a shell construct for rhnreg_ks
Since there is no shell escape of the password parameter, a password with
a single quote (or even worst, a single quote and a pipe) could have
unattended consequences. Also, the less we use use_unsafe_shell=True, the
better.
2016-01-26 12:24:13 +01:00