{"action":"created","issue":{"url":"https://api.github.com/repos/wireload/screenly-ose/issues/368","repository_url":"https://api.github.com/repos/wireload/screenly-ose","labels_url":"https://api.github.com/repos/wireload/screenly-ose/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/wireload/screenly-ose/issues/368/comments","events_url":"https://api.github.com/repos/wireload/screenly-ose/issues/368/events","html_url":"https://github.com/wireload/screenly-ose/pull/368","id":141568265,"number":368,"title":"migrate to ansible & systemd","user":{"login":"over64","id":2621273,"avatar_url":"https://avatars.githubusercontent.com/u/2621273?v=3","gravatar_id":"","url":"https://api.github.com/users/over64","html_url":"https://github.com/over64","followers_url":"https://api.github.com/users/over64/followers","following_url":"https://api.github.com/users/over64/following{/other_user}","gists_url":"https://api.github.com/users/over64/gists{/gist_id}","starred_url":"https://api.github.com/users/over64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/over64/subscriptions","organizations_url":"https://api.github.com/users/over64/orgs","repos_url":"https://api.github.com/users/over64/repos","events_url":"https://api.github.com/users/over64/events{/privacy}","received_events_url":"https://api.github.com/users/over64/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-17T12:25:56Z","updated_at":"2016-04-07T11:06:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wireload/screenly-ose/pulls/368","html_url":"https://github.com/wireload/screenly-ose/pull/368","diff_url":"https://github.com/wireload/screenly-ose/pull/368.diff","patch_url":"https://github.com/wireload/screenly-ose/pull/368.patch"},"body":"1. Install.sh - bootstrap script for \r\n  - install ansible\r\n  - check out latest screenly sources\r\n  - run ansible\r\n2. Install.sh should NEVER EVER be modified\r\n3. Use install.sh for ALL - for installation and for upgrade. This is possible with Ansible.\r\n\r\nInstall.sh run's ansible playbooks. Now it make like this:\r\n\r\n1. system.yml - keep system environment: systemd and other software like xserver and matchbox \r\n  - install systemd\r\n  - make systemd as init (required for debian wheezy)\r\n  - other preparations migrated from install.sh\r\n\r\n2. screenly.yml - keep screenly-related system state\r\n  - copy default config's\r\n  - run migrations\r\n  - enable systemd unit\r\n\r\nSystemd issues:\r\nOn wheezy (on first installation / migration) screenly.yml playbook  fails on 'systemctl enable xxx.service' because we are doing this on machine booted on sysv init. BUT - it works! Systemctl enable should just make symlink and it make's and fails after that on machine, booted on sysv. It seems that we must write some good message for this.\r\n\r\nSystemd goodies:\r\n\r\n1. It's really fast!\r\n2. There is no supervisor and wierd initialization\r\n3. Easy log management e.g. journalctl -u screenly-web.service\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"35\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/wireload/screenly-ose/368)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/wireload/screenly-ose/issues/comments/206818695","html_url":"https://github.com/wireload/screenly-ose/pull/368#issuecomment-206818695","issue_url":"https://api.github.com/repos/wireload/screenly-ose/issues/368","id":206818695,"user":{"login":"over64","id":2621273,"avatar_url":"https://avatars.githubusercontent.com/u/2621273?v=3","gravatar_id":"","url":"https://api.github.com/users/over64","html_url":"https://github.com/over64","followers_url":"https://api.github.com/users/over64/followers","following_url":"https://api.github.com/users/over64/following{/other_user}","gists_url":"https://api.github.com/users/over64/gists{/gist_id}","starred_url":"https://api.github.com/users/over64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/over64/subscriptions","organizations_url":"https://api.github.com/users/over64/orgs","repos_url":"https://api.github.com/users/over64/repos","events_url":"https://api.github.com/users/over64/events{/privacy}","received_events_url":"https://api.github.com/users/over64/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T11:06:01Z","updated_at":"2016-04-07T11:06:01Z","body":"\n\n\n\n\n\n\n\n*[misc/install.sh, line 6 \\[r1\\]](https://reviewable.io:443/reviews/wireload/screenly-ose/368#-KD3XXda0KDRErpqDtcb-r1-6:-KEkOK3ZFeyr-EmwtCHE:-1065841557) ([raw file](https://github.com/wireload/screenly-ose/blob/4e97659206b0fe1dbd0c1a6870cf7b9fa7c4b84d/misc/install.sh#L6)):*\nmake optional args: repo, version for install.sh.  Now It's ultra usable even for development via pull requests\n\n---\n\n\n*Comments from [Reviewable](https://reviewable.io:443/reviews/wireload/screenly-ose/368)*\n<!-- Sent from Reviewable.io -->\n"}}