UUID support for certnames » History » Version 2
Ohad Levy, 06/20/2012 06:48 AM
1 | 1 | Ohad Levy | h1. Use UUID's for puppet certnames |
---|---|---|---|
2 | |||
3 | Users who wish to deploy their hosts using a random unique id, should enable that setting, and use the certname directive in their puppet.conf template, e.g.: |
||
4 | |||
5 | certname = <%25= @host.certname %25> |
||
6 | |||
7 | 2 | Ohad Levy | when the certname was not generated (e.g. for hosts created before enabling this feature) @host.certname would return the host name instead. |
8 | 1 | Ohad Levy | |
9 | for provisioning where DNS is not reliable, it is highly recommended to use certnames. |
||
10 | 2 | Ohad Levy | |
11 | h1. WARNING |
||
12 | |||
13 | This *does not work well* when you are sharing puppet *storeconfigs* database with Foreman, as Puppet would create a new entry in the db with the UUID as the system name. |
||
14 | the recommended workaround is to dump the db, and not to share puppet and foreman databases. |