You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consul 2.3.0 fails if the service_user is root, and the config user isn't set or is set to consul. This causes the poise user to not be created, causing directory configuration to fail. This is primarily when migrating from a 2.1.3 to 2.3.0 release. A few possible fixes off top of head...
Change default recipe so it'll create the user if either is false.
not_if { node['consul']['service_user'] == 'root' }
to be
not_if { node['consul']['service_user'] == 'root' } and { node['consul']['config']['owner'] == 'root' }
Default config user to the service user
Change attributes file to do:
default['consul']['config']['owner'] = default['consul']['service_user'] or similar.
The text was updated successfully, but these errors were encountered:
#446 will fix that issue.
A node attribute ['consul']['config']['owner'] will not be defined, so the dafault owner of Consul config will be a value of the node attribute ['consul']['service_user'] (which is "root" in your case).
Consul 2.3.0 fails if the service_user is root, and the config user isn't set or is set to consul. This causes the poise user to not be created, causing directory configuration to fail. This is primarily when migrating from a 2.1.3 to 2.3.0 release. A few possible fixes off top of head...
Change default recipe so it'll create the user if either is false.
not_if { node['consul']['service_user'] == 'root' }
to be
not_if { node['consul']['service_user'] == 'root' } and { node['consul']['config']['owner'] == 'root' }
Default config user to the service user
Change attributes file to do:
default['consul']['config']['owner'] = default['consul']['service_user'] or similar.
The text was updated successfully, but these errors were encountered: