Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
environments-recipes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
grid5000
environments-recipes
Commits
892e3e4c
Commit
892e3e4c
authored
Dec 02, 2020
by
Pierre Neyron
🚴
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'kameleon-recipes_master'
parents
a85a6f5a
e9a6e4ef
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
135 additions
and
6 deletions
+135
-6
from_scratch/centos-base.yaml
from_scratch/centos-base.yaml
+2
-0
from_scratch/ppc64le/centos-7.yaml
from_scratch/ppc64le/centos-7.yaml
+23
-0
from_scratch/ppc64le/centos-base.yaml
from_scratch/ppc64le/centos-base.yaml
+3
-1
steps/data/helpers/netinstall_iso_finder.py
steps/data/helpers/netinstall_iso_finder.py
+11
-5
steps/data/kickstart/centos7-ppc64le-ks.cfg
steps/data/kickstart/centos7-ppc64le-ks.cfg
+52
-0
steps/data/kickstart/centos8-ppc64le-ks.cfg
steps/data/kickstart/centos8-ppc64le-ks.cfg
+44
-0
No files found.
from_scratch/centos-base.yaml
View file @
892e3e4c
...
...
@@ -30,6 +30,8 @@ global:
installer_iso_finder_args
:
$${distrib} $${release_number} $${arch} $${mirror_base_url}
qemu_iso_path
:
$${kameleon_cwd}/$${distrib}.iso
# If memory size is too low, the VM crashes.
qemu_memory_size
:
2G
base_kickstart_path
:
$${kameleon_data_dir}/kickstart/$${distrib}$${release_number}-ks.cfg
...
...
from_scratch/ppc64le/centos-7.yaml
0 → 100644
View file @
892e3e4c
#==============================================================================
# vim: softtabstop=2 shiftwidth=2 expandtab fenc=utf-8 cc=81 tw=80
#==============================================================================
#
# DESCRIPTION: Centos 7 recipe using the netinstall mechanism
#
#==============================================================================
---
extend
:
centos-base.yaml
global
:
release_number
:
7
mirror_base_url
:
http://ftp.rz.uni-frankfurt.de/pub/mirrors/centos-altarch/
mirror_url
:
$${mirror_base_url}$${release}/os/$${arch}/
bootstrap
:
-
"
@base"
setup
:
-
"
@base"
export
:
-
"
@base"
from_scratch/ppc64le/centos-base.yaml
View file @
892e3e4c
...
...
@@ -30,8 +30,10 @@ global:
installer_iso_finder_args
:
$${distrib} $${release_number} $${arch} $${mirror_base_url}
qemu_iso_path
:
$${kameleon_cwd}/$${distrib}.iso
# If memory size is too low, the VM crashes.
qemu_memory_size
:
2G
base_kickstart_path
:
$${kameleon_data_dir}/kickstart/$${distrib}$${release_number}-ks.cfg
base_kickstart_path
:
$${kameleon_data_dir}/kickstart/$${distrib}$${release_number}-
$${arch}-
ks.cfg
qemu_sendkeys_commands
:
$${kameleon_data_dir}/qemu-sendkeys/netinst-$${distrib}-grub
...
...
steps/data/helpers/netinstall_iso_finder.py
View file @
892e3e4c
...
...
@@ -23,13 +23,19 @@ class LinkParser(HTMLParser):
if
not
contentType
:
return
logger
.
debug
(
"url = "
+
url
);
logger
.
debug
(
"contenType = "
+
contentType
);
logger
.
debug
(
"conten
t
Type = "
+
contentType
);
if
';'
in
contentType
:
(
mediaType
,
charset
)
=
contentType
.
split
(
";"
)
if
mediaType
==
'text/html'
:
htmlBytes
=
response
.
read
()
htmlString
=
htmlBytes
.
decode
(
charset
.
split
(
"="
)[
1
])
self
.
feed
(
htmlString
)
charset
=
charset
.
split
(
"="
)[
1
]
else
:
mediaType
=
contentType
# ISO-8859-1 is no longer the default charset, see https://tools.ietf.org/html/rfc7231#appendix-B
# Let's use UTF-8.
charset
=
"utf-8"
if
mediaType
==
'text/html'
:
htmlBytes
=
response
.
read
()
htmlString
=
htmlBytes
.
decode
(
charset
)
self
.
feed
(
htmlString
)
def
handle_starttag
(
self
,
tag
,
attrs
):
if
tag
==
'a'
:
...
...
steps/data/kickstart/centos7-ppc64le-ks.cfg
0 → 100644
View file @
892e3e4c
install
url --url="http://mirror.centos.org/altarch/7/os/ppc64le/"
lang en_US.UTF-8
keyboard --vckeymap=us --xlayouts='us'
timezone Europe/Paris --isUtc --ntpservers=0.centos.pool.ntp.org,1.centos.pool.ntp.org,2.centos.pool.ntp.org,3.centos.pool.ntp.org
network --device=eth0 --bootproto=dhcp --ipv6=auto --activate
firewall --enable --ssh
selinux --disabled
rootpw kameleon
text
skipx
logging --level=info
## Parition
clearpart --all --initlabel
bootloader --location=mbr
zerombr
# Disk partitioning information
# Automatically creates PReP partition
reqpart
part /boot --fstype="ext4" --size=500
part / --fstype="ext4" --size=3000 --grow
authconfig --enableshadow --passalgo=sha512
auth --useshadow --enablemd5
firstboot --disabled
reboot
%packages
@Core
-*firmware
-audit*
-libX*
-fontconfig
-freetype
dracut-config-generic
-dracut-config-rescue
bzip2
openssh-clients
openssh-server
%end
%post
# Update distribution
yum update -y
# Make ssh quicker in disconnected situations.
echo 'UseDNS no' >> /etc/ssh/sshd_config
%end
steps/data/kickstart/centos8-ppc64le-ks.cfg
0 → 100644
View file @
892e3e4c
install
url --url="http://mirror.centos.org/centos/8/BaseOS/ppc64le/os"
lang en_US.UTF-8
keyboard --vckeymap=us --xlayouts='us'
timezone Europe/Paris --isUtc --ntpservers=0.centos.pool.ntp.org,1.centos.pool.ntp.org,2.centos.pool.ntp.org,3.centos.pool.ntp.org
firewall --enable --ssh
selinux --disabled
rootpw kameleon
text
skipx
logging --level=info
## Parition
clearpart --all --initlabel
bootloader --location=mbr
zerombr
# Disk partitioning information
# Automatically creates PReP partition
reqpart
part /boot --fstype="ext4" --size=500
part / --fstype="ext4" --size=3000 --grow
authconfig --enableshadow --passalgo=sha512
auth --useshadow --enablemd5
firstboot --disabled
reboot
%packages
@Core
dracut-config-generic
tar
-dracut-config-rescue
%end
%post
# Update distribution
yum update -y
# Make ssh quicker in disconnected situations.
echo 'UseDNS no' >> /etc/ssh/sshd_config
%end
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