5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# File 'lib/amazon_kamal/cli/main.rb', line 5
def bootstrap
say "Bootstrapping hosts...", :magenta
with_lock do
on(KAMAL.hosts) do |host|
info("Bootstrapping #{host}")
as "root" do
execute :dnf, "update -y"
execute :dnf, "install -y docker htop git"
execute :usermod, "-a -G docker #{KAMAL.config.ssh.user}"
execute :systemctl, "enable --now docker"
%w[
amazon-ssm-agent
gssproxy
systemd-homed
systemd-userdbd.socket
systemd-userdbd
].each do |service|
execute :systemctl, "disable --now #{service}"
end
end
end
end
end
|