Closed xserrat closed 5 years ago
Hi @xserrat!
Firstly, thanks a lot for your suggestion, we really appreciate it and it has made us think about how we can evolve this little project 😊
You're completely right about the need of finding some way to parametrize some configuration such as:
.gitconfig
clone
in order to be able to create symlinks to its bin/
directory while modifying the $PATH
Brewfile
should be customizable and taken into account while copying the preferencesHaving that into account, we're not sure about Ansible being the best tool for the job. Concerns about it (please, correct me if I'm wrong in any of these assumptions):
So in conclusion, we would prefer to automate it with something simpler. Maybe just a bash script which:
config.env
file at the project root (ignored in Git by default by a .gitignore
entry)config.env.dist
file, and generate the final config.env
with the specified values (these config parameters would be the ones specified in the begining of this comment)config.env
generated, it would only have to set them as environment variables, and execute the install tasksWhat do you think about the script? Would you dare to give it a try in a PR? 😬
This is the best gif I found to say "We need you" in a funny and subliminal way 😬
Thank you @JavierCane for your answer 😬
You're totally right about it.
The need to have Ansible installed and the complexity at the beginning are good reasons to use an alternative way to do it. I've suggested Ansible because when you know how it works (a little bit), it's really easy to create a configuration script without too much effort (thanks to the modules and other stuff).
But it's true that an end user just wants to change some parameters in an easy way, and if the project is as simple as possible, the satisfaction will be better 🥳
So, I'm going to try to create a bash script to do it (I'm not an experienced bash programmer but it's a nice way to learn! 🤓).
Thanks again! 👏👏
That's awesome!!! 😬😬😬
I'll close this issue regarding the Ansible proposal. Free free to open the PR whenever you consider 🙂🤘
Hi @JavierCane and @rgomezcasas,
I've found an Ansible playbook that makes something similar and it could be a way to take advantage of Ansible to provision any machine.
The main repository is this one: https://github.com/geerlingguy/mac-dev-playbook. But this repository uses some roles created by the same author:
I hope it can be useful!