Liebe Gitlab-Nutzer, lieber Gitlab-Nutzer, es ist nun möglich sich mittels des ZIH-Logins/LDAP an unserem Dienst anzumelden. Ein Anmelden über dieses erzeugt ein neues Konto. Das alte Konto ist über den Reiter "Standard" erreichbar. Die Administratoren

Dear Gitlab user, it is now possible to log in to our service using the ZIH login/LDAP. Logging in via this will create a new account. The old account can be accessed via the "Standard" tab. The administrators

Commit e3bd335c authored by mpietsch's avatar mpietsch
Browse files

use owner and group of pxelinux_root_path for all entries

parent 08f2c96f
Pipeline #2551 failed with stages
in 19 seconds
- name: get permission of {{ pxelinux_root_path }}, if it exists
stat:
path: "{{ pxelinux_root_path }}"
register: _pxelinux_root_path_stat
- name: set default pxelinux file owner
set_fact:
_pxelinux_file_owner: "{{ _pxelinux_root_path_stat.stat.pw_name | default('root') }}"
- name: set default pxelinux file group
set_fact:
_pxelinux_file_group: "{{ _pxelinux_root_path_stat.stat.gr_name | default('wheel') }}"
- import_tasks: _init.yml
- name: create default file for pxelinux
copy:
src: "default"
dest: "{{ '%s/pxelinux.cfg/default' | format(pxelinux_root_path) }}"
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
mode: 0755
......
---
- import_tasks: _init.yml
- name: create directory for pxelinux
file:
path: "{{ pxelinux_root_path }}"
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
state: directory
recurse: yes
mode: 0755
- name: create configuration file directory for pxelinux
file:
path: "{{ '%s/pxelinux.cfg' | format(pxelinux_root_path) }}"
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
state: directory
mode: 0755
- name: create directory for image files of pxelinux
file:
path: "{{ '%s/images' | format(pxelinux_root_path) }}"
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
state: directory
mode: 0755
......
---
- import_tasks: _init.yml
- name: register image file
copy:
src: "{{ pxelinux_image_buildpath }}"
dest: "{{ '%s/images/%s-%s-%s.img' | format(pxelinux_root_path, pxelinux_image_distribution, pxelinux_image_release, pxelinux_image_architecture) }}"
mode: 0644
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
remote_src: yes
- template:
- name: register pxelinux configuration
template:
src: "pxelinux.cfg.j2"
dest: "{{ '%s/pxelinux.cfg/%s-%s-%s' | format(pxelinux_root_path, pxelinux_image_distribution, pxelinux_image_release, pxelinux_image_architecture) }}"
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
mode: 0644
---
- import_tasks: _init.yml
- name: set image file for host {{ pxelinux_image_boothost }}
copy:
src: "{{ '%s/pxelinux.cfg/%s-%s-%s' | format(pxelinux_root_path, pxelinux_image_distribution, pxelinux_image_release, pxelinux_image_architecture) }}"
dest: "{{ '%s/pxelinux.cfg/01-%s' | format(pxelinux_root_path, hostvars[pxelinux_image_boothost].network.devices[host.network.control_device].mac | replace(':','-')) }}"
owner: "{{ _pxelinux_file_owner }}"
group: "{{ _pxelinux_file_group }}"
mode: 0644
remote_src: yes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment