Re: [Puppet Users] unable to create home directory

2016-04-04 Thread Mike Hendon
In that case just have puppet create the directory if it doesn't already exist and ensure that the ownership is set correctly. Then have the ssh_authorized_keys resource require the directory resource. On Monday, 4 April 2016 14:23:11 UTC+1, Patrick G. wrote: > > I don't need to create the user j

Re: [Puppet Users] unable to create home directory

2016-04-04 Thread jcbollinger
On Monday, April 4, 2016 at 8:23:11 AM UTC-5, Patrick G. wrote: > > I don't need to create the user just /home//.ssh because the > user exist in ldap. > So how do I give access to puppet to create only /home/admin/.ssh > As I wrote earlier, it's unclear whether yours is in fact an access control

Re: [Puppet Users] unable to create home directory

2016-04-04 Thread jcbollinger
On Friday, April 1, 2016 at 9:32:43 AM UTC-5, Mike Hendon wrote: > > > To create the admin home directory first the ssh key resource should be > dependent on an admin user resource. > Yes and no. As I covered in one of my previous responses to this thread, if there is a User['admin'] under

Re: [Puppet Users] unable to create home directory

2016-04-04 Thread Patrick G.
I don't need to create the user just /home//.ssh because the user exist in ldap. So how do I give access to puppet to create only /home/admin/.ssh Op vrijdag 1 april 2016 16:32:43 UTC+2 schreef Mike Hendon: > > > On Friday, 1 April 2016 14:34:01 UTC+1, jcbollinger wrote: >> >> >> >> On Thursday

Re: [Puppet Users] unable to create home directory

2016-04-01 Thread Mike Hendon
On Friday, 1 April 2016 14:34:01 UTC+1, jcbollinger wrote: > > > > On Thursday, March 31, 2016 at 9:34:04 AM UTC-5, Warron French wrote: >> >> Isn't .ssh created after the first time a user attempts an SSH outbound >> connection, not at initial creation of homedirs? >> > > Inasmuch as we seem to

Re: [Puppet Users] unable to create home directory

2016-04-01 Thread jcbollinger
On Thursday, March 31, 2016 at 9:34:04 AM UTC-5, Warron French wrote: > > Isn't .ssh created after the first time a user attempts an SSH outbound > connection, not at initial creation of homedirs? > Inasmuch as we seem to be talking about OpenSSH or a work-alike, yes, the ssh client creates th

Re: [Puppet Users] unable to create home directory

2016-03-31 Thread warron.french
Isn't .ssh created after the first time a user attempts an SSH outbound connection, not at initial creation of homedirs? -- Warron French On Thu, Mar 31, 2016 at 4:56 AM, Patrick G. wrote: > Nope … > With new users this should create the directory. > > The debug log sho

Re: [Puppet Users] unable to create home directory

2016-03-31 Thread jcbollinger
On Thursday, March 31, 2016 at 7:13:30 AM UTC-5, Patrick G. wrote: > > /home does exists but /home/admin doesn’t because it is a new user. > > How should I give puppet permission to create this directory? > It's unclear whether you need to give Puppet permission, whether you need to give it an

Re: [Puppet Users] unable to create home directory

2016-03-31 Thread Lowe Schmidt
Are you creating the user with puppet or do you have something like LDAP or AD that manages users and access for you? -- Lowe Schmidt | +46 723 867 157 On 31 March 2016 at 14:13, Patrick G. wrote: > /home does exists but /home/admin doesn’t because it is a new user. > > How should I give pupp

Re: [Puppet Users] unable to create home directory

2016-03-31 Thread Patrick G.
/home does exists but /home/admin doesn’t because it is a new user. How should I give puppet permission to create this directory? > On 31 mrt. 2016, at 13:14, Chad Huneycutt wrote: > > That is actually where it is failing. Does /home and /home/admin exist? Does > puppet have permission to cre

Re: [Puppet Users] unable to create home directory

2016-03-31 Thread Chad Huneycutt
That is actually where it is failing. Does /home and /home/admin exist? Does puppet have permission to create it? On Thursday, March 31, 2016, Patrick G. wrote: > Nope … > With new users this should create the directory. > > The debug log shows: > > Debug: Creating /home/admin/.ssh > > > But it

Re: [Puppet Users] unable to create home directory

2016-03-31 Thread Patrick G.
Nope … With new users this should create the directory. The debug log shows: > Debug: Creating /home/admin/.ssh But it doesn’t create it. Gr. Patrick. > On 29 mrt. 2016, at 17:09, Lowe Schmidt wrote: > > > Notice: /Stage[main]/Ssh/Ssh_authorized_key[admin]/ensure: created > > Debug: Creating

Re: [Puppet Users] unable to create home directory

2016-03-29 Thread Lowe Schmidt
> Notice: /Stage[main]/Ssh/Ssh_authorized_key[admin]/ensure: created > Debug: Creating /home/admin/.ssh > Error: /Stage[main]/Ssh/Ssh_authorized_key[admin]: Could not evaluate: No such file > or directory - /home/admin/.ssh Well, does the directory /home/admin/.ssh exist? -- Lowe Schmidt | +46 72

[Puppet Users] unable to create home directory

2016-03-29 Thread Patrick G.
Hi, I am using # puppet-module-ssh In the yaml file I have: ssh::keys: admin: ensure: present user: admin type: dsa key: ...== But when running puppet agent I get: Notice: /Stage[main]/Ssh/Ssh_authorized_key[admin]/ensure: created Debug: Creating /home/admin/.ssh Error: /