sous-chefs / users

Development repository for the users cookbook
https://supermarket.chef.io/cookbooks/users
Apache License 2.0
138 stars 217 forks source link

lazy evaluation for node['fqdn'] #119

Closed scalp42 closed 8 years ago

scalp42 commented 8 years ago

Gets around the issue of having the 2nd run updating resources:

      - update content in file /home/myuser/.ssh/authorized_keys from b9a182 to 66293c
      --- /home/myuser/.ssh/authorized_keys 2015-12-11 23:52:07.336236063 +0000
      +++ /home/myuser/.ssh/.authorized_keys20151212-29526-17evzcf  2015-12-12 00:26:19.972310486 +0000
      @@ -1,4 +1,4 @@
      -# Generated by Chef for ip-10-72-33-112.us-west-2.compute.internal
      +# Generated by Chef for data-i-fd361839.mydomain
tas50 commented 8 years ago

@scalp42 I think an even better solution here is to just remove the FQDN from the files. Historically we had the FQDN in every file, but we've been removing them over time. Let me just nuke that from the cookbook entirely.

scalp42 commented 8 years ago

Works for me :+1:

Been seeing this for years :speak_no_evil: