Benjamin Brabant
29939383e6
Improve ecs_ecr module to handle image_tag_mutability feature ( #62871 )
...
Since 2019 jul. 26, AWS Elastic Container Registry can be configured to be immutable that prevent overwritting of an existing tag in the registry.
https://aws.amazon.com/fr/about-aws/whats-new/2019/07/amazon-ecr-now-supports-immutable-image-tags/
https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-tag-mutability.html
By default, ecr is created MUTABLE, as this was the only option before this feature.
This module leverage new capabilities of boto3 to configure image_tag_mutability option.
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ecr.html#ECR.Client.put_image_tag_mutability
The image_tag_mutability option definition was inspired by existing terraform module.
https://www.terraform.io/docs/providers/aws/r/ecr_repository.html
2019-10-11 09:13:13 -07:00
Matt Martz
7f4befdea7
Wrap CLI Passwords with AnsibleUnsafeText, ensure unsafe context is not lost during encode/decode ( #63351 )
...
* Wrap .encode and .decode on AnsibleUnsafe objects
* runme.sh needs to be executable
* ci_complete
* Update changelog with CVE
2019-10-11 09:17:10 -05:00
Gonéri Le Bouder
73febd4ea6
prepare_vmware_tests: use module_defaults ( #63209 )
2019-10-11 19:46:54 +05:30
Gonéri Le Bouder
82dedec011
vmware_guest_sendkey/test: ensure the test VM is running ( #63359 )
...
The `vmware_guest_sendkey` module fails if the test VM is off. We this
commit, we ensures the VM is running.
2019-10-11 07:52:36 +05:30
Gonéri Le Bouder
286102eb5e
vmware_host_kernel_manager: fix the test ( #63358 )
...
PR #62161 changed the name of key
returned by the module from `ansible_module_results` to
`host_kernel_status`.
2019-10-11 07:52:05 +05:30
Adam Miller
aaef214a26
adapt to firewalld 0.7.0 for RHEL 8.1 Beta, Fedora 31+ ( #63357 )
...
Fixes #63254
Signed-off-by: Adam Miller <admiller@redhat.com>
2019-10-10 18:33:18 -04:00
James Cassell
bfd32c9b00
clean "changed" only after it has been processed ( #59958 )
...
* clean "changed" after it has been processed
without this change, a loop of `debug` tasks with `changed_when`
causes the "changed" status to get lost before output
* runme.sh tests for debug loop status
2019-10-10 18:24:31 -04:00
Matt Davis
6d52bdf4db
fix default collection resolution in adhoc ( #63298 )
...
* fix default collection resolution in adhoc
* if an adhoc command is run with a playbook-dir under a configured collection, default collection resolution is used to resolve unqualified module/action names
* Set ANSIBLE_PLAYBOOK_DIR in integration tests.
* Fix config conflict in ansible integration test.
* add adhoc default collection test
* text-ify warning string
2019-10-10 12:42:03 -07:00
Gonéri Le Bouder
add74fd24b
vmware_guest_network: avoid functional test failure
...
- Avoid the 00:50:56 MAC prefix, See: https://github.com/ansible/ansible/issues/63302
- Create an Ad-Hoc VM for the test and wait until the VMware tools are
ready
2019-10-10 13:26:47 -04:00
Gonéri Le Bouder
7de70bde52
prepare_vmware_test: avoid the dependency on jmespath ( #63344 )
...
We don't really need to depend on jmespath for this.
2019-10-10 13:25:07 -04:00
Pavan Bidkar
904e8434db
VMware: Add support to delete vm from inventory ( #62903 )
...
Fixes : #55572
2019-10-10 17:07:23 +05:30
Andrey Klychkov
3e87429365
mysql_replication: add support of resetmaster choice to mode parameter ( #63321 )
2019-10-10 13:02:57 +02:00
JayalakshmiV
45acdb41d2
Added Exos vlan resource module ( #61865 )
...
* EXOS_VLAN resource module
* EXOS_VLAN resource module
* EXOS_VLAN resource module
* EXOS_VLAN resource module
* EXOS_VLAN resource module
* Fix exos_vlans resource module and integration test
* Move exos_vlan folder to exos_vlans folder
* Fix exos->config->vlans and exos->utils
* Fix version_added
* Improve exos_vlans module and integration tests
* Fix exos_vlans.py
* exos_vlan resource module
2019-10-10 06:50:04 -04:00
Yap Sok Ann
eca33b80f0
mysql_info: add support for global status ( #63189 )
...
Signed-off-by: Yap Sok Ann <sokann@gmail.com>
2019-10-10 12:14:49 +02:00
Sam Doran
9d014778ad
cronvar - use correct binary name ( #63279 )
...
Fixes regression introduced by #62554
Add integration tests for cronvar
2019-10-09 18:33:25 -04:00
Jill R
ce402f003f
Fix STS assume role error message when role does not exist ( #63249 )
...
AWS appears to have changed this error message again.
Fixes https://app.shippable.com/github/ansible/ansible/runs/145643/115/tests
2019-10-09 14:08:29 -07:00
Andrey Klychkov
71bcce5db5
mysql_replication: add channel parameter ( #63271 )
...
* mysql_replication: add channel parameter
* mysql_replication: add channel parameter, add changelog
2019-10-09 14:27:01 +01:00
Andrey Klychkov
9f9afcb203
mysql_replication: add connection_name param for MariaDB multi source replication support ( #63229 )
...
* mysql_replication: add connection_name param for MariaDB multi source support
* mysql_replication: add connection_name param for MariaDB multi source support, add changelog
2019-10-09 10:05:55 +02:00
Matt Davis
fd229dcbb5
add ANSIBLE_PLAYBOOK_DIR envvar support ( #63220 )
...
* 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
2019-10-08 17:34:15 -07:00
Mark Chappell
dbc9444572
ec2_vpc_nacl and ec2_vpc_nacl_info migrate to AnsibleAWSModule and add tests ( #63163 )
...
* Move EC2 networking objects into network-policy.json
* ec2_vpc_nacl: Add integration tests
* ec2_vpc_nacl: Migrate tests to use module_defaults
* ec2_vpc_nacl: (integration tests) Add missing AWS permissions
* ec2_vpc_nacl: (integration tests) Update tests for ipv6 support
* ec2_vpc_nacl: Migrate to AnsibleAWSModule
* Fix sanity tests for ec2_vpc_nacl and ec2_vpc_nacl_info
* ec2_vpc_nacl_info: Migrate to AnsibleAWSModule
* ec2_vpc_nacl_info: (integration tests) Rename from ec2_vpc_nacl_facts to ec2_vpc_nacl_info and add a test using a filter (by tag)
* Pick availability zones dynamically
Rather than assuming that AZa and AZb always exist (they don't), query to find out which AZs we have available first
* Test that the NACLs we get back are actually the *saml* NACL rather than duplicates/delete remove
* Cleanup IPv6 tests a little.
Note: IPv6 support for ec2_vpc_nacl not complete yet.
This provides the initial framework, and should ensure things don't start exploding when support is added.
* Removing subnets by name from a NACL *is* now supported
* Fix ec2_vpc_nacl return documentation
2019-10-08 13:27:24 -07:00
Matt Clay
811127d64d
Add RHEL 8.1b to the Shippable test matrix.
2019-10-08 13:06:28 -07:00
Andrey Klychkov
3b18337cac
lineinfile - fix bug with insertbefore/insertafter and firstmatch ( #63194 )
2019-10-08 10:01:36 -04:00
Pavan Bidkar
314f9fbd5c
Support latest version while upgrading VM hardware. ( #62188 )
...
Support for the `latest` version during an VM hardware upgrade.
2019-10-07 16:41:57 -04:00
Matt Clay
86ae3cfa12
Install zip for unarchive test when using dnf.
2019-10-07 10:41:46 -07:00
The Magician
1522603078
New Module: gcp_compute_region_backend_service ( #63154 )
2019-10-07 13:22:26 -04:00
Andrey Klychkov
e48202838c
mysql_replication: add master_delay parameter ( #63130 )
2019-10-07 15:23:56 +02:00
sky-joker
7b7d266a39
VMware: add properties option to vmware_host_facts module ( #62916 )
...
* add properties option to vmware_host_facts
2019-10-07 10:27:57 +05:30
Felix Fontein
a99af710fb
mariadb_replication / mysql_replication integration tests: conflicts on centos7 ( #63171 )
...
* Change group of mariadb_replication to avoid mysql_replication conflicts.
* Add remarks.
2019-10-06 10:21:15 +02:00
Felix Fontein
24b80848dc
openssl_dhparam: add cryptography backend ( #62991 )
...
* Separate OpenSSL-specific code from generic code.
* Make sure absent works without OpenSSL.
* Add cryptography backend.
* Add tests.
* Add changelog.
* Duplicate disclaimer.
* Add dependency on setup_openssl.
* Forgot to adjust something.
* Fix version tuple.
2019-10-04 21:53:04 +02:00
Felix Fontein
41eafc2051
docker_container: improve image finding / change detection ( #62971 )
...
* Improve image finding / change detection.
* Checked wrong object.
* Improve behavior. (Let docker daemon sort this out.)
* Add changelog.
* Add simple test.
* Fix image name.
* Use new docker_image params.
* Rewrite.
2019-10-04 21:50:09 +02:00
The Magician
bb9b2e87bc
New Module: gcp_compute_node_group ( #63080 )
2019-10-04 13:10:53 -04:00
The Magician
d19b1da1e1
New Module: gcp_compute_network_endpoint_group ( #63121 )
2019-10-04 13:09:34 -04:00
GomathiselviS
7ac4756bf6
ios_bgp : Fix for bug #59083 ( #63055 )
...
* Fix for the bug 59083
* Bug fix #59083 - corrected linting errors
2019-10-04 10:56:08 -04:00
Andrey Klychkov
66de3d429f
mysql_replication: add basic CI tests with MySQL 5.6 ( #63124 )
...
* mysql_replication: add CI tests with MySQL 5.6
* mysql_replication: add CI tests with MySQL 5.6, add auxiliary checks
* mysql_replication: add CI tests with MySQL 5.6, fix comments
* mysql_replication: add CI tests with MySQL 5.6, add pause
2019-10-04 12:49:19 +02:00
Nilashish Chakraborty
fc5358cea0
Fix traceback for empty config ( #62515 )
...
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
2019-10-03 19:45:52 +05:30
Andrey Klychkov
ad5200a7c0
postgresql_lang: add owner parameter ( #62999 )
...
* postgresql_lang: add owner parameter
* postgresql_lang: add owner parameter, add changelog fragment
2019-10-03 18:03:06 +05:30
Andrey Klychkov
ea86b2c2f7
mysql_replication: add master_use_gtid parameter ( #62648 )
...
* mysql_replication: add master_use_gtid parameter
* mysql_replication: add master_use_gtid parameter, improve tests
2019-10-03 18:02:41 +05:30
sky-joker
ff933be7e6
VMware: new module vmware_guest_register_operation ( #54647 )
...
Added vmware module vmware_guest_register_operation
This module can do the following.
Register VM to inventory
Unregister VM from inventory
This is useful when you want to unregister a VM from inventory and register it again.
2019-10-02 16:57:03 -04:00
The Magician
93f851b698
Bug fixes for GCP modules ( #61915 )
2019-10-02 14:31:45 -04:00
The Magician
c2b8f64e83
New Module: gcp_compute_node_template ( #63064 )
2019-10-02 14:30:10 -04:00
Olli Helenius
c724aa22bf
hcloud_volume: add linux_device to return values ( #62865 )
2019-10-02 20:19:10 +02:00
Olli Helenius
84bde7aea6
hcloud_floating_ip_info: create temporary ip in integration tests
2019-10-02 20:17:20 +02:00
Matt Martz
594a0fa9ae
Add new truthy and falsy jinja2 tests ( #62602 )
2019-10-02 13:58:28 -04:00
Mike Wiebe
918f768890
[stable-2.9] Fix nxos_l3_interfaces module and tests ( #62545 )
...
* Fix nxos_l3_interfaces module and tests
* Use get_interface_type
* get_interface_type in utils lib
2019-10-02 13:43:17 -04:00
Adam Miller
8bcf11fee9
dnf - properly handle idempotent removal of wildcard globs ( #63034 )
...
Signed-off-by: Adam Miller <admiller@redhat.com>
2019-10-02 11:05:12 -04:00
Andrey Klychkov
0706782e4e
mysql_replication: add return value, remove extra argument from function ( #63036 )
2019-10-02 13:33:53 +02:00
The Magician
d6781a2a5a
Bug fixes for GCP modules ( #61590 )
2019-10-01 18:27:51 -04:00
The Magician
2b535cc59a
Bug fixes for GCP modules ( #61829 )
2019-10-01 18:27:42 -04:00
The Magician
53cd75bee6
Bug fixes for GCP modules ( #61916 )
2019-10-01 18:27:19 -04:00
The Magician
b4d15b3040
Bug fixes for GCP modules ( #61917 )
2019-10-01 18:27:03 -04:00