Skip to content

Latest commit

 

History

History
136 lines (111 loc) · 7.03 KB

README.md

File metadata and controls

136 lines (111 loc) · 7.03 KB

cloud-init-0.7.5

AIX cloud-init support


Instruction for building the AIX RPM package for cloud-init

  1. 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
  2. Extract the cloud-init ZIP file

    • jar -xvf cloud-init-0.7.5-master.zip
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. Build the cloudinit RPM

    • rpm -v -bb /opt/freeware/src/packages/SPECS/cloud-init.spec
  9. 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

AIX Cloudinit RPM Package Requisite

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

Packages needed for installing cloud-init on AIX

AIX Cloudinit cloudinst.sh script

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