From 711165890d516d19d1f339601fb3f16353cf0be6 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 12 May 2019 14:54:52 +0200 Subject: [PATCH] auto-delete root volume at ec2 destroy --- .drone.jsonnet | 3 +++ .drone.yml | 3 +++ molecule/ec2-centos-7/create.yml | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/.drone.jsonnet b/.drone.jsonnet index 417097b..e1f1145 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -79,6 +79,9 @@ local PipelineNotifications = { os: "linux", arch: "amd64", }, + clone: { + disable: true, + }, steps: [ { name: "matrix", diff --git a/.drone.yml b/.drone.yml index 261b382..b572ece 100644 --- a/.drone.yml +++ b/.drone.yml @@ -85,6 +85,9 @@ platform: os: linux arch: amd64 +clone: + disable: true + steps: - name: matrix image: plugins/matrix diff --git a/molecule/ec2-centos-7/create.yml b/molecule/ec2-centos-7/create.yml index 699155f..0aa9539 100644 --- a/molecule/ec2-centos-7/create.yml +++ b/molecule/ec2-centos-7/create.yml @@ -72,6 +72,11 @@ exact_count: 1 count_tag: instance: "{{ item.name }}" + volumes: + - device_name: /dev/sda1 + volume_type: gp2 + volume_size: 8 + delete_on_termination: yes register: server with_items: "{{ molecule_yml.platforms }}" async: 7200