Package provides configuration and customization of cloud instance.
- See documentation at http://cloudinit.readthedocs.org/
For information on how to contribute, read:
- https://github.com/huaweicloud/huaweicloud-cloud-init/archive/cloud-init-0.7.6.zip
- https://github.com/huaweicloud/huaweicloud-cloud-init/archive/cloud-init-0.7.9.zip
-
Download the cloud-init ZIP file and transfer the ZIP file to an ECS instance. The instruction below will use /tmp/CLOUD-INIT as the workspace for installing the cloud-init package.
- wget https://github.com/huaweicloud/huaweicloud-cloud-init/archive/cloud-init-0.7.6.zip
- mkdir /tmp/CLOUD-INIT
- cp cloud-init-0.7.6.zip /tmp/CLOUD-INIT
- cd /tmp/CLOUD-INIT
-
Extract the cloud-init ZIP file
- unzip cloud-init-0.7.6.zip
-
Install the cloud-init package.
CentOS|RHEL|Oracle6.x/SLES11.x:
- python setup.py build
- python setup.py install --init-system sysvinit
CentOS|RHEL|Oracle7.x/SLES12.x:
- python setup.py build
- python setup.py install --init-system systemd
RHEL does not have a syslog user by default, you have to add it manually.
- useradd syslog
System_info section, replace distro: ubuntu with distro: rhel or distro: sles according to the distribution you will use.
Ensure all cloud-init services are in active status by issuing the following commands.
CentOS|RHEL|Oracle6.x/SLES11.x:
- chkconfig cloud-init-local on
- chkconfig enable cloud-init on
- chkconfig enable cloud-config on
- chkconfig enable cloud-final on
CentOS|RHEL|Oracle7.x/SLES12.x:
- systemctl enable cloud-init-local.service
- systemctl enable cloud-init.service
- systemctl enable cloud-config.service
- systemctl enable cloud-final.service
-
How to check cloud-init package if install success.
-
cloud-init -v
cloud-init 0.7.6
-
cloud-init init --local
Cloud-init v. 0.7.6 running 'init-local' at Sat, 18 Aug 2018 04:43:52 +0000. Up 7486345.46 seconds.
-