cloud-init in compute creation
Summary
using cloud-init option for post processingContent
Has anyone had success with using cloud-init (under Advanced option on the compute creation page) during recent days?
I am trying to launch Apache with a default page post creation of an instance. cloud-init script is pasted below.
The compute creation seems to be ignoring the cloud-init script and there doesn't seem to be any logging to check error conditions.
cloud-init script:
===========
#!/bin/bash
sudo yum install httpd -y
sudo apachectl start
sudo systemctl enable httpd
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --reload
sudo bash -c 'echo "HTTP server on : " `hostname` > /var/www/html/index.html'
Tagged:
0