File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,24 @@ jobs:
238238 sudo apt-get update
239239 sudo apt-get install -y git uuid-runtime genisoimage netcat-openbsd ipmitool build-essential libgcrypt20 libgpg-error-dev libgpg-error0 libopenipmi0 ipmitool libpython3-dev libssl-dev libffi-dev python3-openssl python3-dev python3-setuptools
240240
241+ - name : Setup IPMI Tool for CloudStack
242+ run : |
243+ # Create cloudstack-common directory if it doesn't exist
244+ sudo mkdir -p /usr/share/cloudstack-common
245+
246+ # Copy ipmitool to cloudstack-common directory if it doesn't exist
247+ if [ ! -f /usr/share/cloudstack-common/ipmitool ]; then
248+ sudo cp /usr/bin/ipmitool /usr/share/cloudstack-common/ipmitool
249+ sudo chmod 755 /usr/share/cloudstack-common/ipmitool
250+ fi
251+
252+ # Create ipmitool-C3 wrapper script
253+ sudo tee /usr/bin/ipmitool > /dev/null << 'EOF'
254+ #!/bin/bash
255+ /usr/share/cloudstack-common/ipmitool -C3 $@
256+ EOF
257+ sudo chmod 755 /usr/bin/ipmitool
258+
241259 - name : Install Python dependencies
242260 run : |
243261 python3 -m pip install --user --upgrade urllib3 lxml paramiko nose texttable ipmisim pyopenssl pycryptodome mock flask netaddr pylint pycodestyle six astroid pynose
You can’t perform that action at this time.
0 commit comments