Skip to content

Commit

Permalink
Moved the file copy after the execution of upgrade_kernel.sh. upgrade…
Browse files Browse the repository at this point in the history
…_kernel.sh performs a system reboot which will remove the contents of /tmp.
  • Loading branch information
jitran authored and mogren committed Jun 3, 2020
1 parent 3dd3650 commit 1b6f279
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions eks-worker-al2.json
Expand Up @@ -5,7 +5,7 @@
"creator": "{{env `USER`}}",
"encrypted": "false",
"kms_key_id": "",

"aws_access_key_id": "{{env `AWS_ACCESS_KEY_ID`}}",
"aws_secret_access_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
"aws_session_token": "{{env `AWS_SESSION_TOKEN`}}",
Expand Down Expand Up @@ -65,7 +65,7 @@
"delete_on_termination": true
}
],
"ami_block_device_mappings": [
"ami_block_device_mappings": [
{
"device_name": "/dev/xvda",
"volume_type": "gp2",
Expand Down Expand Up @@ -100,16 +100,6 @@
],

"provisioners": [
{
"type": "shell",
"remote_folder": "{{ user `remote_folder`}}",
"inline": ["mkdir -p /tmp/worker/"]
},
{
"type": "file",
"source": "{{template_dir}}/files/",
"destination": "/tmp/worker/"
},
{
"type": "shell",
"remote_folder": "{{ user `remote_folder`}}",
Expand All @@ -124,6 +114,16 @@
"expect_disconnect": true,
"script": "{{template_dir}}/scripts/upgrade_kernel.sh"
},
{
"type": "shell",
"remote_folder": "{{ user `remote_folder`}}",
"inline": ["mkdir -p /tmp/worker/"]
},
{
"type": "file",
"source": "{{template_dir}}/files/",
"destination": "/tmp/worker/"
},
{
"type": "shell",
"remote_folder": "{{ user `remote_folder`}}",
Expand Down

0 comments on commit 1b6f279

Please sign in to comment.