Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Update ssh_keys.rb #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jbianquetti
Copy link

Ensures idempotency

Ensures idempotency
@wingrunr21
Copy link
Collaborator

What issue were you having that this solves? This doesn't actually ensure any kind of idempotency, it just creates a unique name for each bash/user resource instead of them all using the same name.

This behavior (amongst others in the cookbook) will be converted to an LWPR soon, so if this is not causing an issue I would like to keep the behavior as-is.

@jbianquetti
Copy link
Author

If I have 2 users in a kitchen test (first: vargant second: user) , the
second user do not get created $HOME

2013/12/10 Stafford Brunk [email protected]

What issue were you having that this solves? This doesn't actually ensure
any kind of idempotency, it just creates a unique name for each bash/user
resource instead of them all using the same name.

This behavior (amongst others in the cookbook) will be converted to an
LWPR soon, so if this is not causing an issue I would like to keep the
behavior as-is.


Reply to this email directly or view it on GitHubhttps://github.com//pull/10#issuecomment-30238277
.

@jbianquetti
Copy link
Author

"it just creates a unique name for each bash/user resource instead of them
all using the same name." Chef is not really good managing resources that
have the SAME name, so a best practice is make every resource uniq.

2013/12/10 Jorge Bianquetti [email protected]

If I have 2 users in a kitchen test (first: vargant second: user) , the
second user do not get created $HOME

2013/12/10 Stafford Brunk [email protected]

What issue were you having that this solves? This doesn't actually ensure
any kind of idempotency, it just creates a unique name for each bash/user
resource instead of them all using the same name.

This behavior (amongst others in the cookbook) will be converted to an
LWPR soon, so if this is not causing an issue I would like to keep the
behavior as-is.


Reply to this email directly or view it on GitHubhttps://github.com//pull/10#issuecomment-30238277
.

@wingrunr21
Copy link
Collaborator

"Managing" in this context is pretty loose. It's just shelling out to SSH command. These need to be converted to proper LWRPs in order for Chef to manage them.

I will merge this to fix the multiple user import issue but you need to fix the tests and preferably add a test for the problem you were seeing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants