{"action":"created","issue":{"url":"https://api.github.com/repos/ceph/ceph/issues/4062","labels_url":"https://api.github.com/repos/ceph/ceph/issues/4062/labels{/name}","comments_url":"https://api.github.com/repos/ceph/ceph/issues/4062/comments","events_url":"https://api.github.com/repos/ceph/ceph/issues/4062/events","html_url":"https://github.com/ceph/ceph/pull/4062","id":62640186,"number":4062,"title":"Support ceph cluster names with systemd","user":{"login":"osynge","id":669365,"avatar_url":"https://avatars.githubusercontent.com/u/669365?v=3","gravatar_id":"","url":"https://api.github.com/users/osynge","html_url":"https://github.com/osynge","followers_url":"https://api.github.com/users/osynge/followers","following_url":"https://api.github.com/users/osynge/following{/other_user}","gists_url":"https://api.github.com/users/osynge/gists{/gist_id}","starred_url":"https://api.github.com/users/osynge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osynge/subscriptions","organizations_url":"https://api.github.com/users/osynge/orgs","repos_url":"https://api.github.com/users/osynge/repos","events_url":"https://api.github.com/users/osynge/events{/privacy}","received_events_url":"https://api.github.com/users/osynge/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceph/ceph/labels/core","name":"core","color":"0052cc"},{"url":"https://api.github.com/repos/ceph/ceph/labels/feature","name":"feature","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-18T09:39:41Z","updated_at":"2015-03-30T18:50:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ceph/ceph/pulls/4062","html_url":"https://github.com/ceph/ceph/pull/4062","diff_url":"https://github.com/ceph/ceph/pull/4062.diff","patch_url":"https://github.com/ceph/ceph/pull/4062.patch"},"body":"Systemd unit files could only ever support one cluster name due\r\nto not supporting dynamically gathered variables. For this reason\r\nwe support multiple systemd units for different cluster names.\r\n\r\nSigned-off-by: Owen Synge <osynge@suse.com>"},"comment":{"url":"https://api.github.com/repos/ceph/ceph/issues/comments/87789112","html_url":"https://github.com/ceph/ceph/pull/4062#issuecomment-87789112","issue_url":"https://api.github.com/repos/ceph/ceph/issues/4062","id":87789112,"user":{"login":"osynge","id":669365,"avatar_url":"https://avatars.githubusercontent.com/u/669365?v=3","gravatar_id":"","url":"https://api.github.com/users/osynge","html_url":"https://github.com/osynge","followers_url":"https://api.github.com/users/osynge/followers","following_url":"https://api.github.com/users/osynge/following{/other_user}","gists_url":"https://api.github.com/users/osynge/gists{/gist_id}","starred_url":"https://api.github.com/users/osynge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osynge/subscriptions","organizations_url":"https://api.github.com/users/osynge/orgs","repos_url":"https://api.github.com/users/osynge/repos","events_url":"https://api.github.com/users/osynge/events{/privacy}","received_events_url":"https://api.github.com/users/osynge/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T18:50:12Z","updated_at":"2015-03-30T18:50:12Z","body":"I have not found a way to make one \"*.service\" file work for multiple variables. Hence my plan was to have multiple \"*.service\" files for each cluster name not called \"ceph\".\r\n\r\nHaving unused paramtereised \"*.service\" files is not an issue, just a little ugly, if left around during instalation. I intended to do this if using a cluster name other than \"ceph\".\r\n\r\nUpstream systemd simply refused point blank to accept a use case for more than one variable in a systemd \"*.service\" file. \r\n\r\nThey suggested when asked about multiple variables; parsing the single variable with a custom delimiter.\r\n\r\nThis alternative delimiter aproach, requires anouther script, ie too launch a shell script, that then would parse the paramter, and exec the deamon with the correct paramters. I looked into other ways of parsing multiple variables from a single systemd file. I dont like either aproach. I picked this as the lesser of two evils from my perspective as I saw clusters not called \"ceph\" as rare but Im not strongly bias either way."}}