post installation script in openstack

asked 2019-07-09 01:35:47 -0500

NewBie88 gravatar image

I want to do some operation post installation of instance creation.

My requirement is like below:- 1. Change the node name 2. Add few entries in fstab 3. Assign user to the instance and restrict the access to others apart from assigned users. 4. Install few packages like "yum install ftp -y" 5. Mount volume automatically

I have tried few things like given below:-

cloud-config

runcmd: - [ yum install, "ftp", -O, /tmp/output.txt ]

But getting below error:- /usr/bin/cloud-init-per: line 56: echo This host is being configured, please wait > /etc/nologin: No such file or directory load shell environment ERROR loading dynamic configuration, using cached version: ('Connection aborted.', gaierror(-2, 'Name or service not known')) load /etc/eecloud/region.txt

Please help me to solve this as I am new to openstack.

edit retag flag offensive close merge delete

Comments

The error message doesn't seem to be related.

Your cloudconfig file looks incorrect. I think the "yum install' should be two separate parameters, [ yum, install, ...]

Also try the packages directive.

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-09 05:34:12 -0500 )edit