Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Simple Deploy- and Management
package.pxelinux
Commits
e3bd335c
Commit
e3bd335c
authored
Jul 09, 2019
by
Pietsch, Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use owner and group of pxelinux_root_path for all entries
parent
08f2c96f
Pipeline
#2551
failed with stages
in 19 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
2 deletions
+37
-2
tasks/_init.yml
tasks/_init.yml
+13
-0
tasks/configure.yml
tasks/configure.yml
+4
-0
tasks/main.yml
tasks/main.yml
+8
-1
tasks/registerimage.yml
tasks/registerimage.yml
+8
-1
tasks/setimage.yml
tasks/setimage.yml
+4
-0
No files found.
tasks/_init.yml
0 → 100644
View file @
e3bd335c
-
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')
}}"
tasks/configure.yml
View file @
e3bd335c
-
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
...
...
tasks/main.yml
View file @
e3bd335c
---
-
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
...
...
tasks/registerimage.yml
View file @
e3bd335c
---
-
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
tasks/setimage.yml
View file @
e3bd335c
---
-
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment