bradleyd / devops_for_the_desperate

The companion code for the book DevOps for the Desperate
111 stars 62 forks source link

Chapter 3: [errata] group `bender` #34

Open storenth opened 3 months ago

storenth commented 3 months ago

Possible errata found on https://github.com/bradleyd/devops_for_the_desperate/blob/93066ab97c4e285a7e1d25591eb397031059093e/ansible/chapter3/two_factor.yml#L12

We created developers under Ensure group 'developers' exists task but use bender now didn't get it, can you explain please?

There is no side effect I think: bender-issue

bradleyd commented 3 months ago

@storenth Thanks for reading the book! What you are showing there is correct. When you run getent for group bender, it returns the group ID 1003. The developers group will have a different ID. In your case it is 1002. In the group file, right after the 1002 group ID for developers, you have a :. Following this is the list of users that are associated with this group. In this case, you can see bender is a member of the developers group. Each group will have a unique ID to that host.

I hope that helps.

Brad

storenth commented 3 months ago

Possible errata found on

https://github.com/bradleyd/devops_for_the_desperate/blob/93066ab97c4e285a7e1d25591eb397031059093e/ansible/chapter3/two_factor.yml#L12

We created developers under Ensure group 'developers' exists task but use bender now didn't get it, can you explain please?

But, why you do not use developers under 12 line of the Copy over Preconfigured GoogleAuthenticator config task? Thanks for assist, I'm glad to hear you.

bradleyd commented 1 week ago

Because I only wanted to show how to setup GA for the bender user.