Skip to content

Commit 18f1782

Browse files
committed
Initial commit for ansible-test support
Signed-off-by: Webster Mudge <[email protected]>
1 parent c211d37 commit 18f1782

File tree

10 files changed

+51
-0
lines changed

10 files changed

+51
-0
lines changed

roles/platform/tests/ansible.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[defaults]
2+
collections_path=/Users/wmudge/tmp/2021-07-13
3+
enable_task_debugger = True

roles/platform/tests/inventory

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
localhost

roles/platform/tests/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
3+
- hosts: localhost
4+
remote_user: root
5+
roles:
6+
- cloudera.exe.platform
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
globals:
3+
admin_password: no_guessing
4+
name_prefix: cdw01
5+
ssh:
6+
public_key_id: wmudge
7+
infra:
8+
aws:
9+
region: us-east-2
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# cloud/aws
2+
skip/python2
3+
unsupported
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
3+
defaults_test: foobar
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dependencies:
2+
- setup_vars
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
3+
- ansible.builtin.debug:
4+
msg: "Role name: {{ role_name }}"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
3+
- ansible.builtin.debug:
4+
msg: Loading defaults for cloudera.exe.common
5+
6+
- set_fact:
7+
globals:
8+
admin_password: test
9+
10+
- include_vars: main.yml
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
3+
globals:
4+
admin_password: no_guessing
5+
name_prefix: cdw01
6+
ssh:
7+
public_key_id: wmudge
8+
infra:
9+
aws:
10+
region: us-east-2

0 commit comments

Comments
 (0)