|
RoleOptions
Using role parameters
This is deprecated feature! Please use "Query-env" interface instead.What is this all about?When you create your custom role on Scalr, you can specify what "options" instances of this role will need to function properly. For example, Tomcat-based application server may need admin password, memcached instance may need a list of IP adresses that will be allowed to connect from outside. Scalr provides a straightforward yet efficient way for this:
How to retreive an option value from my application or a script?By calling https://scalr.net/config_opts.php If you are running your own Scalr, the URL will be different. Options are named in the following manner: 'options.%option_name%'. Non-alphanumeric symbols replaced by an underscore, all letters are lowercased. Say, you created option 'Admin Password', then you can retreive it at https://scalr.net/config_opts.php?option=options.admin_password&FarmID=115&Hash=0123456789abcde&InstanceID=i-123456
In bash script you can retreive parameter using the below code: . /usr/local/aws/lib/lib.sh ec2_get_option_val options.admin_password |
Sign in to add a comment