How can I write the password data via heat template in openstack? [closed]

asked 2019-08-13 13:50:50 -0500

mesutaygun gravatar image

updated 2019-08-13 14:14:21 -0500

I want to inject password data with heat template version 2014-10-16. But i cant do this. this is my user data field in yaml file user_data: | #cloud-config password: test123 #!/bin/bash echo "Running boot script" >> /home/ubuntu/test sudo apt-add-repository -y ppa:ansible/ansible sudo add-apt-repository -y ppa:openjdk-r/ppa sudo apt-get -y update sudo apt-get -y install git git clone sudo apt-get -y install openjdk-8-jdk sudo apt-get -y install ansible sudo sed -i "/^[^#]*PasswordAuthentication[[:space:]]no/c\PasswordAuthentication yes" /etc/ssh/sshd_config sudo useradd -d /home/mesut -m mesut sudo usermod --password xxxx mesut /etc/init.d/ssh restart hostnamectl set-hostname master-$NONCE-dmind

but not pass in the vm?

How can ı follow the way for problem?

edit retag flag offensive reopen merge delete

Closed for the following reason too subjective and argumentative by mesutaygun
close date 2019-08-13 14:13:56.151518