添加docker ipmitool软件;修改分区大小;添加ansible-stage-one脚本

This commit is contained in:
songyanchao
2021-05-10 21:36:13 -04:00
parent d4a2ef4657
commit d6299cb779
5 changed files with 34 additions and 11 deletions

13
tools/ansible-stage-one Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
PROFILE_ID=$1
PROJECTDIR=$2
TARGET_SYSROOT_DIR=$3
echo "----------------------------- Ansible Stage 1 ----------------------------"
echo "$PROFILE_ID"
echo "[tsg_9140_chroot]" > $PROJECTDIR/tsg-9140-scripts/install_config/tsg_9140_host
echo "$TARGET_SYSROOT_DIR ansible_connection=chroot" >> $PROJECTDIR/tsg-9140-scripts/install_config/tsg_9140_host
ansible-playbook -i $PROJECTDIR/tsg-9140-scripts/install_config/tsg_9140_host $PROJECTDIR/tsg-9140-scripts/tsg_9140_deploy.yml

View File

@@ -13,7 +13,8 @@ set -ex
package_to_install="@base @core @debugging @directory-client @guest-agents
@hardware-monitoring @network-file-system-client @performance @remote-system-management
grub2 kernel kernel-devel epel-release ansible"
grub2 kernel kernel-devel epel-release ansible yum-utils ipmitool docker-ce docker-ce-cli containerd.io"
setopt="group_package_types=mandatory,default,optional"
yum -c "$yum_config" --installroot="$target" -y --setopt=$setopt install $package_to_install