Ask Your Question

My manifest code not working as expected

asked 2014-05-07 12:49:49 -0600

kid75 gravatar image

updated 2014-05-08 06:47:32 -0600

The code is:

user { 'test' :
          ensure => 'present',
          home => '/home/test'

The account gets created but not the home directory. Do I have to create a separate code for the directory creation of the RAL is issue?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-05-07 12:53:12 -0600

lavaman gravatar image
edit flag offensive delete link more

answered 2014-05-08 06:54:15 -0600

user { 'test' :
          ensure => 'absent',
          home => '/home/test',
          managehome => true,

using the attribute managehome will create the home directory when you create a user and will remove the remove directory when you use ensure => 'absent'

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-05-07 12:49:49 -0600

Seen: 201 times

Last updated: May 08 '14