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
7d624383
Commit
7d624383
authored
Jul 16, 2019
by
Pietsch, Martin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.math.tu-dresden.de:sdm/package.pxelinux
parents
aa9409fe
d451fe69
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
2 deletions
+35
-2
tasks/_init.yml
tasks/_init.yml
+13
-0
tasks/configure.yml
tasks/configure.yml
+4
-0
tasks/main.yml
tasks/main.yml
+10
-1
tasks/registerimage.yml
tasks/registerimage.yml
+8
-1
No files found.
tasks/_init.yml
0 → 100644
View file @
7d624383
-
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 @
7d624383
-
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 @
7d624383
---
-
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
...
...
@@ -23,6 +30,8 @@
copy
:
src
:
"
{{
item
}}"
dest
:
"
{{
'%s/%s'
|
format(pxelinux_root_path,
item)
}}"
owner
:
"
{{
_pxelinux_file_owner
}}"
group
:
"
{{
_pxelinux_file_group
}}"
mode
:
0644
with_items
:
-
"
chain.c32"
...
...
tasks/registerimage.yml
View file @
7d624383
---
-
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
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