{"action":"opened","issue":{"url":"https://api.github.com/repos/jdeathe/centos-ssh/issues/194","repository_url":"https://api.github.com/repos/jdeathe/centos-ssh","labels_url":"https://api.github.com/repos/jdeathe/centos-ssh/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/jdeathe/centos-ssh/issues/194/comments","events_url":"https://api.github.com/repos/jdeathe/centos-ssh/issues/194/events","html_url":"https://github.com/jdeathe/centos-ssh/issues/194","id":153426185,"number":194,"title":"Use systemd template file format instead of defining port number.","user":{"login":"jdeathe","id":1873115,"avatar_url":"https://avatars.githubusercontent.com/u/1873115?v=3","gravatar_id":"","url":"https://api.github.com/users/jdeathe","html_url":"https://github.com/jdeathe","followers_url":"https://api.github.com/users/jdeathe/followers","following_url":"https://api.github.com/users/jdeathe/following{/other_user}","gists_url":"https://api.github.com/users/jdeathe/gists{/gist_id}","starred_url":"https://api.github.com/users/jdeathe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdeathe/subscriptions","organizations_url":"https://api.github.com/users/jdeathe/orgs","repos_url":"https://api.github.com/users/jdeathe/repos","events_url":"https://api.github.com/users/jdeathe/events{/privacy}","received_events_url":"https://api.github.com/users/jdeathe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jdeathe/centos-ssh/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jdeathe/centos-ssh/milestones/9","html_url":"https://github.com/jdeathe/centos-ssh/milestones/2.0.2","labels_url":"https://api.github.com/repos/jdeathe/centos-ssh/milestones/9/labels","id":1658665,"number":9,"title":"2.0.2","description":null,"creator":{"login":"jdeathe","id":1873115,"avatar_url":"https://avatars.githubusercontent.com/u/1873115?v=3","gravatar_id":"","url":"https://api.github.com/users/jdeathe","html_url":"https://github.com/jdeathe","followers_url":"https://api.github.com/users/jdeathe/followers","following_url":"https://api.github.com/users/jdeathe/following{/other_user}","gists_url":"https://api.github.com/users/jdeathe/gists{/gist_id}","starred_url":"https://api.github.com/users/jdeathe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdeathe/subscriptions","organizations_url":"https://api.github.com/users/jdeathe/orgs","repos_url":"https://api.github.com/users/jdeathe/repos","events_url":"https://api.github.com/users/jdeathe/events{/privacy}","received_events_url":"https://api.github.com/users/jdeathe/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":17,"state":"open","created_at":"2016-03-21T23:11:01Z","updated_at":"2016-05-06T10:45:39Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-05-06T10:45:39Z","updated_at":"2016-05-06T10:45:39Z","closed_at":null,"body":"- https://github.com/jdeathe/centos-ssh/blob/2.0.1/systemd-install.sh#L92\r\n\r\nCurrently using the instance number as a variable to define the external port (2020 in by default) with service file name of the form `ssh.pool-1.1.1@2020.service`. Should create a template file named something like `ssh.pool-1.1@.service` that can be used to create instance templates of the form `ssh.pool-1.1@1.service`, `ssh.pool-1.1@2.service`, `ssh.pool-1.1@3.service` etc.\r\n\r\nIt should also be possible to created local instances, (i.e. where the port number is incremented), by creating copies of the template with names of the form `ssh.pool-1.2@.service`, `ssh.pool-1.3@2.service` etc. which will use the external ports 2021 and 2022 respectively."}}