ec2-autoscale-reactor icon indicating copy to clipboard operation
ec2-autoscale-reactor copied to clipboard

Adjustment for Salt 2017.7

Open DenisBY opened this issue 7 years ago • 0 comments

Just in case someone needs this, to make this reactor compartible with salt 2017, code starting from line https://github.com/saltstack-formulas/ec2-autoscale-reactor/blob/master/ec2-autoscale/init.sls#L86 should look like this:

        vm_ = __opts__.get('ec2.autoscale', {})
        vm_['reactor'] = True
        vm_['instances'] = instance_id
        vm_['instance_id'] = instance_id
        # Fire off an event to wait for the machine
        return {
            'ec2_autoscale_launch': {
                'runner.cloud.create': [{'kwarg': vm_}]
            }
        }

DenisBY avatar Sep 29 '17 09:09 DenisBY