Heat Template
mesut aygün
mesutaygn at gmail.com
Tue Aug 13 19:32:45 UTC 2019
Hi everyone;
I am writing the template for cluster but i cant inject the cloud-init
data.
How can I inject the password data for vm?
heat_template_version: 2014-10-16
new_instance:
type: OS::Nova::Server
properties:
key_name: { get_param: key_name }
image: { get_param: image_id }
flavor: bir
name:
str_replace:
template: master-$NONCE-dmind
params:
$NONCE: { get_resource: name_nonce }
user_data: |
#!/bin/bash
#cloud-config
password: 724365
echo "Running boot script" >> /home/ubuntu/test
sudo sed -i
"/^[^#]*PasswordAuthentication[[:space:]]no/c\PasswordAuthentication
yes" /etc/ssh/sshd_config
sudo useradd -d /home/mesut -m mesut
sudo usermod --password 724365 ubuntu
/etc/init.d/ssh restart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20190813/a3bdb133/attachment.html>
More information about the openstack-discuss
mailing list