Skip to content

Commit

Permalink
[AWS] Disable additional auto update services for ubuntu image with c…
Browse files Browse the repository at this point in the history
…loud-init (skypilot-org#4252)

* Disable additional auto update services for ubuntu image

* simplify the commands
  • Loading branch information
Michaelvll authored and AlexCuadron committed Nov 7, 2024
1 parent fecb3ab commit 5692411
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sky/templates/aws-ray.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ available_node_types:
- path: /etc/apt/apt.conf.d/10cloudinit-disable
content: |
APT::Periodic::Enable "0";
bootcmd:
- systemctl stop apt-daily.timer apt-daily-upgrade.timer unattended-upgrades.service
- systemctl disable apt-daily.timer apt-daily-upgrade.timer unattended-upgrades.service
- systemctl mask apt-daily.service apt-daily-upgrade.service unattended-upgrades.service
- systemctl daemon-reload
TagSpecifications:
- ResourceType: instance
Tags:
Expand Down

0 comments on commit 5692411

Please sign in to comment.