Is Juju deploy data accessible on the instances?
        Posted  
        
            by 
                ric_harvey
            
        on Ask Ubuntu
        
        See other posts from Ask Ubuntu
        
            or by ric_harvey
        
        
        
        Published on 2012-11-12T17:11:16Z
        Indexed on 
            2012/11/12
            17:20 UTC
        
        
        Read the original article
        Hit count: 206
        
juju
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.
© Ask Ubuntu or respective owner