It´s possible, that puppet tries to install td-agent before the repo is added to apt. You have to notify Exec['apt_update'] after you add a source.
It´s possible, that puppet tries to install td-agent before the repo is added to apt.
You have to notify Exec['apt_update'] after you add a source.