devstructure / blueprint

Reverse engineer server configuration
http://devstructure.com/
Other
2.15k stars 132 forks source link

~/.blueprintignore not respected #99

Open opie4624 opened 13 years ago

opie4624 commented 13 years ago

~/.blueprintignore contents:

:file:/etc/hosts
!:source:/opt

Yet blueprint.sh still includes:

mkdir -p "/etc"
cat >"/etc/hosts" <<EOF
127.0.0.1       localhost

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
EOF

And doesn't include a second sources entry

rcrowley commented 13 years ago

Hi @opie4624,

I've been looking into this issue and can't reproduce it. I do, however, have a couple of ideas.

First things first: make sure you're running blueprint-create as root, probably via sudo. It may fail (with a message saying as much) to grab source directories if it isn't root.

It's possible you're on a system with a version of sudo that doesn't do what I expect with regard to environment variables, particularly HOME. Could you try moving ~/.blueprintignore to /etc/blueprintignore and see if you get the same behavior? If it works that way, let me know what operating system and version you're using so I can try to do the right thing there by default.

Hope one of those helps! If not, find me in #devstructure on Freenode and let's get to the bottom of this.

pix2D commented 13 years ago

I had the same issue. Moving it to /etc/blueprintignore as suggested worked.

I'm on Debian 6 and this is happening when I'm logged in as root directly (not sure if that matters or not but thought I'd mention it).

rstacruz commented 11 years ago

I think I just observed the same problem on Ubuntu.

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS"