{"action":"created","comment":{"url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/pulls/comments/233380186","pull_request_review_id":174777263,"id":233380186,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzM4MDE4Ng==","diff_hunk":"@@ -0,0 +1,18 @@\n+[Unit]\n+Description=Weblogic Service for nDelius\n+After=network.target\n+\n+[Service]\n+Type=simple\n+{% if wls_service_user is defined and wls_service_user.name is defined %}\n+User={{ wls_service_user.name }}","path":"templates/weblogic.service.j2","position":8,"original_position":8,"commit_id":"a9154547aebc9b5a947cb2bd58dcd90dc616b913","original_commit_id":"a9154547aebc9b5a947cb2bd58dcd90dc616b913","user":{"login":"brettminnie","id":6124248,"node_id":"MDQ6VXNlcjYxMjQyNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/6124248?v=4","gravatar_id":"","url":"https://api.github.com/users/brettminnie","html_url":"https://github.com/brettminnie","followers_url":"https://api.github.com/users/brettminnie/followers","following_url":"https://api.github.com/users/brettminnie/following{/other_user}","gists_url":"https://api.github.com/users/brettminnie/gists{/gist_id}","starred_url":"https://api.github.com/users/brettminnie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettminnie/subscriptions","organizations_url":"https://api.github.com/users/brettminnie/orgs","repos_url":"https://api.github.com/users/brettminnie/repos","events_url":"https://api.github.com/users/brettminnie/events{/privacy}","received_events_url":"https://api.github.com/users/brettminnie/received_events","type":"User","site_admin":false},"body":"you can default the user so `User={{ wls_service_user.name|default('oracle') }}` will do the trick here","created_at":"2018-11-14T09:58:15Z","updated_at":"2018-11-14T09:58:16Z","html_url":"https://github.com/ministryofjustice/hmpps-delius-core-weblogic-installer/pull/3#discussion_r233380186","pull_request_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/pulls/3","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/pulls/comments/233380186"},"html":{"href":"https://github.com/ministryofjustice/hmpps-delius-core-weblogic-installer/pull/3#discussion_r233380186"},"pull_request":{"href":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/pulls/3","id":230523799,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNTIzNzk5","html_url":"https://github.com/ministryofjustice/hmpps-delius-core-weblogic-installer/pull/3","diff_url":"https://github.com/ministryofjustice/hmpps-delius-core-weblogic-installer/pull/3.diff","patch_url":"https://github.com/ministryofjustice/hmpps-delius-core-weblogic-installer/pull/3.patch","issue_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/issues/3","number":3,"state":"open","locked":false,"title":"Add weblogic startup script to create and enable a systemd service.","user":{"login":"chrisdaunay","id":13332675,"node_id":"MDQ6VXNlcjEzMzMyNjc1","avatar_url":"https://avatars3.githubusercontent.com/u/13332675?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisdaunay","html_url":"https://github.com/chrisdaunay","followers_url":"https://api.github.com/users/chrisdaunay/followers","following_url":"https://api.github.com/users/chrisdaunay/following{/other_user}","gists_url":"https://api.github.com/users/chrisdaunay/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdaunay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdaunay/subscriptions","organizations_url":"https://api.github.com/users/chrisdaunay/orgs","repos_url":"https://api.github.com/users/chrisdaunay/repos","events_url":"https://api.github.com/users/chrisdaunay/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdaunay/received_events","type":"User","site_admin":false},"body":"Add weblogic startup script to create and enable a systemd service.\r\nThen enable and run it using systemd through ansible. Note this requires \"root\" to install the service. The service will attempt to run as the wls set user, but will default to 'oracle' if not set.\r\n\r\nI have tested this within the hmpps-delius-core-bootstrap code, then moved it into this repository. I have attempted to use variables set in the script, but have default values in place.\r\nI have had to hard-code the root user in - not sure if there is a better variable for this, but to create the service we require root access.\r\nAlso hard-coded is the base domain directory. I couldn't find a variable to use to work out the path name, so it is set to {{ mw_home }} /user_projects/domains/NDelius\r\n","created_at":"2018-11-13T15:41:47Z","updated_at":"2018-11-14T09:58:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9bf8678739a504920a4262470245faf16cb68857","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/pulls/3/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/pulls/3/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/issues/3/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/statuses/a9154547aebc9b5a947cb2bd58dcd90dc616b913","head":{"label":"ministryofjustice:feature/weblogic-startup-systemd","ref":"feature/weblogic-startup-systemd","sha":"a9154547aebc9b5a947cb2bd58dcd90dc616b913","user":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":148647227,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg2NDcyMjc=","name":"hmpps-delius-core-weblogic-installer","full_name":"ministryofjustice/hmpps-delius-core-weblogic-installer","private":false,"owner":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ministryofjustice/hmpps-delius-core-weblogic-installer","description":"Ansible Galaxy Role to Install Weblogic into an AMI","fork":false,"url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer","forks_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/forks","keys_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/events","assignees_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/merges","archive_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/deployments","created_at":"2018-09-13T14:08:01Z","updated_at":"2018-11-13T16:10:02Z","pushed_at":"2018-11-13T15:41:48Z","git_url":"git://github.com/ministryofjustice/hmpps-delius-core-weblogic-installer.git","ssh_url":"git@github.com:ministryofjustice/hmpps-delius-core-weblogic-installer.git","clone_url":"https://github.com/ministryofjustice/hmpps-delius-core-weblogic-installer.git","svn_url":"https://github.com/ministryofjustice/hmpps-delius-core-weblogic-installer","homepage":null,"size":8,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"c8103e40fedb98672f2b4da7cb0b2b724b13ab40","user":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":148647227,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg2NDcyMjc=","name":"hmpps-delius-core-weblogic-installer","full_name":"ministryofjustice/hmpps-delius-core-weblogic-installer","private":false,"owner":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ministryofjustice/hmpps-delius-core-weblogic-installer","description":"Ansible Galaxy Role to Install Weblogic into an AMI","fork":false,"url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer","forks_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/forks","keys_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/events","assignees_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/merges","archive_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/deployments","created_at":"2018-09-13T14:08:01Z","updated_at":"2018-11-13T16:10:02Z","pushed_at":"2018-11-13T15:41:48Z","git_url":"git://github.com/ministryofjustice/hmpps-delius-core-weblogic-installer.git","ssh_url":"git@github.com:ministryofjustice/hmpps-delius-core-weblogic-installer.git","clone_url":"https://github.com/ministryofjustice/hmpps-delius-core-weblogic-installer.git","svn_url":"https://github.com/ministryofjustice/hmpps-delius-core-weblogic-installer","homepage":null,"size":8,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/pulls/3"},"html":{"href":"https://github.com/ministryofjustice/hmpps-delius-core-weblogic-installer/pull/3"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/issues/3"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/hmpps-delius-core-weblogic-installer/statuses/a9154547aebc9b5a947cb2bd58dcd90dc616b913"}},"author_association":"NONE"}}
{"actor":{"display_login":"brettminnie"}}