Trying to put the bits together to get an auto scaling group in aws to come 
on line and create a vm that does a callback to tower for provisionment.

The bit im getting stuck with is the callback part

According 
to http://docs.ansible.com/ansible-tower/2.2.0/html/userguide/job_templates.html

you use the /usr/share/awx/request_tower_configuration.sh script as a basis

this script looks like it takes arguments so should be called somethig like 

./scripts/request_tower_configuration.sh  ansible.myco.com 
84e2d9d26c5977c1b12eb353f1a97aa1 94

I have seen the launch config script snippet like

- name: create launch config
     ec2_lc:
       name: "{{ site_prefix }}-lc"
...
       user_data: "{{ lookup('file', 
'./scripts/request_tower_configuration.sh')}}"

that takes the contents of that file as pastes it as a blob in the 
user_data field on a created vm but without the arguments you need its 
useless.

i did try this too but that doesnt work
user_data: "{{ lookup('file', './scripts/site_callback.sh') 
 ansible.idg.co.uk 84e2d9d26c5977c1b12eb353f1a97aa1 94 }}"


anyone got a working example of how this works?

thanks










-- 


This message is private and confidential and for the exclusive use of the 
intended recipient(s). If you receive this email in error, please notify 
the sender immediately and delete all copies from your system. If you are 
not the intended recipient disclosure, distribution, copying or use of this 
communication is strictly prohibited. Any views or opinions presented in 
this email are solely those of the author and do not necessarily represent 
those of IDG UK. Clients and suppliers can view our full terms and 
conditions at www.idg.co.uk/terms-and-conditions/


IDG Communications Ltd. Company Reg No: 1197840. Registered in England and 
Wales.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b683524f-0ffe-4ad3-b52a-c2d66126c40a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to