Skip to content

Commit 06a63e9

Browse files
authored
Environment for taste-untester timer needs to be under service_options (#54)
* Environment for taste-untester timer needs to be under service_options
1 parent 3012e2b commit 06a63e9

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

cookbooks/boxcutter_chef/recipes/chefctl.rb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,14 @@
7979
node.default['fb_timers']['jobs']['taste-untester'] = {
8080
'calendar' => FB::Systemd::Calendar.every(5).minutes,
8181
'command' => '/usr/local/sbin/taste-untester',
82-
'environment' => {
83-
'CONFLINK' => '/etc/cinc/client.rb',
84-
'PRODCONF' => '/etc/cinc/client-prod.rb',
85-
'CERTLINK' => '/etc/cinc/client.pem',
86-
'PRODCERT' => '/etc/cinc/client-prod.pem',
87-
'STAMPFILE'=> '/etc/cinc/test_timestamp',
82+
'service_options' => {
83+
'Environment' => [
84+
"CONFLINK=#{::File.join(config_dir, 'client.rb')}",
85+
"PRODCONF=#{::File.join(config_dir, 'client-prod.rb')}",
86+
"CERTLINK=#{::File.join(config_dir, 'client.pem')}",
87+
"PRODCERT=#{::File.join(config_dir, 'client-prod.pem')}",
88+
"STAMPFILE=#{::File.join(config_dir, 'test_timestamp')}",
89+
],
8890
},
8991
}
9092
node.default['fb_timers']['jobs']['remove_override_files'] = {

0 commit comments

Comments
 (0)