Hello,

I would like a shell script to run automatically upon node creation. I have 
tried passing commands via the "image_userdata" configuration key located 
within the cluster section of the elasticluster config file. But I have not 
seen any indication of it working so far. Here is a snippet of my config:

[cluster/mycluster]
cloud=google
login=google-login
setup_provider=ansible-gridengine
security_group=default
image_id=debian-8-jessie-v20170227
flavor=n1-standard-1
frontend_nodes=1
compute_nodes=2
image_userdata=#!/bin/bash
        echo Success! > /home/robert/startup.log
ssh_to=frontend

I've also tried passing the entire command list as a single string. e.g.:
image_userdata='#!/bin/bash; echo Success! > /home/robert/startup.log'

Here is some relevant info with examples I found that do not seem to work 
for me:
https://github.com/gc3-uzh-ch/elasticluster/issues/304
https://elasticluster.readthedocs.io/en/latest/troubleshooting.html#setup-of-rhel-centos-7-clusters-fails-immediately
https://groups.google.com/forum/#!topic/elasticluster/I-ao2hotMXA

I would appreciate any help with this. BTW I'm using elasticluster 1.3dev.

Thanks,
Robert

-- 
You received this message because you are subscribed to the Google Groups 
"elasticluster" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to