@@ -27,9 +27,8 @@ Mappings:
2727 - service docker stop
2828 - cp -au /var/lib/docker /var/lib/docker.bk
2929 - rm -rf /var/lib/docker/*
30- - EBS_AUTOSCALE_VERSION=$(curl --silent "https://api.github.com/repos/awslabs/amazon-ebs-autoscale/releases/latest" | jq -r .tag_name)
31- - cd /opt && git clone https://github.com/awslabs/amazon-ebs-autoscale.git
32- - cd /opt/amazon-ebs-autoscale && git checkout $EBS_AUTOSCALE_VERSION
30+ - cd /opt && wget $artifactRootUrl/get-amazon-ebs-autoscale.sh
31+ - sh /opt/get-amazon-ebs-autoscale.sh
3332 - sh /opt/amazon-ebs-autoscale/install.sh $scratchPath /dev/sdc 2>&1 > /var/log/ebs-autoscale-install.log
3433 - sed -i 's+OPTIONS=.*+OPTIONS="--storage-driver btrfs"+g' /etc/sysconfig/docker-storage
3534 - cp -au /var/lib/docker.bk/* /var/lib/docker
@@ -40,9 +39,8 @@ Mappings:
4039
4140 cromwell :
4241 additions : |-
43- - EBS_AUTOSCALE_VERSION=$(curl --silent "https://api.github.com/repos/awslabs/amazon-ebs-autoscale/releases/latest" | jq -r .tag_name)
44- - cd /opt && git clone https://github.com/awslabs/amazon-ebs-autoscale.git
45- - cd /opt/amazon-ebs-autoscale && git checkout $EBS_AUTOSCALE_VERSION
42+ - cd /opt && wget $artifactRootUrl/get-amazon-ebs-autoscale.sh
43+ - sh /opt/get-amazon-ebs-autoscale.sh
4644 - sh /opt/amazon-ebs-autoscale/install.sh $scratchPath /dev/sdc 2>&1 > /var/log/ebs-autoscale-install.log
4745 - cd /opt && wget $artifactRootUrl/aws-ecs-additions.tgz && tar -xzf aws-ecs-additions.tgz
4846 - sh /opt/ecs-additions/ecs-additions-cromwell.sh
@@ -53,9 +51,8 @@ Mappings:
5351 - service docker stop
5452 - cp -au /var/lib/docker /var/lib/docker.bk
5553 - rm -rf /var/lib/docker/*
56- - EBS_AUTOSCALE_VERSION=$(curl --silent "https://api.github.com/repos/awslabs/amazon-ebs-autoscale/releases/latest" | jq -r .tag_name)
57- - cd /opt && git clone https://github.com/awslabs/amazon-ebs-autoscale.git
58- - cd /opt/amazon-ebs-autoscale && git checkout $EBS_AUTOSCALE_VERSION
54+ - cd /opt && wget $artifactRootUrl/get-amazon-ebs-autoscale.sh
55+ - sh /opt/get-amazon-ebs-autoscale.sh
5956 - sh /opt/amazon-ebs-autoscale/install.sh $scratchPath /dev/sdc 2>&1 > /var/log/ebs-autoscale-install.log
6057 - sed -i 's+OPTIONS=.*+OPTIONS="--storage-driver btrfs"+g' /etc/sysconfig/docker-storage
6158 - cp -au /var/lib/docker.bk/* /var/lib/docker
0 commit comments