From 2fd87063c0f48b67cb53bba6d52d82a091be6a7b Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 14 Mar 2013 00:20:41 -0700 Subject: set hostname on `leap node init` --- lib/leap_cli/remote/tasks.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/leap_cli/remote/tasks.rb') 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" -- cgit v1.2.3