
Afternoon I have a git repo called configurations. I want to add the directory /etc/ansible to the repo. Problem is when I clone the repo, I am not able to commit the ansible directory as the ansible root directory is outside the repo? Is there a way of getting the ansible directory into git without using a symlink? Regards, William

William Muriithi wrote:
Afternoon
I have a git repo called configurations. I want to add the directory /etc/ansible to the repo.
Problem is when I clone the repo, I am not able to commit the ansible directory as the ansible root directory is outside the repo?
Is there a way of getting the ansible directory into git without using a symlink?
No. The work tree has to existing in the same root directory and cannot be outside the repository. The only two way you could do it is with a symlink or making /etc/ansible a git repo. etckeeper[1] might be checking out as while. [1]: <https://joeyh.name/code/etckeeper/>

Why didn't i see the original post? Was it sent to GTALUG? The way I would do what you want to do is, that I would copy the current /etc/ansible to the repo's root and then symlink back. Alternatively I would make a new repo in /etc/ansible. Finally, the most hacky way (read: prone to unexpected consequences ): do a commit hook that copies / merges the /etc/ansible to <reporoot>/etc/ansible/ David On Wed, Jul 22, 2015 at 4:56 PM, Myles Braithwaite <me@mylesbraithwaite.com> wrote:
Afternoon
I have a git repo called configurations. I want to add the directory /etc/ansible to the repo.
Problem is when I clone the repo, I am not able to commit the ansible
William Muriithi wrote: directory as the ansible root directory is outside the repo?
Is there a way of getting the ansible directory into git without using a
symlink?
No. The work tree has to existing in the same root directory and cannot be outside the repository.
The only two way you could do it is with a symlink or making /etc/ansible a git repo. etckeeper[1] might be checking out as while.
[1]: <https://joeyh.name/code/etckeeper/> --- Talk Mailing List talk@gtalug.org http://gtalug.org/mailman/listinfo/talk

Hey David, Check your gmail spam folder. I thought only I had problems receiving some messages. It looks like recently (about two or three days ago) gmail started marking them as 'Spam', I got replies from Myles but not the original messages. I discover this by having another account subscribed to GTALUG that isn't on google and and it got all the messages, therefore the problem is with gmail spam detection. Also there is gtalug email archive where you can get the complete message history -- http://gtalug.org/pipermail/talk/ Alex.

Alex Volkov wrote:
Check your gmail spam folder.
I think there is an issue with Gmail's spam filter, Torvalds has been complaining about issues with Gmail sending emails from mailing lists to spam: <https://plus.google.com/+LinusTorvalds/posts/DiG9qANf5PA>.

2015-07-23 14:13 GMT-03:00 Myles Braithwaite <me@mylesbraithwaite.com>:
Alex Volkov wrote:
Check your gmail spam folder.
I think there is an issue with Gmail's spam filter, Torvalds has been complaining about issues with Gmail sending emails from mailing lists to spam: <https://plus.google.com/+LinusTorvalds/posts/DiG9qANf5PA>. ---
We all got the same problem. Already updated my filters so every message "to: talk@gtalug.org" will not go to SPAM box. Solved for me.. but gmail still needs to check this issue.

This is one of the shortfalls with DMARC and mailing lists. The only way to fix it on our end is to stop using the author's email address in the "From:" field. I don't know if there's any sort of alternative to tag emails so we actually know who they're from other than the "From:" header. You can see the issue in the headers here: Authentication-Results: mx.google.com; spf=pass (google.com: domain of talk-bounces@gtalug.org designates 2600:3c03::f03c:91ff:fe50:ea0a as permitted sender) smtp.mail=talk-bounces@gtalug.org; dkim=neutral (body hash did not verify) header.i=@gmail.com; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com I think it's worse with Yahoo email as they have the DMARC policy set to reject emails that don't pass instead of a soft fail (which means it can tag it as failed but let it through any way).

Same thing here -- I assumed it was just me. I just looked in my Spam folder, and the last two posts that I missed were there. Seems odd -- my filter had marked them as TLUG messages. Alex On Thu, Jul 23, 2015 at 12:26 PM, David Thornton <northdot9@gmail.com> wrote:
Why didn't i see the original post? Was it sent to GTALUG?
The way I would do what you want to do is, that I would copy the current /etc/ansible to the repo's root and then symlink back.
Alternatively I would make a new repo in /etc/ansible.
Finally, the most hacky way (read: prone to unexpected consequences ): do a commit hook that copies / merges the /etc/ansible to <reporoot>/etc/ansible/
David
On Wed, Jul 22, 2015 at 4:56 PM, Myles Braithwaite < me@mylesbraithwaite.com> wrote:
Afternoon
I have a git repo called configurations. I want to add the directory /etc/ansible to the repo.
Problem is when I clone the repo, I am not able to commit the ansible
William Muriithi wrote: directory as the ansible root directory is outside the repo?
Is there a way of getting the ansible directory into git without using
a symlink?
No. The work tree has to existing in the same root directory and cannot be outside the repository.
The only two way you could do it is with a symlink or making /etc/ansible a git repo. etckeeper[1] might be checking out as while.
[1]: <https://joeyh.name/code/etckeeper/> --- Talk Mailing List talk@gtalug.org http://gtalug.org/mailman/listinfo/talk
--- Talk Mailing List talk@gtalug.org http://gtalug.org/mailman/listinfo/talk
-- Alex Beamish Toronto, Ontario

On Wed, Jul 22, 2015 at 4:27 PM, William Muriithi <william.muriithi@gmail.com> wrote:
Afternoon
I have a git repo called configurations. I want to add the directory /etc/ansible to the repo.
Problem is when I clone the repo, I am not able to commit the ansible directory as the ansible root directory is outside the repo?
Is there a way of getting the ansible directory into git without using a symlink?
Would a pre-commit hook to copy the config files into your repo (before committing) do what you need? [- snippet starts -] # create or append /path/to/repo/.git/hooks/pre-commit cp -r /etc/ansible ./etc/ansible git add ./etc/ansible [- snippet ends -] If this strategy works for you, you might want to keep a copy of the pre-commit file in your repo and just symlink to it from .git/hooks - just be sure to note the pre-commit symlink in your README for other any other (or future) developers. -- Scott Elcomb @psema4 http://psema4.com/pubkey.txt http://www.pirateparty.ca/

Morning
I have a git repo called configurations. I want to add the directory /etc/ansible to the repo.
Problem is when I clone the repo, I am not able to commit the ansible directory as the ansible root directory is outside the repo?
Is there a way of getting the ansible directory into git without using a symlink?
Would a pre-commit hook to copy the config files into your repo (before committing) do what you need?
[- snippet starts -] # create or append /path/to/repo/.git/hooks/pre-commit
cp -r /etc/ansible ./etc/ansible git add ./etc/ansible
[- snippet ends -]
If this strategy works for you, you might want to keep a copy of the pre-commit file in your repo and just symlink to it from .git/hooks - just be sure to note the pre-commit symlink in your README for other any other (or future) developers. This will work for me. Tried it yesterday and its working fine. Thanks a lot guys for the various idea
Regards, William
participants (9)
-
Alex Beamish
-
Alex Volkov
-
David Thornton
-
Marcelo Cavalcante
-
Myles Braithwaite
-
Scott Elcomb
-
Stewart C. Russell
-
Tim Tisdall
-
William Muriithi