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 @@ -234,6 +234,24 @@ jobs:
234234 sudo apt-get update
235235 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
236236
237+ - name : Setup IPMI Tool for CloudStack
238+ run : |
239+ # Create cloudstack-common directory if it doesn't exist
240+ sudo mkdir -p /usr/share/cloudstack-common
241+
242+ # Copy ipmitool to cloudstack-common directory if it doesn't exist
243+ if [ ! -f /usr/share/cloudstack-common/ipmitool ]; then
244+ sudo cp /usr/bin/ipmitool /usr/share/cloudstack-common/ipmitool
245+ sudo chmod 755 /usr/share/cloudstack-common/ipmitool
246+ fi
247+
248+ # Create ipmitool-C3 wrapper script
249+ sudo tee /usr/bin/ipmitool > /dev/null << 'EOF'
250+ #!/bin/bash
251+ /usr/share/cloudstack-common/ipmitool -C3 $@
252+ EOF
253+ sudo chmod 755 /usr/bin/ipmitool
254+
237255 - name : Install Python dependencies
238256 run : |
239257 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