Alan Rominger
811ecb8673
Follow suggestion from comment, split if NOT list
2023-02-23 12:05:21 -05:00
npithonDR
4630757f5f
Fix error for byweekday in schedule_rruleset
...
Fix error:
```
fatal: [localhost]: FAILED! => {
"msg": "An unhandled exception occurred while running the lookup plugin 'awx.awx.schedule_rruleset'. Error was a <class 'ansible.errors.AnsibleError'>, original message: In rule 1 byweekday must only contain values in monday, tuesday, wednesday, thursday, friday, saturday, sunday. In rule 1 byweekday must only contain values in monday, tuesday, wednesday, thursday, friday, saturday, sunday"
}
```
with:
```
- name: Build a complex schedule for every monday using the rruleset plugin
awx.awx.schedule:
name: "Test build complex schedule"
state: present
unified_job_template: "template name"
rrule: "{{ query('awx.awx.schedule_rruleset', '2030-04-30 10:30:45', rules=rrules, timezone='Europe/Paris' ) }}"
vars:
rrules:
- frequency: 'day'
interval: 1
byweekday: 'monday'
```
2023-02-09 09:34:10 +01:00
John Westcott IV
f28203913f
Fixing indentation in project module
2023-02-02 13:34:19 -05:00
Rick Elrod
0815f935ca
[collection] remove module defaults where API defaults are the same ( #13037 )
...
Providing defaults for API parameters where the API already provides
defaults leads to some confusing scenarios, because we end up always
sending those collection-defaulted fields in the request even if the
field isn't provided by the user.
For example, we previously set the `scm_type` default to 'manual' and
someone using the collection to update a project who does not explicitly
include the `scm_type` every time they call the module, would
inadvertently change the `scm_type` of the project back to 'manual'
which is surprising behavior.
This change removes the collection defaults for API parameters, unless
they differed from the API default. We let the API handle the defaults
or otherwise ignore fields not given by the user so that the user does
not end up changing unexpected fields when they use a module.
Signed-off-by: Rick Elrod <rick@elrod.me>
2023-02-01 15:37:08 -06:00
Alan Rominger
a2f528e6e5
Fix syntax bug that came from fixing sanity tests ( #13473 )
2023-01-31 15:55:20 -05:00
Oscar
b0a4173545
13377: Choices list for verbosity parameter should be a list of integers
...
Signed-off-by: Oscar <oscar.bell@bell.local>
2023-01-25 08:47:13 +01:00
Jake Jackson
ebea78943d
Deprecate tower modules ( #13210 )
...
* first deprecation pass, need to confirm date or version
* remove doc block updates as not needed, update runtime and remove symlinks
* add line to readme as notable release
* update version before release
2023-01-23 13:44:26 -05:00
Divided by Zer0
e9ad01e806
Handles workflow node schema inventory ( #12721 )
...
Verified by QE. Merging it.
2023-01-19 18:25:19 -03:00
Lila Yasin
11fbfc2063
added fix for preserve existing children issue. ( #13374 )
...
* added fix for preserve existing children issue.
* Modified line 131 to call actual parm name.
* Removed line 132 after updating.
2023-01-16 11:36:07 -03:00
Alan Rominger
ac8cff75ce
Run collection sanity tests in CI ( #13356 )
...
* Run collection sanity tests in CI
This requires adding a Makefile install of ansible-core
Fake the version to make semver check happy
* Fixes from ansible-test sanity failures
* Exclude the export module due to awxkit requirement
* Fix broken ansible-test rule exceptions
remove Ansible 2.14 exclusions that make ansible-test ERROR, saying they are not needed
2022-12-20 16:06:25 -05:00
Jake Jackson
71a6baccdb
Fix lookup plugins sanity ( #13238 )
...
* fix pytz
* fix NameError
* fix tests and add sanity ignore files for import test until distutils replaced
* change static method to regular method and update test to instantiate class
2022-12-15 16:40:51 -05:00
Alan Rominger
d07076b686
Merge pull request #13330 from AlanCoding/ask_me_for_tags
...
Fill in rest of ask_tags handling for WFJT module
2022-12-15 10:59:17 -05:00
Julen Landa Alustiza
df61a5cea1
Merge pull request #13126 from infamousjoeg/cyberark-ccp-branding-webserviceid
...
CyberArk Central Credential Provider Lookup custom Web Service ID & update branding
2022-12-15 15:54:35 +01:00
Alan Rominger
beaf6b6058
Fill in rest of ask_tags handling for WFJT module
2022-12-13 16:38:25 -05:00
Manas Maiti
7b2938f515
fix typo
2022-12-12 18:01:15 +01:00
Elijah DeLee
1cdd2cad67
Add max_forks, max_concurrent_jobs to collection
...
Now these items can be set on instance_groups via the collection.
2022-11-30 17:14:33 -05:00
Jeff Bradberry
7fa9dcbc2a
Merge pull request #13168 from ArtsiomMusin/feature_13055_add_multiple_assert_export
...
Add multiple asset export for awx cli
2022-11-30 15:01:42 -05:00
Jeff Bradberry
7cfb957de3
Add the elements: str type to the lists
2022-11-30 14:15:57 -05:00
Sean Sullivan
d1d60c9ef1
update awx collection workflow module schema with new options ( #13162 )
2022-11-16 10:47:31 -03:00
Joe Garcia
f9bb26ad33
Merge branch 'devel' into cyberark-ccp-branding-webserviceid
2022-11-10 20:50:02 -05:00
Joe Garcia
e4283841d6
Fixes #13119 #13120 Conjur Cloud support & update brand ( #13121 )
...
* Fixes #13119 #13120 Cloud support & update brand
* rm base64 import to pass lint
* Update references across the board
* Removed final reference to CyberArk Conjur Secret Lookup
2022-11-10 13:22:54 -05:00
Artsiom Musin
ac57f5cb28
Add elements as str for export in collection
2022-11-09 20:38:52 +01:00
Artsiom Musin
c39172f516
Resolve review comments
2022-11-09 15:54:16 +01:00
Artsiom Musin
9b047c2af6
Add multiple assert export for awx cli
2022-11-08 15:42:25 +01:00
Darshan
b19aa4a88d
Fixes confusing Error when trying to sync project set to scm_type Manual ( #13080 )
...
Signed-off-by: darshanip <darshancoding@gmail.com>
Co-authored-by: Rick Elrod <rick@elrod.me>
2022-10-27 15:04:26 -04:00
Joe Garcia
9d77c54612
Remove references to AIM everywhere
2022-10-26 12:32:12 -04:00
Alan Rominger
4d9b8400da
Merge pull request #12887 from AlanCoding/more_rules
...
[tech debt] Add new flake8 rules to do some meaningful corrections
2022-10-18 20:27:00 -04:00
John Westcott IV
0f675cd375
Updating modules for prevent_instance_group_fallback
2022-09-29 14:19:36 -04:00
Lila Yasin
ea51e137eb
Merge pull request #12461 from andreadecorte/fix_doc
...
Fix notification doc for Workflow Job Template module
2022-09-28 15:20:44 -04:00
Alan Rominger
d3eb2c1975
Add new flak8 rules to do some meaningful corrections
2022-09-27 20:36:42 -04:00
Rick Elrod
42109fb45a
[collection] Remove instance defaults from docs ( #12964 )
...
We don't specify defaults in the module (because it messes up Instance
updates because AWX things we are trying to change things to be the
default).
- Update the docs to remove the defaults that no longer exist
- Update tests to make them pass (oops)
- Fix tangentially related typo in Kind development docs
Signed-off-by: Rick Elrod <rick@elrod.me>
2022-09-27 15:18:38 -05:00
Rick Elrod
ba26909dc5
Restrict node_state and node_type choices
...
Signed-off-by: Rick Elrod <rick@elrod.me>
2022-09-23 09:46:16 -04:00
Rick Elrod
7d645c8ff6
[collection] Add 'instance' module
...
Signed-off-by: Rick Elrod <rick@elrod.me>
2022-09-23 09:46:16 -04:00
John Westcott IV
4f5596eb0c
Adding unit/functional tests, fixing tests
...
Making common class for LabelList
Fixing related field name
Fixing get_effective_slice_ct to look for corerct field and also override _eager_field
2022-09-22 15:39:16 -04:00
John Westcott IV
809df74050
Adding EE/IG/labels/forks/timeout/job_slice_count to schedules
...
Modifying schedules to work with related fields
Updating awx.awx.workflow_job_template_node
2022-09-22 15:35:27 -04:00
Sarabraj Singh
663ef2cc64
adding prompt-to-launch field on Labels field in Workflow Templates; with necessary UI and testing changes
...
Co-authored-by: Keith Grant <keithjgrant@gmail.com>
2022-09-22 15:18:47 -04:00
John Westcott IV
33c0fb79d6
JT param everything ( #12646 )
...
* Making almost all fields promptable on job templates and config models
* Adding EE, IG and label access checks
* Changing jobs preferred instance group function to handle the new IG cache field
* Adding new ask fields to job template modules
* Address unit/functional tests
* Adding migration file
2022-09-22 15:16:12 -04:00
Matthew Jones
cea8c16064
Merge pull request #12724 from mtward/issue-11605
...
Fix: preserve_existing_hosts flag in awx.awx.group module, while adding a new host to inventory group, retains only 25 existing hosts related #11605
2022-09-07 20:23:58 -04:00
Lila Yasin
6d2e28bfb0
[collection] Add GPG key information to inputs and credential types in documentation. ( #12817 )
2022-09-06 10:05:36 -05:00
Hao Liu
c467b6ea13
add signature_validation_credential to Project
...
add new column to `main_project` table
- `signature_validation_credential`
update project module for awx_collection
- added input arg for `signature_validation_credential`
Co-Authored-By: Lila Yasin <89486372+djyasin@users.noreply.github.com>
2022-09-06 10:05:36 -05:00
mtward
271938c5fc
Update group.py
2022-08-23 15:06:11 -04:00
Yuki Yamashita
dba33f9ef5
Replace gethostbyname to getaddrinfo for plugins ipv6 support related #11450 ( #12561 )
...
Co-authored-by: yukiy <yyamashi@redhat.com>
2022-08-22 11:07:10 -03:00
Sean Sullivan
3712af4df8
update role to provide better error messages ( #12599 )
2022-08-11 07:09:11 -04:00
Sean Sullivan
8cf75fce8c
Update awx collection workflow nodes to look for type ( #12597 )
2022-08-11 07:08:27 -04:00
John Westcott IV
d1fc2702ec
Adding subscriptions module and adding pool_id to license module ( #12560 )
2022-07-28 12:16:47 -04:00
Tom Page
008a4b4d30
Fix workflow job template webhook credential bug - #12324 ( #12325 )
...
Signed-off-by: tompage1994@hotmail.co.uk <tpage@redhat.com>
2022-07-11 09:13:44 -03:00
Andrea Decorte
a8e3c37bb9
Fix notification doc for Workflow Job Template module
...
Signed-off-by: Andrea Decorte <adecorte@redhat.com>
2022-07-04 09:34:58 +02:00
Tom Page
b70231f7d0
Allow modification of schedule if there are two of the same name ( #12407 )
2022-06-28 20:23:54 -03:00
Seth Foster
0522233892
remove update_on_project_update from InventorySource
2022-06-24 15:27:08 -04:00
sean-m-sullivan
7bcceb7e98
add state to awx license module
2022-06-21 13:07:16 -04:00