From 0b3ab62c5a0285a6d3df3d50c6b78cf3d7bb762d Mon Sep 17 00:00:00 2001 From: pmikus Date: Wed, 11 Aug 2021 09:55:22 +0000 Subject: Infra: AWS self termination Signed-off-by: pmikus Change-Id: I9ecd85d1086f6be1bbaf6a6925da362cc4c1a9ad (cherry picked from commit 44784f12e7a1cfe42927bd301b90015ffa72b7d7) (cherry picked from commit 56b334fb5044d0f29b6e8f91e16f067533196b50) --- fdio.infra.ansible/roles/aws/tasks/main.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'fdio.infra.ansible') diff --git a/fdio.infra.ansible/roles/aws/tasks/main.yaml b/fdio.infra.ansible/roles/aws/tasks/main.yaml index 2d209762c3..2b8c22ccce 100644 --- a/fdio.infra.ansible/roles/aws/tasks/main.yaml +++ b/fdio.infra.ansible/roles/aws/tasks/main.yaml @@ -82,7 +82,7 @@ tags: - aws-reload-systemd-modules -- name: Performance Tuning - Adjust nr_hugepages +- name: Adjust nr_hugepages sysctl: name: "vm.nr_hugepages" value: "8192" @@ -91,3 +91,8 @@ reload: "yes" tags: - aws-set-hugepages + +- name: Shutdown host with delay + command: "/sbin/shutdown -P +720" + tags: + - aws-set-self-terminate -- cgit 1.2.3-korg