Commit graph

1282 commits

Author SHA1 Message Date
Toshio Kuratomi
0617ac1f24 Add changelog entry for inventory nonascii paths fix 2017-11-02 19:32:12 -07:00
Jordan Borean
f76e8a8e39 Updated changelog regarding win_service quoted path fix 2017-11-03 09:57:04 +10:00
Brian Coca
07674f5062 ini plugin should recursively instantiate pending
solves inconsistent behaviour on ini host format depending on definition order
fixes #32196

(cherry picked from commit 9d28973b5e)
2017-11-02 17:58:19 -04:00
Ondra Machacek
dd930344b6 ovirt_hosts: Don't fail upgrade when NON_RESPONSIVE state 2017-11-02 14:40:31 -04:00
Ondra Machacek
3df921a14a ovirt_clusters: Fix fencing and kuma comparision 2017-11-02 14:37:19 -04:00
Ondra Machacek
dd19f96561 ovirt_host_networks: Fix label assignment 2017-11-02 14:34:39 -04:00
Brian Coca
fa289a022c correctly deal with changed (#31812)
(cherry picked from commit 21cdddce74)
2017-11-02 12:31:52 -04:00
Jordan Borean
b2f3dc9052 updated changelog with win_find fix 2017-11-02 09:38:27 +10:00
Ganesh Nalawade
5bbf70afe1
Fixes #31090. In network parse_cli filter plugin, this change moves the creation of a (#31092) (#32458)
new match(block). It previously only occurred if a new match occurred,
but suggest it should occur when an end of a block match is found.
(cherry picked from commit 7553c42e09)

Update CHANGELOG
2017-11-01 23:46:14 +05:30
Ganesh Nalawade
bc01b5d981
eos_eapi: adding the desired state config to the new vrf fixes #32111 (#32112) (#32452)
* adding the desired state config to the new vrf fixes #32111

* fix default vrf initial configured

* add unit test

* Update CHANGELOG

(cherry picked from commit 2c99cbc874)
2017-11-01 23:02:51 +05:30
Ganesh Nalawade
b8ee3bb24f
Fix wrong prompt issue for network modules (#32426) (#32442)
* Fix wrong prompt issue for network moodules

Fixes #31161
Fixes #32416

*  Store the device prompt in case of error
   from remote device
*  Check for prompt value in ios action plugin

*  Add integration test
*  Update Changelog

(cherry picked from commit 26583adb58)
2017-11-01 22:35:47 +05:30
Trishna Guha
ee210e4d5b
Add ios_logging fixes to changelog 2.4.2beta2 (#32447)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-11-01 21:32:28 +05:30
Toshio Kuratomi
fd477a9c25 Add azure_rm_acs check mode fix 2017-11-01 08:59:43 -07:00
Toshio Kuratomi
6721c53925 Add max_fail_percentage fix to changelog 2017-11-01 08:47:17 -07:00
Ganesh Nalawade
8c1dfdbc31
Move asa provider to suboptions (#32356)
Fixes #32343

* Move provider arg spec as part of suboptions
  to validate input args against provider spec.
* This handles `no_log` for password arg correctly.

Merged to devel PR #28984

( cherry picked from commit 599fe23ed6 )
2017-11-01 09:16:53 +05:30
Matt Davis
8ae0079ef7 luseradd defaults to creating w/o need for -m (#32411)
and -M is incorrect in this case

(cherry picked from commit 3e80f9caf4)
2017-10-31 14:37:22 -07:00
Brian Coca
5398d653ca corrected package docs
(cherry picked from commit 43714a0091)
2017-10-31 16:39:05 -04:00
Brian Coca
f79cd6c846 adjust nohome param when using luser
fixes #32199

(cherry picked from commit bd321a0af6)
2017-10-31 16:37:10 -04:00
Brian Coca
34d7f9e3db remove misleading group vars as they are flat (#32276)
* remove misleading group vars as they are flat

* fixed vars display

(cherry picked from commit 75a6f9dbc2)
2017-10-30 13:00:03 -04:00
Brian Coca
3cf7e31c4e ensure we always have a basedir
(cherry picked from commit 64220fcbcc)
2017-10-30 12:29:15 -04:00
Trishna Guha
262d6b6dcc
ios_ping test fix (#32342)
* Introspect the management IP on ios_ping (#31571)

On our CI we don't have external connectivity, so let's ping to
the management interface IP.
Also, ignore errors on the expected failures tests.
(cherry picked from commit c75c4cbfc8)

* Remove duped authorize on ios_ping anchored tasks (#31572)

Otherwise, we get warnings.
(cherry picked from commit ac95ecaf13)

* Introspect platform before running ios tests

* Add authorize

* Fix quotes on ios_ping test (#32131)

(cherry picked from commit ca115b0a8e)

* Fix lookup source tests on ios_system (#32254)

In IOS-XE, you need to pass an interface to lookup-source, otherwise
it fails with bad syntax.
(cherry picked from commit 4b35793f62)

* Remove ip nameservers on ios_system/set_name_servers teardown (#32239)

Not sure why lookup source-interface, the only thing tested on that
file is adding/removing name servers, no lookup is set.
(cherry picked from commit 9752ce368d)

* fix conflict

* Update CHANGELOG

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-10-30 19:17:16 +05:30
Trishna Guha
2c4cb42337
ios_interface provider issue testfix (#32335)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-10-30 11:55:55 +05:30
Toshio Kuratomi
4b94ea8075 Add galaxy --force fix to changelog 2017-10-28 07:31:18 -07:00
Trishna Guha
b6c117ebdd
eos_user testfix (#32264)
* Fix eos_user tests (#32261)

(cherry picked from commit be821845e2)

* Add eos_user testfix to CHANGELOG

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-10-27 22:04:25 +05:30
Trishna Guha
e2065dc68c Remove provider from ios integration test (#31037) (#32230)
* Remove provider from  ios integration test (#31037)

*  Remove provider from each task as it is not required.
*  Add `authorize: yes` whereever required
(cherry picked from commit 65ab37cbd3)

* CHANGELOG entry for ios tests fix

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-10-27 11:49:40 +05:30
Jordan Borean
b65496eece Changelog win_package TLS fix 2017-10-27 12:11:26 +10:00
Ryan S. Brown
56efcb1b72 Changelog entry for aws_s3 issue #32144 2017-10-26 18:33:14 -04:00
Sam Doran
bb7977c5b4 Return all elements in a more robust way
If a trailing ':' is set or not, always return all secrets from a path.

Update examples.

(cherry picked from commit 6a6ea663ea)
2017-10-26 14:50:26 -04:00
Sam Doran
4a8ffe56a9 Enable ECHO in prompt module (#32083)
* Enable ECHO in prompt module

Fixes #14160

* Set flags to make it possible to edit echoed input as well as hide control charcters

Only do this if a time limit is not set.

* Consolidate settings

(cherry picked from commit 104934c095)
2017-10-26 12:39:53 -04:00
Toshio Kuratomi
88e7bb3e28 Add elb_target_group port fix to the changelog 2017-10-26 09:37:10 -07:00
Trishna Guha
caa3a3618b Add networking bug fixes to changelog (#32201)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-10-26 20:30:45 +05:30
Toshio Kuratomi
49a7c3f2f1 Add eos_user fix to changelog 2017-10-26 07:43:19 -07:00
Toshio Kuratomi
2c4104be9e Add more bugfixes to changelog 2017-10-26 07:32:34 -07:00
Toshio Kuratomi
49d9960974 Add changelog entries for a myriad of 2.4.2 bugfixes 2017-10-26 07:32:33 -07:00
Toshio Kuratomi
28a3679040 More fixes added to changelog 2017-10-26 07:32:33 -07:00
Toshio Kuratomi
98c942f0d9 Add changelog for URI/get_url fix 2017-10-26 07:32:33 -07:00
Toshio Kuratomi
eddb4fc25d Add new documentation on writing unittests to the changelog 2017-10-26 07:32:33 -07:00
Toshio Kuratomi
f1384b5598 Add ansible_shell_executable fix to changelog 2017-10-26 07:32:33 -07:00
Toshio Kuratomi
38c3da5ffd Bunch of changelog updates for cherry-picks 2017-10-26 07:32:33 -07:00
Toshio Kuratomi
bbb2563e0d Add k8s_common.py logging fixes to the changelog 2017-10-26 07:32:33 -07:00
Toshio Kuratomi
4528313a48 Add python3 urllib fixes to changelog 2017-10-26 07:32:33 -07:00
Toshio Kuratomi
374b2d1374 Add wait_for fix to the changelog 2017-10-26 07:32:33 -07:00
Toshio Kuratomi
fde6ff7547 Add remove host fix to changelog 2017-10-26 07:32:33 -07:00
Toshio Kuratomi
2402f1f5b7 Add spec file fix to changelog 2017-10-26 07:32:32 -07:00
Toshio Kuratomi
8800111f5e Add panos_security_rule docs typo fix to changelog 2017-10-26 07:32:32 -07:00
Toshio Kuratomi
67d431a541 Update the release data for 2.4.1 in the changelog 2017-10-25 17:48:14 -07:00
Toshio Kuratomi
d32f138f40 Fix for hostname module on RHEL7.5 added to changelog 2017-10-18 14:27:01 -07:00
Toshio Kuratomi
05535b363f Add changelog for cherry-picks 2017-10-18 14:20:32 -07:00
Toshio Kuratomi
c7504d9d2f Add win_regedit fixes 2017-10-18 14:10:13 -07:00
Toshio Kuratomi
a40a8c4a6e Add the documentation of backup_path to changelog 2017-10-18 14:04:27 -07:00
Toshio Kuratomi
e665b2ed5e Remove the change for implicit inventory and all vars 2017-10-18 13:59:35 -07:00
Toshio Kuratomi
48fe112455 Since these changes went in after rc1, be sure to document them in the changelog
Normally I wouldn't mention test infrastructure fixes i nthe changelog
but since they're going in after rc1, I'm going to mention them just to
be safe.
2017-10-12 07:37:39 -07:00
Toshio Kuratomi
0743b577b7 Add dynamic includes fix to changelog 2017-10-11 17:32:53 -07:00
Toshio Kuratomi
723beb58d1 Add inventory plugin path fix to changelog 2017-10-11 17:29:34 -07:00
Toshio Kuratomi
878ed2c079 Add relative paths fix to changelog 2017-10-11 13:05:00 -07:00
Ganesh Nalawade
6cbdc17aa1 Remove log of command executed in persistent connection (#31583)
* Remove log of command executed in persistent connection (#31581)

(cherry picked from commit 97d5e0d027)

* Update changelog
2017-10-11 19:23:47 +05:30
Ganesh Nalawade
e001fb7c14 Fix rollback in junos_config (#31424) (#31563)
* Fix rollback in junos_config (#31424)

* Fix rollback in junos_config

Fixes #30778

*  Call `load_configuration` with rollback id in case
   the id is given as input
*  Pass rollback id to `get_diff()` to fetch diff from device

* Fix unit test

(cherry picked from commit 88da95bb77)

* Update changelog
2017-10-11 15:28:42 +05:30
Matt Davis
76d84fd4d6 CHANGELOG update for become/runas error messaging 2017-10-10 16:58:14 -07:00
Martin Krizek
50af2dc462 Add yum fix to changelog 2017-10-10 21:23:45 +02:00
Sloane Hertel
3505e5eba0 aws_s3: fix upload_file's ExtraArgs - fixes #31232 (#31487) (#31538)
* Module option metadata are extra arguments rather than S3 object metadata: update ExtraArgs variable.

* Maintain backwards compatibility by guessing at content type rather than always defaulting to binary/octet-stream.
2017-10-10 14:15:44 -04:00
Toshio Kuratomi
d3ccca2b8d Add rpm_key fix to changelog 2017-10-10 10:59:03 -07:00
Sloane Hertel
3a0aa4ddff [cloud] Fix ec2_group when security group lacks a VPC (#31526) (#31540) 2017-10-10 13:57:16 -04:00
arnonki
0e01684873 Use default values for object returned from aws to prevent TypeError (#31455)
* Use default values for object returned from aws to prevent TypeError
NoneType exception fixes #31454
(cherry picked from commit 6df6f79bbd38407c3c81b1d194d87c9fca00f5f0)
2017-10-10 13:32:05 -04:00
Sam Doran
8afa7c73df Add sysctl fix to CHANGELOG 2017-10-10 12:50:11 -04:00
Toshio Kuratomi
e5b8809ea2 Add changelog for using include/import with adhoc 2017-10-09 20:51:08 -07:00
Toshio Kuratomi
d45f662a52 Add the revert of namespaced facts to the changelog 2017-10-09 16:34:24 -07:00
Toshio Kuratomi
982e15d79e Add jimi's include_role fix to changelog 2017-10-09 13:49:41 -07:00
Jordan Borean
9522309b99 updated changelog for win_copy fix 2017-10-10 06:35:00 +10:00
Brian Coca
7f2c611dfc added toggle to control vars plugin behviour
this should allow user to control how they want the playbook dirs inspected
for additional vars, default now reverts to 2.3 behaviour (top).
corrected paths order
minor doc reword

(cherry picked from commit 7d49b27218)
2017-10-09 12:32:03 -04:00
Jordan Borean
44cd3147a0 updated changelog for ec2_win_password fix 2017-10-09 16:43:25 +10:00
Toshio Kuratomi
3ebde33a44 Add ping docs fix to changelog 2017-10-08 08:20:38 -07:00
Brian Coca
058ed81aa0 revert ocalhost getting 'all' vars (#31425)
back to previous implicit localhost behaviour

fixes #31420

(cherry picked from commit a9942353fe)
2017-10-06 19:11:17 -04:00
Brian Coca
4f4905c88a fix 'return false' from parse
this was abandoned early on the manger side  but seems like we left behind on plugin side.
more flexible extensions with yaml plugin
validate data correctly for yaml/constructed
fixed issue with only adding one child to keyed, the group only got the host that forced it's creation

fixes #31382
fixes #31365

(cherry picked from commit e4c61ea9a1)
2017-10-06 13:26:03 -04:00
Toshio Kuratomi
84525576f1 Add systemd check-mode fix to changelog 2017-10-06 08:59:36 -07:00
Jordan Borean
21c9a716b6 updated changelog with win_copy fix 2017-10-06 15:25:15 +10:00
Brian Coca
d2c19eb2f1 better chown errors
(cherry picked from commit a6e27a903a)
2017-10-05 18:41:28 -04:00
Toshio Kuratomi
e80c7d55d8 Add rpm_key and azure_rm dyn inv script fixes to changelog 2017-10-05 11:50:47 -07:00
Sam Doran
b11d2289dd Add docker_secrets fix to CHANGELOG 2017-10-05 14:12:18 -04:00
Toshio Kuratomi
023ac17acf Add revert of alternate shells to be used by run_command into changelog 2017-10-05 10:23:28 -07:00
Sam Doran
2f85e78813 Add SELinux fact change to CHANGELOG 2017-10-05 09:22:10 -04:00
Toshio Kuratomi
13a86b649d Add ssh-extra-args fix to changelog 2017-10-04 23:16:03 -07:00
Toshio Kuratomi
327f76f8fd Add any_errors_fatal fix to changelog 2017-10-04 12:56:18 -07:00
Brian Coca
dff33071d0 check type to avoid typeerror tb
fixes #31290 by giving more meaningful message

(cherry picked from commit 8aa33419c9)
2017-10-04 15:14:48 -04:00
Martin Krizek
64b569635d Add yum fix to changelog 2017-10-04 21:09:11 +02:00
Brian Coca
4fed711c42 made note about cwd not working for hostlist anymore (#31258)
* made note about cwd not working for hostlist anymore

fixes #31041

* Edits

(cherry picked from commit 5085c3b859)
2017-10-04 14:19:26 -04:00
Brian Coca
7d69946d42 correctd inventory_file to return full path
fixes #31294

(cherry picked from commit dbae704d3c)
2017-10-04 11:54:25 -04:00
Toshio Kuratomi
e9183f1966 Update changelog for example script fix 2017-10-04 08:51:13 -07:00
Brian Coca
280e9d7bb7 dont follow symlinks for inventories
now symlink dir is checked for locality of group/host_vars

fixes #31195

(cherry picked from commit f00d47fac0)
2017-10-04 11:05:09 -04:00
Brian Coca
8b39280d8d turn all inventory cache 'off by default'
(cherry picked from commit 852d457549)
2017-10-04 10:52:01 -04:00
Brian Coca
833858dc31 updated constructed docs to clarify use of ext
(cherry picked from commit 46621a3ddd)
2017-10-04 08:47:47 -04:00
Sam Doran
04ced64e35 Add SELinux fix to CHANGELOG 2017-10-03 23:44:32 -04:00
jborean93
8f9b4f9711 updated changelog for windows become fix 2017-10-04 13:09:29 +10:00
Sam Doran
69e945129a Add elasticsearch_plugin fix to CHANGELOG 2017-10-03 22:33:53 -04:00
Toshio Kuratomi
34bb2810a5 Add monit module fix to changelog 2017-10-03 15:20:21 -07:00
Toshio Kuratomi
7bfc23ad9e Add include_vars file instead of directory error message to changelog 2017-10-03 15:13:37 -07:00
Brian Coca
04a059e406 make pipelining actually backwards compatible
restore ssh specific setting the global, in the future these will be separate.

(cherry picked from commit 2d70dc7f21)
2017-10-03 16:49:37 -04:00
jborean93
0e7fe0fe2e updated changelog for win_reg_stat return value fix 2017-10-04 06:21:47 +10:00
Matt Davis
22d9135b87 Add desc for 31084 2017-10-03 12:55:10 -07:00
Brian Coca
fa131f9a07 make pipelining actually backwards compatible
restore ssh specific setting the global, in the future these will be separate.

(cherry picked from commit 2d70dc7f21)
2017-10-03 14:35:28 -04:00
Adrian Likins
74e0643dbb Handle vault decrypt --output=- (#31066)
In cli.CLI.unfrack_path callback, special case if the
value of '--output' is '-', and avoid expanding
it to a full path.

vault cli already has special cases for '-', so it
just needs to get the original value to work.

Fixes #30550
(cherry picked from commit 278ff19bea)
2017-10-03 14:20:31 -04:00
Matt Clay
1bc2f4e38e Update changelog for deserialization fix. 2017-10-03 10:08:23 -07:00
Adrian Likins
b81270f7d5 Fix flush_cache on redis cache
Fix a del on non existent self.cache.

Fixes #31148

(cherry picked from commit dae0ad1ce6)
2017-10-03 12:54:58 -04:00
Brian Coca
c6691eef52 remove unused ssh pipelining setters
fixes #31125

(cherry picked from commit 101377768b)
2017-10-03 09:22:49 -04:00
David Moreau-Simard
447d1cffb0 Fix backwards compatibility of constants.get_config
get_config would use ConfigManager.get_ini_value which does not
exist. What we are meant to use is
ansible.config.manager.get_ini_config_value and this method does not
expect a list, only a dictionary with a section and a key.

(cherry picked from commit 9b693235f0)
2017-10-03 09:19:28 -04:00
jborean93
2513078f39 updated changelog after win_dotnet_ngen fix 2017-10-03 06:36:28 +10:00
jborean93
6035b00a84 updated changelog for win_msg fix 2017-10-03 06:35:24 +10:00
Ryan S. Brown
d2c11a1b00 Update CHANGELOG with aws_s3 fix 2017-10-02 14:38:45 -04:00
Toshio Kuratomi
fbccd38e37 Add last few cherrypicks to changelog 2017-10-02 09:13:10 -07:00
Brian Coca
5de7121941 corrected yaml extensions ini setting
(cherry picked from commit 44d2f21e02)
2017-10-02 10:03:19 -04:00
Toshio Kuratomi
6945f6d3b2 Add copy module fix to changelog 2017-09-29 17:16:10 -07:00
jborean93
981073b397 Updated changelog for win_chocolatey docs change 2017-09-30 08:24:21 +10:00
Toshio Kuratomi
73355d541a Add urls.py w/ proxy fix to changelog 2017-09-29 14:36:23 -07:00
Brian Coca
8cee2a8d93 removed typo from dig docs
(cherry picked from commit 43cbcbcc75)
2017-09-29 11:25:03 -04:00
jborean93
adc3bedaa2 Updated changelog for winrm task vars fix 2017-09-29 11:14:50 +10:00
Brian Coca
fcba6c0a57 fix anchor 2017-09-28 20:38:41 -04:00
Toshio Kuratomi
15f8075bab Add the PR to the changelog 2017-09-28 16:10:24 -07:00
Toshio Kuratomi
4ea1cc24ac Add os_image fix to changelog 2017-09-28 16:09:39 -07:00
Adrian Likins
4025b47629 Fix fact failures cause by ordering of collectors (#30777)
* Fix fact failures cause by ordering of collectors

Some fact collectors need info collected by other facts.
(for ex, service_mgr needs to know 'ansible_system').
This info is passed to the Collector.collect method via
the 'collected_facts' info.

But, the order the fact collectors were running in is
not a set order, so collectors like service_mgr could
run before the PlatformFactCollect ('ansible_system', etc),
so the 'ansible_system' fact would not exist yet.

Depending on the collector and the deps, this can result
in incorrect behavior and wrong or missing facts.

To make the ordering of the collectors more consistent
and predictable, the code that builds that list is now
driven by the order of collectors in default_collectors.py,
and the rest of the code tries to preserve it.

* Flip the loops when building collector names

iterate over the ordered default_collectors list
selecting them for the final list in order instead
of driving it from the unordered collector_names set.

This lets the list returned by select_collector_classes
to stay in the same order as default_collectors.collectors

For collectors that have implicit deps on other fact collectors,
the default collectors can be ordered to include those early.

* default_collectors.py now uses a handful of sub lists of
collectors that can be ordered in default_collectors.collectors.

fixes #30753
fixes #30623

(cherry picked from commit 95abc1d82e)
2017-09-28 10:56:18 -04:00
jborean93
f7b0908315 updated changelog for win_iis_webapppool fix 2017-09-28 16:17:35 +10:00
Toshio Kuratomi
1528a7ca60 Add ec2_snapshot_facts fix for python3 to changelog 2017-09-27 20:44:36 -07:00
Toshio Kuratomi
165432c9c1 lxc_container py3 fix in changelog 2017-09-27 20:34:37 -07:00
jborean93
f88c8e1df9 Updated changelog for sensu_silence fix 2017-09-28 13:13:58 +10:00
Brian Coca
ec380da0f2 fixed lookup dig docs
also clarified dig module uses dnspython

(cherry picked from commit bb874e5029)
(cherry picked from commit 54d7c384b6)
2017-09-27 21:00:45 -04:00
Brian Coca
fb2a533b81 fixed pull's ansible/git invocation options (#30938)
* fixed ansible/git invocation options

now falls back to using localhost as 'all' does not include implicit accidentally anymore

fixes #30636

(cherry picked from commit fc745920c7)
2017-09-27 19:51:06 -04:00
Toshio Kuratomi
5b08188318 Add crypttab pyhton3 fix to changelog 2017-09-27 11:59:28 -07:00
Brian Coca
53f865d094 rmeove ext requirement for yaml inventory plugin
returns to the state before 2.4 made it a requirement
fixes #30855

(cherry picked from commit 82de2e1865)
2017-09-27 14:28:30 -04:00
Brian Coca
f993e213da added note about inventory_dir new behaviour (#30865)
* added note about inventory_dir new behaviour

(cherry picked from commit cd5cadfe69)
2017-09-27 12:30:59 -04:00
Brian Coca
e9649a0598 fixed wrong changelog entry 2017-09-27 11:48:58 -04:00
Thomas Steen Rasmussen
25fafc1280 Remove stray " and replace include: with import_tasks:
(cherry picked from commit 22fda12ac1)
2017-09-27 10:03:00 -04:00
Brian Coca
64737e1446 corrected import_play into to import_playbook (#30853)
* corrected import_play into to import_playbook

fixes #30744

(cherry picked from commit 17f094bb6a)
2017-09-26 17:28:07 -04:00
Brian Coca
457b70ee90 fix for slack callback breaks in 2.4 (#30932)
* fix for slack callback breaks in 2.4

fixes #30838

(cherry picked from commit 8378ac30b3)
2017-09-26 17:19:21 -04:00
Matt Martz
f628881750 Update API example for 2.4
(cherry picked from commit d40eff720c)
2017-09-26 14:40:41 -04:00
Toshio Kuratomi
999404121f Add jenkins_plugin CVE fix to the changelog 2017-09-26 11:24:58 -07:00
Adrian Likins
042079aa87 Use vault_id when encrypted via vault-edit (#30772)
* Use vault_id when encrypted via vault-edit

On the encryption stage of
'ansible-vault edit --vault-id=someid@passfile somefile',
the vault id was not being passed to encrypt() so the files were
always saved with the default vault id in the 1.1 version format.

When trying to edit that file a second time, also with a --vault-id,
the file would be decrypted with the secret associated with the
provided vault-id, but since the encrypted file had no vault id
in the envelope there would be no match for 'default' secrets.
(Only the --vault-id was included in the potential matches, so
the vault id actually used to decrypt was not).

If that list was empty, there would be an IndexError when trying
to encrypted the changed file. This would result in the displayed
error:

ERROR! Unexpected Exception, this is probably a bug: list index out of range

Fix is two parts:

1) use the vault id when encrypting from edit

2) when matching the secret to use for encrypting after edit,
include the vault id that was used for decryption and not just
the vault id (or lack of vault id) from the envelope.

add unit tests for #30575 and intg tests for 'ansible-vault edit'

Fixes #30575

(cherry picked from commit a14d0f3586)
2017-09-26 12:31:58 -04:00
Will Thames
a2525658f9 Remove print statements from play_context
Caused spurious output, particularly obvious when in `become` mode

(cherry picked from commit ef56f9a44c)
2017-09-26 10:16:11 -04:00
Adrian Likins
2149d1092b Fix 'distribution' fact for ArchLinux (#30723)
Allow empty wasn't breaking out of the process_dist_files
loop, so a empty /etc/arch-release would continue searching
and eventually try /etc/os-release. The os-release parsing
works, but the distro name there is 'Arch Linux' which does
not match the 2.3 behavior of 'Archlinux'

Add a OS_RELEASE_ALIAS map for the cases where we need to get
the distro name from os-release but use an alias.

We can't include 'Archlinux' in SEARCH_STRING because a name match on its keys
but without a match on the content causes a fallback to using the first
whitespace seperated item from the file content as the name.
For os-release, that is in form 'NAME=Arch Linux'

With os-release returning the right name, this also supports the
case where there is no /etc/arch-release, but there is a /etc/os-release

Fixes #30600

* pep8 and comment cleanup

(cherry picked from commit 3eab636b3f)
2017-09-25 15:06:05 -04:00
Adrian Likins
3aa7941b72 facts: fix SPARC cpu count on linux (#30261)
On sparc64, /proc/cpuinfo has no usual 'model name', 'Processor', 'vendor_id', 'Vendor',
as a result "ansible_processor_vcpus" is always 1.
Add check element "ncpus active" to fix the issue.

(cherry picked from commit e93ecac0da)
2017-09-25 12:31:34 -04:00
Brian Coca
2eac554eb4 use set to quicken group host membership
(cherry picked from commit 3f9a885b83)
2017-09-22 19:09:40 -04:00
Brian Coca
956b6ece86 dont validate group names in yaml plugin
(cherry picked from commit a819cfcad7)
2017-09-22 19:06:09 -04:00
Toshio Kuratomi
93559a7faf Add ssh path fix to changelog 2017-09-22 15:33:13 -07:00
Adrian Likins
bca1818b1e Fix pkg_mgr fact on OpenBSD (#30725)
* Fix pkg_mgr fact on OpenBSD

Add a OpenBSDPkgMgrFactCollector that hardcodes pkg_mgr
to 'openbsd_pkg'. The ansible collector will choose the
OpenBSD collector if the system is OpenBSD and the 'Generic'
one otherwise.

This removes PkgMgrFactCollectors depenency on the
'system' fact being in collected_facts, which also
avoids ordering issues (if the pkg mgr fact is collected
before the system fact...)

Fixes #30623

(cherry picked from commit 12404f470a)
2017-09-22 14:24:57 -04:00
Ganesh Nalawade
ce963984d1 Fix command argument typo in telnet module docs (#30731) (#30734)
* Fix command argument typo in telnet module docs (#30731)

(cherry picked from commit 6d3307e472)

* Update Change log
2017-09-22 15:20:09 +05:30
Brian Coca
304377aa82 added missing 2.4 clog entry 2017-09-21 23:56:46 -04:00
jborean93
c5f5277183 Updated changelog to include win_power_plan fix 2017-09-22 06:24:26 +10:00
jborean93
70c1320c08 Updated changelog with win_domain_membership fix 2017-09-22 06:11:58 +10:00
Ryan Brown
fd42243936 Split ec2_elb_* modules in service of rename/interface changes (#30716)
* Split ec2_elb_* modules in service of rename/interface changes (#30532)

* Undeprecate ec2_elb_*
* Make ec2_elb* full fledged modules rather than aliases
* Split tests for ec2_elb_lb and elb_classicb_lb
* Change names in documentation of old and new elb modules

Add tests for ec2_elb_lb

* Update CHANGELOG with new status of ec2_elb_* vs. elb_classic_*
2017-09-21 14:43:45 -04:00
Brian Coca
71c646fe59 become flags are primary
with new configuration the sudo flags are always set and become cannot override,
switching to simle 'or' will result in become_flags working.

also sudo_flags are deprecated.
also changed from YAML null causing a 'None' str

fixes #30629

(cherry picked from commit 236d13ac3a)
2017-09-21 10:02:23 -04:00
Toshio Kuratomi
aa808e1eb6 Add changelog entries for cherrypicks over the previous day. 2017-09-20 19:54:58 -07:00
jborean93
b92452f775 fix for make webdocs
(cherry picked from commit 0e22afef52)
2017-09-20 22:46:50 -04:00
Brian Coca
c4ce24966b dont override previous ini entries with defaults
corrected setting example, quotes mess up the regex
fixes #30633

updated chlog

(cherry picked from commit d3e85bd045)
2017-09-20 16:39:47 -04:00
Brian Coca
0c179133bf made callbacks backwards compatible (#30625)
* made callbacks backwards compatible
* note about porting guide
* deprecation notice so those callbacks get updated.

This fixes #30597 for those that were not inheriting from base.

Callback must either inherit from base (directly or indirectly),
which already implements this or implement set_options themselves.

(cherry picked from commit 131d417c7a)
2017-09-20 15:21:20 -04:00
Brian Coca
5fdcbdaaee More porting updates (#30635)
* Update porting_guide_2.4.rst with more docs and some rst fixes

(cherry picked from commit a030472092)
2017-09-20 15:13:01 -04:00
Adrian Likins
a3d5b2f1ce Check number of vault secrets after setup. (#30520)
This is to catch vault secrets from config and
cli. Previously vault_password_file in config was
missed since it was added by setup_vault_secrets,
so check after setup_vault_secrets.

Related to #30514

(cherry picked from commit 174cb1f33c)
2017-09-20 11:15:42 -04:00
Adrian Likins
f8ad9ca75d Don't ask for password confirm on 'ansible-vault edit' (#30514)
This is to match the 2.3 behavior on:

        ansible-vault edit encrypted_file.yml

Previously, the above command would consider that a 'new password'
scenario and prompt accordingly, ie:

        $ ansible-vault edit encrypted_file.yml
        New Password:
        Confirm New Password:

The bug was cause by 'create_new_password' being used for
'edit' action. This also causes the previous implicit 'auto prompt'
to get triggered and prompt the user.

Fix is to make auto prompt explicit in the calling code to handle
the 'edit' case where we want to auto prompt but we do not want
to request a password confirm.

Fixes #30491

(cherry picked from commit 307be59092)
2017-09-20 11:00:42 -04:00
Patrick Ogenstad
fc97af8ab1 Restore correct coloring to selective callback (#30528)
* Restore correct coloring to selective callback

This fixes the bug raised in #30506

* Fix format issues for Python 2.6 & indent

Removed the zero length fields to support format under Python 2.6

Fixed E128 continuation line under-indented for visual indent issue

(cherry picked from commit d74c871559)

updated clog
2017-09-20 09:22:48 -04:00
Ganesh Nalawade
1cf00a5151 Add underscore and period to regex for hostname prompt (#30612)
* Add _ and . to regex (#30396)

Adding underscore and period to the nxos regex for determining the prompt for hostnames with underscores and periods in the hostname.
(cherry picked from commit 33b8d7069f)

* Add change log
2017-09-20 14:35:15 +05:30
jborean93
fef04420c9 Updated changelog with camel conversion fixes 2017-09-20 15:25:35 +10:00
Brian Coca
9ae683e9f4 added missing feature info (#30560)
* added missing feature info

(cherry picked from commit 22c8522cbf)
2017-09-19 17:44:08 -04:00
Brian Coca
aea9bab2ab fixed password lookup docs
(cherry picked from commit 71cc906ec8)
and chlog update
2017-09-19 16:34:14 -04:00
Toshio Kuratomi
3b86554081 Add a code-smell test for smart quotes and remove smart quotes from all files
(cherry picked from commit c82cf791dd)
2017-09-19 13:00:56 -07:00
Rene Moser
c3c5869ada update changelog 2017-09-19 13:00:56 -07:00
jborean93
6296b906fb Updated changelog for windows module util list fix 2017-09-19 13:00:56 -07:00
jborean93
d724bb584a Updated changelog to for win_file check mode fix 2017-09-19 13:00:56 -07:00
Toshio Kuratomi
c235e8a863 Changelog entries for openssl_certificate fixes 2017-09-19 13:00:56 -07:00
Toshio Kuratomi
c3821abc95 note in changelog that ec2_elb_lb, ec2_lb, and ec2_elb_facts are not deprecated yet.
We pushed renames of those modules to new names but have since decided
that we should rewrite the modules with better parameters and better
return values instead.  It's too late to fix the deprecations in 2.4.0
so make clear what we're going to do in the changelog for 2.4.0 and
promise to fix it in 2.4.1
2017-09-18 13:31:06 -07:00
Toshio Kuratomi
28da5199c4 List all of the new plugins 2017-09-17 12:12:50 -07:00
Toshio Kuratomi
3af68ec8a8 List the new lookup plugins for 2.4 in changelog 2017-09-17 09:38:30 -07:00
Toshio Kuratomi
56852b0a35 Add ec2_remote_facts replacement to changelog
(cherry picked from commit c77e3a74dd)
2017-09-13 13:09:48 -07:00
Toshio Kuratomi
692942b37a Update changelog with 2.3.x changes 2017-09-13 11:35:08 -07:00
Matt Davis
5fdffe26ee CHANGELOG update for win_shell/command parsing fixes 2017-09-13 10:44:06 -07:00
Toshio Kuratomi
f1aa2a4803 Add azure module deprecation to changelog 2017-09-12 15:12:37 -07:00
Toshio Kuratomi
404b02a1cb Add python3 fixes to changelog 2017-09-11 15:48:37 -07:00
Brian Coca
b62c60ef86 remove fact namespacing
since we want to make namespaced facts drop ansible_ prefix but don't have the
time before release to perfect this feature, we are going to postpone it for now
until we have the resources to fix this issue. That way we won't have people relying
on the 'incorrect' names for a release.

(cherry picked from commit 0c291ece1a)
2017-09-10 14:47:44 -07:00
Brian Coca
63b4e41d0c fixes to config/setting retrieval
- better variable precedence management
- universal plugin option handling
- also updated comments for future directions
- leverage fragments for plugins
- removed fact namespacing
- added 'firendly name' field
- updated missing descriptions
- removed some unused yaml entries, updated others to reflect possible future
- documented more plugins
- allow reading docs using alias
- short licenses
- corrected args for 'all plugins'
- fixed -a option for ansible-doc
- updated vars plugins to allow docs
- fixed 'gathering'
- only set options IF connection
- added path list and renamed pathspec mostly the diff is , vs : as separator
- readded removed config entries that were deprecated but had no message ... and deprecated again
- now deprecated entries give warning when set

(cherry picked from commit 075ead8fb0)
2017-09-09 09:50:11 -07:00
Matt Davis
7cc3c0577e added azure_rm_functionapp/facts to CHANGELOG 2017-08-30 15:18:58 -07:00
Matt Davis
e9abe080ce clarify azure_rm version requirements 2017-08-30 10:27:00 -07:00
Matt Davis
c77cc48971 add new azure modules to CHANGELOG 2017-08-29 18:02:04 -07:00
jhawkesworth
8f9b885113 Windows: A module for creating Toast notifications on Modern Windows versions. (#26675)
* replace duff commit version of win_toast

* change expire_mins to expire_secs and add example showing use of async

* fix metadata version to keep sanity --test validate-modules happy

* code review fixes and change expire_secs to expire_seconds

* add first pass integration tests for win_toast

* win_toast no longer fails if there are no logged in users to notify (it sets a toast_sent false if this happens)

* yaml lint clean up of setup.yml in win_toast integration tests

* improve exception and stack trace if the notifier cannot be created, following feedback from dag

* removed unwanted 'echo' input parameters from return vals; added to CHANGELOG.md, removed _seconds units from module params; updated tests to match
2017-08-29 19:19:18 -04:00
Matt Davis
ab18ae39a5 Update CHANGELOG for new Azure modules 2017-08-29 15:04:40 -07:00
Jordan Borean
470044f2c5 added win_pagefile to changelog (#28802) 2017-08-29 17:39:37 -04:00
nwsparks
e9dd4717e5 Update CHANGELOG.md (#28800)
added newly merged win_power_plan (pr https://github.com/ansible/ansible/pull/27966) to windows modules for 2.4 changes
2017-08-29 16:54:00 -04:00
Matt Davis
b3f2d1befe expose cloud_environment override in azure_rm modules (#28743)
* Can be set via env, credential profile, or module arg
* Valid values defined by Azure Python SDK, currently `AzureCloud`,`AzureChinaCloud`,`AzureUSGovernment`,`AzureGermanCloud` or any Azure Stack metadata discovery URL.
2017-08-29 13:35:24 -04:00
Dag Wieers
61d2201a2d win_get_url: Add use_proxy, headers and timeout (#26612)
* win_get_url: Add use_proxy, headers and timeout

This PR includes:
- Add use_proxy parameter
- Add timeout parameter
- Add headers parameter
- Simplify logic
- Create separate CheckModified-File
- Now use -LiteralPath instead of -Path
- Clean up documentation

* win_get_url: Add use_proxy, headers and timeout

This PR includes:
- Add use_proxy parameter
- Add timeout parameter
- Add headers parameter
- Simplify logic
- Create separate CheckModified-File
- Now use -LiteralPath instead of -Path
- Clean up documentation
2017-08-28 20:11:10 -04:00
Jordan Borean
b84a48caef win_msi: deprecated in favour of win_package (#28741) 2017-08-28 19:53:28 -04:00
Brian Coca
de6ba4daff add toggle to controle inventory parse as error (#28729)
* add toggle to controle inventory parse as error

also rearranged new inventory options into it's own ini section

* updated with inventory features

also minor fixes/consolidation on deprecated/removed modules

* tweaked settings
2017-08-28 17:17:19 -04:00
Ivan Bojer
9b8abc8a7f panos_sag: static address group (#28041)
* - Create a static address group object in the firewall used for policy rules.

* PEP8 changes

* add function to check for devicegrp name

* fix exception handling

* PEP8 fixes

* update metadata_version
2017-08-25 16:35:35 +01:00
Brian Coca
203d8d2e6e added diff keyword to changelog/docs 2017-08-24 08:55:39 -04:00
Ryan S. Brown
cc802bc883 Update CHANGELOG and botmeta for aws_waf_facts 2017-08-23 15:10:57 -04:00
Ryan S. Brown
c39c782282 [cloud] Update changelog/botmeta for aws_direct_connect_connection module 2017-08-23 11:57:15 -04:00
Ryan S. Brown
a9458ca609 Add aws_direct_connect_link_aggregation_group to changelog 2017-08-22 18:26:52 -04:00
Trishna Guha
c2e41bf1ef remove net_command (#28525)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-08-23 02:07:39 +05:30
Rene Moser
06470c2eba changelog: add openssl_certificate 2017-08-22 22:06:47 +02:00
Jordan Borean
3b7b78b25f Added win_wait_for to 2.4 changelog (#28524) 2017-08-22 15:29:30 -04:00
Sloane Hertel
f7e67dc3b1 Rename s3 module to aws_s3. Update CHANGELOG.md. (#28398)
Use aws_s3 in examples.
2017-08-22 11:17:20 -04:00
Brian Coca
a897193bce Moar constructive (#28254)
* made composite vars and groups generic

now you can do both in every plugin that chooses to suport it
renamed constructed_groups as it now also constructs vars ... to constructed
moved most of constructed_groups logic into base class to easily share

* documented inventory_hostname

* typo fix
2017-08-21 16:06:15 -04:00
Rene Moser
c74be156b1 add cs_storage_pool to changelog 2017-08-18 22:08:41 +02:00
Peter Sprygada
03b888052b fixes bugs in network filter for parsing ip address (#28404)
also adds parse_cli and parse_cli_textfsm to changelog
2017-08-18 14:05:26 -04:00
Chris Alfonso
bd56e6c9ce Removing deprecated openswitch modules (#28397) 2017-08-18 08:58:45 -06:00
Dag Wieers
4b25e0a4b6 Update CHANGELOG with new ACI module names (#28308) 2017-08-17 03:22:11 +02:00
René Moser
74e502fcc8 changelog: add missing modules, in a new format (#28282) 2017-08-16 19:53:58 +02:00