aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/remote/tasks.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-03-14 00:20:41 -0700
committerelijah <elijah@riseup.net>2013-03-14 00:20:41 -0700
commit2fd87063c0f48b67cb53bba6d52d82a091be6a7b (patch)
tree8c5a98ee0336465466d6356ba1253fb2fdf0bf5d /lib/leap_cli/remote/tasks.rb
parent84d94fd879b70140bc8d3038d562f650b0e8fb70 (diff)
downloadleap_cli-2fd87063c0f48b67cb53bba6d52d82a091be6a7b.tar.gz
leap_cli-2fd87063c0f48b67cb53bba6d52d82a091be6a7b.tar.bz2
set hostname on `leap node init`
Diffstat (limited to 'lib/leap_cli/remote/tasks.rb')
-rw-r--r--lib/leap_cli/remote/tasks.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/leap_cli/remote/tasks.rb b/lib/leap_cli/remote/tasks.rb
index 4df2cee..35349ad 100644
--- a/lib/leap_cli/remote/tasks.rb
+++ b/lib/leap_cli/remote/tasks.rb
@@ -14,6 +14,12 @@ task :install_authorized_keys, :max_hosts => MAX_HOSTS do
end
end
+task :set_hostname, :max_hosts => MAX_HOSTS do
+ leap.log :setting, "hostname" do
+ run "hostname $CAPISTRANO:HOST$"
+ end
+end
+
task :install_prerequisites, :max_hosts => MAX_HOSTS do
leap.mkdirs puppet_destination
run "locale-gen"