Closed evandam closed 2 years ago
Setting the program in the consul_service resource does not change the value of ExecStart in the Systemd unit file.
program
consul_service
ExecStart
5.0.0
16.17.4
Ubuntu 18.04 (test kitchen)
Sample cookbook:
consul_service 'service' do program '/my/custom/path' action %i(enable start) end
Note service still points to /usr/local/bin/consul
/usr/local/bin/consul
# cat /etc/systemd/system/consul.service [Unit] Description=consul Wants=network.target After=network.target [Service] Environment="GOMAXPROCS=2" "PATH=/usr/local/bin:/usr/bin:/bin" "SHELL=/bin/false" ExecStart=/usr/local/bin/consul agent -config-file=/etc/consul/chef.json -config-dir=/etc/consul/conf.d ExecReload=/bin/kill -HUP $MAINPID KillSignal=TERM User=consul WorkingDirectory=/var/lib/consul [Install] WantedBy=multi-user.target
ExecStart=/my/custom/path agent -config-file=/etc/consul/chef.json -config-dir=/etc/consul/conf.d
Worked prior to 5.0.0.
Fixed in #600 - thanks @ramereth!
:ghost: Brief Description
Setting the
program
in theconsul_service
resource does not change the value ofExecStart
in the Systemd unit file.:pancakes: Cookbook version
5.0.0
:woman_cook: Chef-Infra Version
16.17.4
:tophat: Platform details
Ubuntu 18.04 (test kitchen)
Steps To Reproduce
Sample cookbook:
Note service still points to
/usr/local/bin/consul
:police_car: Expected behavior
:heavy_plus_sign: Additional context
Worked prior to 5.0.0.