-
Notifications
You must be signed in to change notification settings - Fork 813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packaging clean-up + SSL warning in http_check #778
Changes from 13 commits
be8866c
55a7351
27c081f
8cc4c0a
6efed09
f47df31
01a88e9
320bc8e
322c0cc
a07a7f4
3c4f78d
1833efd
3cd3973
f33a586
a5ff622
e3fc113
01677c2
3097e7a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,5 @@ stats.dat | |
conf.d/*.yaml | ||
!conf.d/network.yaml | ||
packaging/build/ | ||
packaging/root/ | ||
packaging/root/ | ||
.vagrant/* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | ||
VAGRANTFILE_API_VERSION = "2" | ||
|
||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | ||
# All Vagrant configuration is done here. The most common configuration | ||
# options are documented and commented below. For a complete reference, | ||
# please see the online documentation at vagrantup.com. | ||
|
||
# Debian 7 box | ||
config.vm.define "debian" do |deb| | ||
deb.vm.box = "debagent" | ||
deb.vm.box_url = "https://dl.dropboxusercontent.com/s/xymcvez85i29lym/vagrant-debian-wheezy64.box" | ||
deb.vm.synced_folder ".", "/src" | ||
deb.vm.provider :virtualbox do |vb| | ||
# Use VBoxManage to customize the VM. For example to change memory: | ||
vb.customize ["modifyvm", :id, "--memory", "512"] | ||
end | ||
|
||
# Manual set-up | ||
deb.vm.provision "shell", inline: "sudo apt-get update" | ||
deb.vm.provision "shell", inline: "sudo apt-get -y install ruby" | ||
deb.vm.provision "shell", inline: "sudo apt-get -y install ruby-dev" | ||
deb.vm.provision "shell", inline: "sudo apt-get -y install python" | ||
deb.vm.provision "shell", inline: "sudo gem install --no-ri --no-rdoc fpm" | ||
end | ||
|
||
# Centos 6 box | ||
config.vm.define "redhat" do |rh| | ||
rh.vm.box = "rhagent" | ||
rh.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.1/centos65-x86_64-20131205.box" | ||
rh.vm.synced_folder ".", "/src" | ||
rh.vm.provider :virtualbox do |vb| | ||
# Use VBoxManage to customize the VM. For example to change memory: | ||
vb.customize ["modifyvm", :id, "--memory", "512"] | ||
end | ||
|
||
# Manual set-up | ||
rh.vm.provision "shell", inline: "sudo yum -y update" | ||
rh.vm.provision "shell", inline: "sudo yum -y install ruby" | ||
rh.vm.provision "shell", inline: "sudo yum -y install ruby-devel" | ||
rh.vm.provision "shell", inline: "sudo yum -y install rubygems" | ||
rh.vm.provision "shell", inline: "sudo gem install --no-ri --no-rdoc fpm" | ||
rh.vm.provision "shell", inline: "sudo yum -y localinstall http://yum.datadoghq.com/rpm/supervisor-3.0-0.5.a10.el6.noarch.rpm" | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
getent passwd dd-agent > /dev/null && userdel dd-agent | ||
getent group dd-agent >/dev/null && groupdel dd-agent | ||
exit 0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
getent group dd-agent >/dev/null || groupadd -r dd-agent | ||
getent passwd dd-agent >/dev/null || \ | ||
useradd -r -M -g dd-agent -d /tmp -s /bin/sh \ | ||
useradd -r -M -g dd-agent -d /tmp -s /bin/false \ | ||
-c "Datadog Agent" dd-agent | ||
exit 0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ set -e | |
|
||
if [ "$1" = purge ]; then | ||
update-rc.d datadog-agent remove | ||
deluser dd-agent | ||
fi | ||
|
||
exit 0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
getent passwd dd-agent >/dev/null && userdel dd-agent | ||
getent group dd-agent >/dev/null && groupdel dd-agent | ||
exit 0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
getent group dd-agent >/dev/null || groupadd -r dd-agent | ||
getent passwd dd-agent >/dev/null || \ | ||
useradd -r -M -g dd-agent -d /tmp -s /bin/sh \ | ||
useradd -r -M -g dd-agent -d /tmp -s /bin/false \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By the way, Can't we use a system account instead without home directory ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To be clearer it would mean creating the user using:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense. The least amount of changes we apply, the easier it is.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not even sure we need -d /dev/null as according to the documentation -r creates a system account with a UID less than 500 and without a home directory http://www.centos.org/docs/5/html/5.2/Deployment_Guide/s2-users-add.html There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Turns out -r still populates the home directory field in /etc/passwd so we On Tue, Dec 31, 2013 at 11:16 AM, Remi Hakim notifications@github.comwrote:
|
||
-c "Datadog Agent" dd-agent | ||
|
||
grep -q "datadog" /etc/supervisord.conf | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove that file from your PR ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can but bear in mind that this is caused by
vagrant init
.