When you launch an instance and explicitly name it using:
juju deploy lamp website1
Is there a way on the newly created instance to get the data that tells the machine that its:
- called website1
or even better:
- a unit number such as website1/0, website1/1 etc etc
The reason for doing this is that in my charm I wish to set the hostname to this value.
I did wonder if it was set via ec2metadata but it doesn't seem to list this information.