Skip to content
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

tighten permissions #266

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tasks/first_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
path: /etc/rancher/rke2
owner: root
group: root
mode: 0755
mode: 0750
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modifying file and directory permissions to differ from those in the upstream RKE2 installation is not within the scope of this Ansible Role.


- name: Set server taints
ansible.builtin.set_fact:
Expand Down Expand Up @@ -50,12 +50,12 @@
state: directory
path: "{{ rke2_etcd_snapshot_destination_dir }}"
recurse: true
mode: 0755
mode: 0750
- name: Copy etcd snapshot file
ansible.builtin.copy:
src: "{{ rke2_etcd_snapshot_source_dir }}/{{ rke2_etcd_snapshot_file }}"
dest: "{{ rke2_etcd_snapshot_destination_dir }}/{{ rke2_etcd_snapshot_file }}"
mode: 0644
mode: 0640
force: true
- name: Restore etcd from a snapshot
ansible.builtin.shell: |
Expand Down
2 changes: 1 addition & 1 deletion tasks/ingress-nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
dest: "{{ rke2_data_path }}/server/manifests/rke2-ingress-nginx-config.yaml"
owner: root
group: root
mode: 0664
mode: 0660
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modifying file and directory permissions to differ from those in the upstream RKE2 installation is not within the scope of this Ansible Role.

12 changes: 6 additions & 6 deletions tasks/keepalived.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
state: directory
owner: root
group: root
mode: 0755
mode: 0750

- name: Create Kubernetes API health check script for Debian OS family
ansible.builtin.template:
src: templates/check_apiserver.sh.j2
dest: /etc/keepalived/check_apiserver.sh
owner: root
group: root
mode: 0755
mode: 0750
when: ansible_facts['os_family'] == "Debian"
notify: Restart keepalived

Expand All @@ -38,7 +38,7 @@
dest: /usr/libexec/keepalived/check_apiserver.sh
owner: root
group: root
mode: 0755
mode: 0750
when: ansible_facts['os_family'] == "RedHat"
notify: Restart keepalived

Expand All @@ -48,7 +48,7 @@
dest: /etc/keepalived/check_rke2server.sh
owner: root
group: root
mode: 0755
mode: 0750
when: ansible_facts['os_family'] == "Debian"
notify: Restart keepalived

Expand All @@ -58,7 +58,7 @@
dest: /usr/libexec/keepalived/check_rke2server.sh
owner: root
group: root
mode: 0755
mode: 0750
when: ansible_facts['os_family'] == "RedHat"
notify: Restart keepalived

Expand All @@ -68,7 +68,7 @@
dest: /etc/keepalived/keepalived.conf
owner: root
group: root
mode: 0644
mode: 0640
notify: Restart keepalived

- name: Enable keepalived and make sure it is not masked
Expand Down
2 changes: 1 addition & 1 deletion tasks/remaining_nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
path: /etc/rancher/rke2
owner: root
group: root
mode: 0755
mode: 0750
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modifying file and directory permissions to differ from those in the upstream RKE2 installation is not within the scope of this Ansible Role.


- name: Set server taints
ansible.builtin.set_fact:
Expand Down
2 changes: 1 addition & 1 deletion tasks/standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
path: /etc/rancher/rke2
owner: root
group: root
mode: 0755
mode: 0750
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modifying file and directory permissions to differ from those in the upstream RKE2 installation is not within the scope of this Ansible Role.


- name: Copy RKE2 config
ansible.builtin.template:
Expand Down
Loading