Skip to content
diogoleal edited this page Jan 23, 2012 · 3 revisions

You can create users in yours servers.

use  Rex::Commands::User;

user "root"; 
password "PASSWORD";

desc "create user";
task "create-user", "my.server.com", sub {
      create_user 'USER' => {
      home => '/home/USER',
      comment => 'USER Account',
      password => 'blahblah',
      ssh_key => 'ssh-rsa AAAAB3Nza.....',
   };
};
Clone this wiki locally