{"action":"created","issue":{"url":"https://api.github.com/repos/REANNZ/faucet/issues/337","repository_url":"https://api.github.com/repos/REANNZ/faucet","labels_url":"https://api.github.com/repos/REANNZ/faucet/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/REANNZ/faucet/issues/337/comments","events_url":"https://api.github.com/repos/REANNZ/faucet/issues/337/events","html_url":"https://github.com/REANNZ/faucet/issues/337","id":198610185,"number":337,"title":"Python PIP package shouldn't install junk into /etc/ryu/faucet/","user":{"login":"gizmoguy","id":383287,"avatar_url":"https://avatars.githubusercontent.com/u/383287?v=3","gravatar_id":"","url":"https://api.github.com/users/gizmoguy","html_url":"https://github.com/gizmoguy","followers_url":"https://api.github.com/users/gizmoguy/followers","following_url":"https://api.github.com/users/gizmoguy/following{/other_user}","gists_url":"https://api.github.com/users/gizmoguy/gists{/gist_id}","starred_url":"https://api.github.com/users/gizmoguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gizmoguy/subscriptions","organizations_url":"https://api.github.com/users/gizmoguy/orgs","repos_url":"https://api.github.com/users/gizmoguy/repos","events_url":"https://api.github.com/users/gizmoguy/events{/privacy}","received_events_url":"https://api.github.com/users/gizmoguy/received_events","type":"User","site_admin":false},"labels":[{"id":264826399,"url":"https://api.github.com/repos/REANNZ/faucet/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-01-04T01:20:29Z","updated_at":"2017-01-04T02:04:10Z","closed_at":null,"body":"At the moment when you pip install ryu-faucet you get a lot of files in the config directory /etc/ryu/faucet/:\r\n\r\n> ubuntu@faucet:~/faucet$ ls /etc/ryu/faucet/\r\n> faucet_demo_step1.yaml  faucet_demo_step2.yaml  faucet_demo_step3.yaml  faucet_Lagopus.yaml  faucet_ovs.yaml  faucet.yaml  faucet_ZodiacFX.yaml  gauge.yaml\r\n\r\nAnd unfortunately faucet.yaml and gauge.yaml are installed as data files (which means when you pip uninstall ryu-faucet these files will be deleted as well even if they have user changes).\r\n\r\nI propose we install a /etc/ryu/faucet/faucet.yaml-dist and /etc/ryu/faucet/gauge.yaml-dist which are fully featured configuration examples which users can copy into the appropriate file names and make their changes so that PIP doesn't step on your toes and delete them.\r\n\r\nAnother solution may also be to flag them as configuration files that PIP will assume that user changes will be made to these files and it won't delete them. I know you can do that with DEB files but I'm not familiar enough with PIP to know if the same concept exists?"},"comment":{"url":"https://api.github.com/repos/REANNZ/faucet/issues/comments/270277873","html_url":"https://github.com/REANNZ/faucet/issues/337#issuecomment-270277873","issue_url":"https://api.github.com/repos/REANNZ/faucet/issues/337","id":270277873,"user":{"login":"shivarammysore","id":1679347,"avatar_url":"https://avatars.githubusercontent.com/u/1679347?v=3","gravatar_id":"","url":"https://api.github.com/users/shivarammysore","html_url":"https://github.com/shivarammysore","followers_url":"https://api.github.com/users/shivarammysore/followers","following_url":"https://api.github.com/users/shivarammysore/following{/other_user}","gists_url":"https://api.github.com/users/shivarammysore/gists{/gist_id}","starred_url":"https://api.github.com/users/shivarammysore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivarammysore/subscriptions","organizations_url":"https://api.github.com/users/shivarammysore/orgs","repos_url":"https://api.github.com/users/shivarammysore/repos","events_url":"https://api.github.com/users/shivarammysore/events{/privacy}","received_events_url":"https://api.github.com/users/shivarammysore/received_events","type":"User","site_admin":false},"created_at":"2017-01-04T02:04:09Z","updated_at":"2017-01-04T02:04:09Z","body":"Can we do a YAML scheme for faucet.yaml and this will enable us/users to\ngenerate the yaml files lot more easily?  Maybe this can eliminate the\nexample files so that we can just change the schema and generate files.\n\nOn Tue, Jan 3, 2017 at 5:50 PM, Shivaram Mysore <shivaram.mysore@gmail.com>\nwrote:\n\n> I like the examples directory idea.  If you are going to git move the\n> files, I will sync the repo and update the pip packaging for the same\n> accordingly.\n>\n> On Tue, Jan 3, 2017 at 5:47 PM, Brad Cowie <notifications@github.com>\n> wrote:\n>\n>> So how other projects handle this typically:\n>>\n>>    - We could have an /etc/ryu/faucet/examples/ directory where these\n>>    files are housed\n>>    - We could install a /usr/share/doc/ryu/faucet/examples/ (or similar)\n>>    directory where these files are housed\n>>\n>> —\n>> You are receiving this because you commented.\n>> Reply to this email directly, view it on GitHub\n>> <https://github.com/REANNZ/faucet/issues/337#issuecomment-270275741>, or mute\n>> the thread\n>> <https://github.com/notifications/unsubscribe-auth/ABmf88yY3Lzb93A3nFNjmvMvkdwMMNhHks5rOvoWgaJpZM4LaM9S>\n>> .\n>>\n>\n>\n"}}
{"actor":{"display_login":"shivarammysore"}}