添加docker ipmitool软件;修改分区大小;添加ansible-stage-one脚本
This commit is contained in:
13
tools/ansible-stage-one
Executable file
13
tools/ansible-stage-one
Executable 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user