Ákos Vandra-Meyer
Ákos Vandra-Meyer

Reputation: 2175

Notify resource created later

What is the correct way to write the above code? My problem is that in order for the docker container to work, it needs its configuration

  template '/etc/foo/conf.yaml' do
    ...
    notifies :restart, 'docker_container[foo]'# , :delayed
  end
  
  docker_container 'foo' do
    ..
    volumes("/etc/foo/conf.yaml:/app/conf.yaml:ro")
    action [:create, :run_if_missing]
  end

Upvotes: 1

Views: 14

Answers (0)

Related Questions