ralsh is Awesome
So, I'm testing ticket #1099, and I run this snippet of code:
user { testing: ensure => present, home => "/var/tmp" }
Then this one:
user { testing: ensure => present, home => "/tmp" }
Sure enough, the home directory changes (although it doesn't actually move the directory, thankfully), so I clearly didn't do due diligence on accepting the bug information from my client. Now I need to remove the user. Sure, I can modify and reexecute the file, but why should I, when I can just do this:
luke@culain(0) $ sudo puppet/bin/ralsh user testing ensure=absent
notice: /User[testing]/ensure: removed
user { 'testing':
uid => 'absent',
home => 'absent',
password => 'absent',
gid => 'absent',
groups => 'absent',
comment => 'absent',
ensure => 'absent',
shell => 'absent'
}
luke@culain(0) $
The extra output of the user is kinda silly, and really only matters when printing rather than modifying users, but still, I use this all the time, and I'm quite fond of it and its silly name.
Tue, 26 Feb 2008 | Tags: tools, ralsh, puppet