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
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
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
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
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
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
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
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
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
/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
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
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
> 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
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: /
14 matches
Mail list logo