aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2021-08-11 09:55:22 +0000
committerPeter Mikus <pmikus@cisco.com>2021-08-11 10:39:43 +0000
commit0b3ab62c5a0285a6d3df3d50c6b78cf3d7bb762d (patch)
tree995c4af14cc01e942433e935f734757cfe1de4ec /fdio.infra.ansible
parent0776d38ff1a0eb5e7634f6409f3cfe953456cbc3 (diff)
Infra: AWS self termination
Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: I9ecd85d1086f6be1bbaf6a6925da362cc4c1a9ad (cherry picked from commit 44784f12e7a1cfe42927bd301b90015ffa72b7d7) (cherry picked from commit 56b334fb5044d0f29b6e8f91e16f067533196b50)
Diffstat (limited to 'fdio.infra.ansible')
-rw-r--r--fdio.infra.ansible/roles/aws/tasks/main.yaml7
1 files changed, 6 insertions, 1 deletions
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