{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/fleet/issues/562","labels_url":"https://api.github.com/repos/coreos/fleet/issues/562/labels{/name}","comments_url":"https://api.github.com/repos/coreos/fleet/issues/562/comments","events_url":"https://api.github.com/repos/coreos/fleet/issues/562/events","html_url":"https://github.com/coreos/fleet/issues/562","id":36321421,"number":562,"title":"systemd oneshots","user":{"login":"bcwaldon","id":548759,"avatar_url":"https://avatars.githubusercontent.com/u/548759?v=3","gravatar_id":"","url":"https://api.github.com/users/bcwaldon","html_url":"https://github.com/bcwaldon","followers_url":"https://api.github.com/users/bcwaldon/followers","following_url":"https://api.github.com/users/bcwaldon/following{/other_user}","gists_url":"https://api.github.com/users/bcwaldon/gists{/gist_id}","starred_url":"https://api.github.com/users/bcwaldon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcwaldon/subscriptions","organizations_url":"https://api.github.com/users/bcwaldon/orgs","repos_url":"https://api.github.com/users/bcwaldon/repos","events_url":"https://api.github.com/users/bcwaldon/events{/privacy}","received_events_url":"https://api.github.com/users/bcwaldon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coreos/fleet/labels/feature","name":"feature","color":"84b6eb"},{"url":"https://api.github.com/repos/coreos/fleet/labels/needs-more","name":"needs-more","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-06-23T19:07:45Z","updated_at":"2015-07-22T09:51:53Z","closed_at":null,"body":"We need real support for systemd oneshot units. Not sure if this is different from the concept of a \"batch job\"."},"comment":{"url":"https://api.github.com/repos/coreos/fleet/issues/comments/123646150","html_url":"https://github.com/coreos/fleet/issues/562#issuecomment-123646150","issue_url":"https://api.github.com/repos/coreos/fleet/issues/562","id":123646150,"user":{"login":"xied75","id":1682456,"avatar_url":"https://avatars.githubusercontent.com/u/1682456?v=3","gravatar_id":"","url":"https://api.github.com/users/xied75","html_url":"https://github.com/xied75","followers_url":"https://api.github.com/users/xied75/followers","following_url":"https://api.github.com/users/xied75/following{/other_user}","gists_url":"https://api.github.com/users/xied75/gists{/gist_id}","starred_url":"https://api.github.com/users/xied75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xied75/subscriptions","organizations_url":"https://api.github.com/users/xied75/orgs","repos_url":"https://api.github.com/users/xied75/repos","events_url":"https://api.github.com/users/xied75/events{/privacy}","received_events_url":"https://api.github.com/users/xied75/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T09:51:53Z","updated_at":"2015-07-22T09:51:53Z","body":"Dear all I would like to verify with you guys about a use case:\r\n\r\nI've got a cluster up and running, and my fleet unit need to git clone a private repo, which means I need to get a private key for root on each of the node so that they can access my gitlab via Deploykey.\r\n\r\nIn an ideal world, you do this in the cloud-config.yaml, assume that you knows everything needed before you deploy the cluster. But you always find something is missing from the cluster later.\r\n\r\nI was also thinking should this be a job rather for Ansible/Puppet, in that I want to 'state' control my nodes to be in a specific 'state'.\r\n\r\nBut I tend to reduce the tooling needed to have a unified story, i.e. I'll write a simple fleet unit to dump the private key for root. Which apparently is 'oneshot', and global. And it should disappear afterwards.\r\n\r\nEven further, what if we could do \r\n```\r\nfleetctl run whatever-arbitrary-bash\r\n```\r\nThen fleetd will magically turn this into a oneshot unit and fire it."}}