{"action":"created","issue":{"url":"https://api.github.com/repos/firehol/netdata/issues/798","repository_url":"https://api.github.com/repos/firehol/netdata","labels_url":"https://api.github.com/repos/firehol/netdata/issues/798/labels{/name}","comments_url":"https://api.github.com/repos/firehol/netdata/issues/798/comments","events_url":"https://api.github.com/repos/firehol/netdata/issues/798/events","html_url":"https://github.com/firehol/netdata/issues/798","id":171846288,"number":798,"title":"Configuration management files (Chef, Puppet, Saltstack, Ansible, etc)","user":{"login":"saivert","id":63738,"avatar_url":"https://avatars.githubusercontent.com/u/63738?v=3","gravatar_id":"","url":"https://api.github.com/users/saivert","html_url":"https://github.com/saivert","followers_url":"https://api.github.com/users/saivert/followers","following_url":"https://api.github.com/users/saivert/following{/other_user}","gists_url":"https://api.github.com/users/saivert/gists{/gist_id}","starred_url":"https://api.github.com/users/saivert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saivert/subscriptions","organizations_url":"https://api.github.com/users/saivert/orgs","repos_url":"https://api.github.com/users/saivert/repos","events_url":"https://api.github.com/users/saivert/events{/privacy}","received_events_url":"https://api.github.com/users/saivert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/firehol/netdata/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/firehol/netdata/labels/packaging","name":"packaging","color":"f9d0c4"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-08-18T08:34:06Z","updated_at":"2016-10-04T22:26:57Z","closed_at":null,"body":"We need a collection of files for automating the installation of netdata.\r\n\r\nI bring you one for Saltstack, it might not be perfect but at least it ran on Debian.\r\n```\r\npkg_autoconf:\r\n  pkg.installed:\r\n  {% if grains['os'] == 'Gentoo'%}\r\n    - name: sys-devel/autoconf\r\n  {% else %}\r\n    - name: autoconf\r\n  {% endif %}\r\n\r\npkg_autoconf_archive:\r\n  pkg.installed:\r\n  {% if grains['os'] == 'Gentoo'%}\r\n    - name: sys-devel/autoconf-archive\r\n  {% else %}\r\n    - name: autoconf-archive\r\n  {% endif %}\r\n\r\npkg_autogen:\r\n  pkg.installed:\r\n  {% if grains['os'] == 'Gentoo'%}\r\n    - name: sys-devel/autogen\r\n  {% else %}\r\n    - name: autogen\r\n  {% endif %}\r\n\r\npkg_automake:\r\n  pkg.installed:\r\n  {% if grains['os'] == 'Gentoo'%}\r\n    - name: sys-devel/automake\r\n  {% else %}\r\n    - name: automake\r\n  {% endif %}\r\n\r\npkg_curl:\r\n  pkg.installed:\r\n  {% if grains['os'] == 'Gentoo'%}\r\n    - name: net-misc/curl\r\n  {% else %}\r\n    - name: curl\r\n  {% endif %}\r\n\r\npkg_git:\r\n  pkg.installed:\r\n  {% if grains['os'] == 'Gentoo'%}\r\n    - name: dev-vcs/git\r\n  {% else %}\r\n    - name: git\r\n  {% endif %}\r\n\r\npkg_gcc:\r\n  pkg.installed:\r\n  {% if grains['os'] == 'Gentoo'%}\r\n    - name: sys-devel/gcc\r\n  {% else %}\r\n    - name: gcc\r\n  {% endif %}\r\n\r\npkg_iproute2:\r\n  pkg.installed:\r\n  {% if grains['os'] == 'Debian'%}\r\n    - name: iproute2\r\n  {% elif grains['os'] == 'Gentoo'%}\r\n    - name: sys-apps/iproute2\r\n  {% elif grains['os'] == 'Ubuntu' and grains['osrelease'] == '12.04' %}\r\n    - name: iproute\r\n  {% else %}\r\n    - name: iproute\r\n  {% endif %}\r\n\r\npkg_libz_dev:\r\n  pkg.installed:\r\n  {% if grains['os'] == 'Arch'%}\r\n    - name: zlib\r\n  {% elif grains['os'] == 'Debian'%}\r\n    - name: zlib1g-dev\r\n  {% elif grains['os'] == 'Gentoo'%}\r\n    - name: sys-libs/zlib\r\n  {% elif grains['os'] in ['CentOS', 'RedHat', 'Suse'] %}\r\n    - name: zlib-devel\r\n  {% else %}\r\n    {% 'Do not know how to install this package' %}\r\n  {% endif %}\r\n\r\npkg_libuuid_dev:\r\n  pkg.installed:\r\n  {% if grains['os'] == 'Arch'%}\r\n    - name: util-linux\r\n  {% elif grains['os'] == 'Debian'%}\r\n    - name: uuid-dev\r\n  {% elif grains['os'] == 'Gentoo'%}\r\n    - name: sys-apps/util-linux\r\n  {% elif grains['os'] in ['CentOS', 'RedHat', 'Suse'] %}\r\n    - name: libuuid-devel\r\n  {% else %}\r\n    {% 'Do not know how to install this package' %}\r\n  {% endif %}\r\n\r\npkg_libmnl_dev:\r\n  pkg.installed:\r\n  {% if grains['os'] == 'Arch'%}\r\n    - name: libmnl\r\n  {% elif grains['os'] == 'Debian'%}\r\n    - name: libmnl-dev\r\n  {% elif grains['os'] == 'Gentoo'%}\r\n    - name: net-libs/libmnl\r\n  {% elif grains['os'] in ['CentOS', 'RedHat'] %}\r\n    - name: libmnl-devel\r\n  {% elif grains['os'] == 'Suse' %}\r\n    - name: libmnl0\r\n  {% else %}\r\n    {% 'Do not know how to install this package' %}\r\n  {% endif %}\r\n\r\n\r\npkg_make:\r\n  pkg.installed:\r\n  {% if grains['os'] == 'Gentoo'%}\r\n    - name: sys-devel/make\r\n  {% else %}\r\n    - name: make\r\n  {% endif %}\r\n\r\n\r\npkg_netcat:\r\n  pkg.installed:\r\n  {% if grains['os'] == 'Arch'%}\r\n    - name: netcat\r\n  {% elif grains['os'] == 'Debian'%}\r\n    - name: netcat\r\n  {% elif grains['os'] == 'Gentoo'%}\r\n    - name: net-analyzer/netcat\r\n  {% elif grains['os'] in ['CentOS', 'RedHat'] %}\r\n    - name: nmap-ncat\r\n  {% elif grains['os'] == 'Suse' %}\r\n    - name: netcat-openbsd\r\n  {% else %}\r\n    - name: netcat\r\n  {% endif %}\r\n\r\n\r\npkg_pkg_config:\r\n  pkg.installed:\r\n  {% if grains['os'] == 'Arch'%}\r\n    - name: pkgconfig\r\n  {% elif grains['os'] == 'Debian'%}\r\n    - name: pkg-config\r\n  {% elif grains['os'] == 'Gentoo'%}\r\n    - name: dev-util/pkgconfig\r\n  {% elif grains['os'] in ['CentOS', 'RedHat'] %}\r\n    - name: pkgconfig\r\n  {% elif grains['os'] == 'Suse' %}\r\n    - name: pkg-config\r\n  {% else %}\r\n    - name: pkg-config\r\n  {% endif %}\r\n\r\n\r\n\r\nnetdatarepo:\r\n  git.latest:\r\n    - name: https://github.com/firehol/netdata.git\r\n    - depth: 1\r\n    - target: /root/netdatagit\r\n    - force_reset: True\r\n\r\nnetdatainstall:\r\n  require:\r\n    - git: netdatarepo\r\n    - pkg: pkg_git\r\n    - pkg: pkg_gcc\r\n    - pkg: pkg_make\r\n    - pkg: pkg_autoconf\r\n    - pkg: pkg_autogen\r\n    - pkg: pkg_automake\r\n    - pkg: pkg_pkg_config\r\n  cmd.run:\r\n    - cwd: /root/netdatagit\r\n    - name: ./netdata-installer.sh\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/firehol/netdata/issues/comments/251531972","html_url":"https://github.com/firehol/netdata/issues/798#issuecomment-251531972","issue_url":"https://api.github.com/repos/firehol/netdata/issues/798","id":251531972,"user":{"login":"jffz","id":8946360,"avatar_url":"https://avatars.githubusercontent.com/u/8946360?v=3","gravatar_id":"","url":"https://api.github.com/users/jffz","html_url":"https://github.com/jffz","followers_url":"https://api.github.com/users/jffz/followers","following_url":"https://api.github.com/users/jffz/following{/other_user}","gists_url":"https://api.github.com/users/jffz/gists{/gist_id}","starred_url":"https://api.github.com/users/jffz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jffz/subscriptions","organizations_url":"https://api.github.com/users/jffz/orgs","repos_url":"https://api.github.com/users/jffz/repos","events_url":"https://api.github.com/users/jffz/events{/privacy}","received_events_url":"https://api.github.com/users/jffz/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T22:26:57Z","updated_at":"2016-10-04T22:26:57Z","body":"No problem, you are welcome to join.\n\nLe 5 oct. 2016 00:14, \"Sam Oehlert\" <notifications@github.com> a écrit :\n\n> Creating a totally different project seems silly, so I will fork yours,\n> make some of the changes I had and do a PR. Feel free to ignore (a few of\n> them are just preferences), or accept (some of them are improvements on\n> idempotency).\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/firehol/netdata/issues/798#issuecomment-251529444>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AIiCuEFJyS18zME6Af9-YoeQWoUbCamxks5qws_ZgaJpZM4JnQTj>\n> .\n>\n"}}
{"actor":{"display_login":"jffz"}}