-
Download the cloud-init ZIP file and transfer the ZIP file to an AIX machine. The instruction below will use /tmp/CLOUD-INIT as the workspace for building the AIX cloud-init RPM package.
- mkdir /tmp/CLOUD-INIT
- cp cloud-init-0.7.5-master.zip /tmp/CLOUD-INIT
- cd /tmp/CLOUD-INIT
-
Extract the cloud-init ZIP file
- jar -xvf cloud-init-0.7.5-master.zip
-
Rename the folder from cloud-init-0.7.5-master to cloud-init-0.7.5
- mv cloud-init-0.7.5 cloud-init-0.7.5
-
Add executable permission to executable files
- chmod -Rf +x /tmp/CLOUD-INIT/cloud-init-0.7.5/tools
- chmod -Rf +x /tmp/CLOUD-INIT/cloud-init-0.7.5/bin
-
Copy the spec file from cloud-init to the RPM build packages path
- cp /tmp/CLOUD-INIT/cloud-init-0.7.5/packages/aix/cloud-init.spec.in /opt/freeware/src/packages/SPECS/cloud-init.spec
-
tar and gzip the cloudinit file so that RPM can build it
- tar -cvf cloud-init-0.7.5.tar cloud-init-0.7.5
- gzip cloud-init-0.7.5.tar
-
Copy the cloudinit gzip file to the RPM directory to be built
- cp cloud-init-0.7.5.tar.gz /opt/freeware/src/packages/SOURCES/cloud-init-0.7.5.tar.gz
-
Build the cloudinit RPM
- rpm -v -bb /opt/freeware/src/packages/SPECS/cloud-init.spec
-
Install the cloud-init RPM package.
- rpm -ivh /opt/freeware/src/packages/RPMS/ppc/cloud-init-0.7.5-4.1.aix6.1.ppc.rpm
The following RPM packages are needed to install python and cloud-init on AIX. The RPM packages can be obtained from the following website: http://www.bullfreeware.com/
The following packages are listed in the order it was installed.
Packages needed for installing python on AIX
Note:
- the RPM flag of --nodeps is needed for installing gettext-0.17-8.aix6.1.ppc.rpm
- bzip2-1.0.6-2.aix6.1.ppc.rpm
- db-4.8.24-4.aix6.1.ppc.rpm
- expat-2.1.0-1.aix6.1.ppc.rpm
- gmp-5.1.3-1.aix6.1.ppc.rpm
- libffi-3.0.11-1.aix6.1.ppc.rpm
- openssl-1.0.1g-1.aix6.1.ppc.rpm
- zlib-1.2.5-6.aix6.1.ppc.rpm
- gettext-0.17-8.aix6.1.ppc.rpm
- gdbm-1.10-1.aix6.1.ppc.rpm
- libiconv-1.14-1.aix6.1.ppc.rpm
- bash-4.2-9.aix6.1.ppc.rpm
- info-5.0-2.aix6.1.ppc.rpm
- readline-6.2-3.aix6.1.ppc.rpm
- ncurses-5.9-3.aix6.1.ppc.rpm
- sqlite-3.7.15.2-2.aix6.1.ppc.rpm
- python-2.7.6-1.aix6.1.ppc.rpm
- fdupes-1.51-1.aix6.1.ppc.rpm
- python-devel-2.7.6-1.aix6.1.ppc.rpm
- python-xml-0.8.4-1.aix6.1.ppc.rpm
- python-boto-2.34.0-1.aix6.1.noarch.rpm
- python-argparse-1.2.1-1.aix6.1.noarch.rpm
- python-cheetah-2.4.4-2.aix6.1.ppc.rpm
- python-configobj-5.0.5-1.aix6.1.noarch.rpm
- python-jsonpointer-1.0.c1ec3df-1.aix6.1.noarch.rpm
- python-jsonpatch-1.8-1.aix6.1.noarch.rpm
- python-oath-1.0.1-1.aix6.1.noarch.rpm
- python-pyserial-2.7-1.aix6.1.ppc.rpm
- python-prettytable-0.7.2-1.aix6.1.noarch.rpm
- python-requests-2.4.3-1.aix6.1.noarch.rpm
- libyaml-0.1.4-1.aix6.1.ppc.rpm
- python-PyYAML-3.11-2.aix6.1.ppc.rpm
- python-six-1.3.0-1.aix6.1.noarch.rpm
- python-setuptools-0.9.8-2.aix6.1.noarch.rpm
The cloudinst.sh script is provided to facilitate the installation of Cloudinit and its requisites on AIX. When executed without argument, the query operation will run to determine the package size needed for the installation. This size can then be used to expand the /opt filesystem on the system to accomodate the installation of cloud-init and its requisites. Please make sure that machine installing cloud-init must be firewall authenticated to download the RPM packages from http://www.bullfreeware.com.
# usage: cloudinst.sh [ -o { query | install | remove } | -h ]
-o query query the size of the cloudinit RPM package and its requisites
-o install install the cloudinit RPM package and its requisites
-o remove remove the cloudinit RPM package and its requisites
-h print usage