-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ansible-lint CI failures #231
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b28a86e
Correctly specify CircleCI workflow name
5d77f24
Remove unnecessary blank line
e8105a6
Minor indent/spaces changes in ewc repo
a2db8f2
Fix bug in ewc transition logic when the changed license key wasn't r…
9e75bf8
Respect ansible-lint '[306] Shells that use pipes should set the pipe…
23a77af
Ignore false-positives in ansible-lint
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ jobs: | |
|
||
workflows: | ||
version: 2 | ||
helm: | ||
lint: | ||
jobs: | ||
- ansible-lint | ||
- yaml-lint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
|
||
- name: Install prereqs (Debian) | ||
become: yes | ||
apt: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
|
||
- name: Cleanup repo list file from disk | ||
become: yes | ||
file: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
|
||
- name: Check if EWC license hash file is present | ||
stat: | ||
path: /etc/packagecloud/ewc_license_hash.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,59 @@ | ||
--- | ||
- name: Copy default RBAC roles to /opt/stackstorm/rbac/roles directory | ||
become: yes | ||
template: | ||
src: rbac_roles/roles.yml.j2 | ||
dest: /opt/stackstorm/rbac/roles/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac_default_roles }}" | ||
notify: | ||
- reload ewc_rbac | ||
- name: Copy default RBAC roles to /opt/stackstorm/rbac/roles directory | ||
become: yes | ||
template: | ||
src: rbac_roles/roles.yml.j2 | ||
dest: /opt/stackstorm/rbac/roles/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac_default_roles }}" | ||
notify: | ||
- reload ewc_rbac | ||
|
||
- name: Copy user defined RBAC roles to /opt/stackstorm/rbac/roles directory | ||
become: yes | ||
template: | ||
src: rbac_roles/roles.yml.j2 | ||
dest: /opt/stackstorm/rbac/roles/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac.roles }}" | ||
when: ewc_rbac.roles is defined | ||
notify: | ||
- reload ewc_rbac | ||
- name: Copy user defined RBAC roles to /opt/stackstorm/rbac/roles directory | ||
become: yes | ||
template: | ||
src: rbac_roles/roles.yml.j2 | ||
dest: /opt/stackstorm/rbac/roles/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac.roles }}" | ||
when: ewc_rbac.roles is defined | ||
notify: | ||
- reload ewc_rbac | ||
|
||
- name: Copy default RBAC assignments to /opt/stackstorm/rbac/assignments directory | ||
become: yes | ||
template: | ||
src: rbac_assignments/assignments.yml.j2 | ||
dest: /opt/stackstorm/rbac/assignments/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac_default_assignments }}" | ||
notify: | ||
- reload ewc_rbac | ||
- name: Copy default RBAC assignments to /opt/stackstorm/rbac/assignments directory | ||
become: yes | ||
template: | ||
src: rbac_assignments/assignments.yml.j2 | ||
dest: /opt/stackstorm/rbac/assignments/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac_default_assignments }}" | ||
notify: | ||
- reload ewc_rbac | ||
|
||
- name: Copy user defined RBAC assignments to /opt/stackstorm/rbac/assignments directory | ||
become: yes | ||
template: | ||
src: rbac_assignments/assignments.yml.j2 | ||
dest: /opt/stackstorm/rbac/assignments/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac.assignments }}" | ||
when: ewc_rbac.assignments is defined | ||
notify: | ||
- reload ewc_rbac | ||
- name: Copy user defined RBAC assignments to /opt/stackstorm/rbac/assignments directory | ||
become: yes | ||
template: | ||
src: rbac_assignments/assignments.yml.j2 | ||
dest: /opt/stackstorm/rbac/assignments/{{ item.name }}.yaml | ||
owner: st2 | ||
group: st2 | ||
loop: "{{ ewc_rbac.assignments }}" | ||
when: ewc_rbac.assignments is defined | ||
notify: | ||
- reload ewc_rbac | ||
|
||
- name: Enable RBAC in st2 configuration | ||
become: yes | ||
ini_file: | ||
dest: /etc/st2/st2.conf | ||
section: rbac | ||
option: enable | ||
value: True | ||
backup: yes | ||
notify: | ||
- restart st2 | ||
- reload ewc_rbac | ||
- restart st2api | ||
- name: Enable RBAC in st2 configuration | ||
become: yes | ||
ini_file: | ||
dest: /etc/st2/st2.conf | ||
section: rbac | ||
option: enable | ||
value: True | ||
backup: yes | ||
notify: | ||
- restart st2 | ||
- reload ewc_rbac | ||
- restart st2api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That made my coding day, @lakshmi-kannan's 2 yrs old typo ;)