-
-
Notifications
You must be signed in to change notification settings - Fork 206
refactor(ansible): bring our ansible up to modern ansible-lint standards #1810
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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 hidden or 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,60 +1,61 @@ | ||
- name: Envoy - system user | ||
ansible.builtin.user: | ||
name: envoy | ||
name: 'envoy' | ||
state: 'present' | ||
|
||
- name: Envoy - download binary | ||
ansible.builtin.get_url: | ||
checksum: "{{ envoy_release_checksum }}" | ||
dest: /opt/envoy | ||
group: envoy | ||
mode: u+x | ||
owner: envoy | ||
dest: '/opt/envoy' | ||
group: 'envoy' | ||
mode: '0700' | ||
owner: 'envoy' | ||
# yamllint disable-line rule:line-length | ||
url: "https://github.com/envoyproxy/envoy/releases/download/v{{ envoy_release }}/envoy-{{ envoy_release }}-linux-aarch_64" | ||
|
||
- name: Envoy - download hot restarter script | ||
ansible.builtin.get_url: | ||
checksum: "{{ envoy_hot_restarter_release_checksum }}" | ||
dest: /opt/envoy-hot-restarter.py | ||
group: envoy | ||
mode: u+x | ||
owner: envoy | ||
dest: '/opt/envoy-hot-restarter.py' | ||
group: 'envoy' | ||
mode: '0700' | ||
owner: 'envoy' | ||
# yamllint disable-line rule:line-length | ||
url: https://raw.githubusercontent.com/envoyproxy/envoy/v{{ envoy_release }}/restarter/hot-restarter.py | ||
url: "https://raw.githubusercontent.com/envoyproxy/envoy/v{{ envoy_release }}/restarter/hot-restarter.py" | ||
|
||
- name: Envoy - bump up ulimit | ||
community.general.pam_limits: | ||
domain: envoy | ||
limit_item: nofile | ||
limit_type: soft | ||
value: 4096 | ||
domain: 'envoy' | ||
limit_item: 'nofile' | ||
limit_type: 'soft' | ||
value: '4096' | ||
|
||
- name: Envoy - create script to start envoy | ||
ansible.builtin.copy: | ||
dest: /opt/start-envoy.sh | ||
group: envoy | ||
mode: u+x | ||
owner: envoy | ||
src: files/start-envoy.sh | ||
dest: '/opt/start-envoy.sh' | ||
group: 'envoy' | ||
mode: '0700' | ||
owner: 'envoy' | ||
src: 'files/start-envoy.sh' | ||
|
||
- name: Envoy - create configuration files | ||
ansible.builtin.copy: | ||
dest: /etc/envoy/ | ||
directory_mode: u=rwx,g=rwx,o=rx | ||
group: envoy | ||
mode: u=rw,g=rw,o=r | ||
owner: envoy | ||
src: files/envoy_config/ | ||
dest: '/etc/envoy/' | ||
directory_mode: '0755' | ||
hunleyd marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
group: 'envoy' | ||
mode: '0644' | ||
hunleyd marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
hunleyd marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
owner: 'envoy' | ||
src: 'files/envoy_config/' | ||
|
||
- name: Envoy - create service file | ||
ansible.builtin.copy: | ||
dest: /etc/systemd/system/envoy.service | ||
mode: u=rw,g=r,o=r | ||
src: files/envoy.service | ||
dest: '/etc/systemd/system/envoy.service' | ||
mode: '0644' | ||
src: 'files/envoy.service' | ||
|
||
- name: Envoy - disable service | ||
ansible.builtin.systemd: | ||
ansible.builtin.systemd_service: | ||
daemon_reload: true | ||
enabled: false | ||
name: envoy | ||
state: stopped | ||
name: 'envoy' | ||
state: 'stopped' |
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.
Uh oh!
There was an error while loading. Please reload this page.