Changing Passwords with cloud-init
Generally speaking, when launching instances in a cloud environment (such as AWS or an OpenStack-based cloud), the preferred/default way of accessing that instance is via SSH using an injected SSH key pair. There are times, though, when—for whatever reason—this approach won’t work. (I’ll describe one such situation below.) In such instances, it’s possible to configure cloud-init, the same tool used to inject SSH keys, to change passwords for user accounts. Here’s how.
Please note that this is a total hack. (Do NOT use this for any sort of production workload!) That being said, sometimes things like this are necessary to complete preliminary evaluations of a new technology, new product, or new architecture. In my case, I had a demo environment (using DevStack) that I needed to get up and running, and the instances would not have any external connectivity. This meant I was limited to console access only—hence, SSH keys are useless. The only means of access would be via password login through the console. So, I found this snippet of cloud-init code:
#cloud-config
chpasswd:
list: |
user1:password1
user2:password2
user3:password3
expire: False
For this particular use case, I needed to change the default user on the Ubuntu Continue reading
The former Terremark could soon be on the block, according to a report.
Amazon Web Services could be worth $160B; Dell to sell $10B in non-core assets to pay for EMC.
The 'benevolent stewardship' aspect of ONOS doesn't sit well with some.
How to capture the huge business opportunity of virtual services? The Cisco webinar explains. Sign up now!
Join SDxCentral and Brocade for the December 4th DemoFriday at 10:00am to learn how simplify vCPE automation and management with open source solutions like OpenStack Tacker and Brocade's vRouter.
Myths often encountered when demonstrating NFV solutions.