-
Notifications
You must be signed in to change notification settings - Fork 129
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 #169 -- add systemd env options #174
Conversation
|
||
# See https://docs.rke2.io/advanced#configuring-an-http-proxy | ||
# Add proxy information for the systemd environment | ||
# systemd-extra-env: |
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.
# systemd-extra-env: | |
# systemd_extra_env: |
|
||
- name: Add the systemd env file | ||
ansible.builtin.blockinfile: | ||
path: /etc/default/rke2-{{ caller_role_name }} |
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.
path: /etc/default/rke2-{{ caller_role_name }} | |
path: /etc/default/rke2-{{ rke2_common_caller_role_name }} |
|
||
# See https://docs.rke2.io/advanced#configuring-an-http-proxy | ||
# Add proxy information for the systemd environment | ||
# systemd-extra-env: |
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.
# systemd-extra-env: | |
# systemd_extra_env: |
{% for item in systemd_extra_env %} | ||
{{ item }} | ||
{% endfor %} | ||
- name: Reload the systemd daemon |
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.
Maybe is it better to use handlers ?
address via #242 due to rework |
What type of PR is this?
What this PR does / why we need it:
It adds the optional ability to add and configure an rke-{server,agent} systemd environment file to /etc/default
Which issue(s) this PR fixes:
Fixes #169
Release Notes