brandonhilkert/fucking_shell_scripts

A way to pass parameters from servers/type.yml into the script

phuongnd08 opened this issue · 4 comments

I think each server type can have a set of environment variables.
When we execute it, we prefix the command with the export:
FOO1=bar1 FOO2=bar2 bash -c "#{script_name}"

I'm trying to implement it with fucking_scripts_digital_ocean right now.
The ability to pass environment variables would make it easier for people to share their fss recipes.

That makes sense. I'll be honest, I don't use this gem at all. It was really a prototype of sorts. So I'm somewhat removed from what it should do or ways to make it better.

Okay, though I still think it's really awesome idea. I've been having really shitty time with both chef and puppet.

Btw, I've just implemented the environment variables stuff inside fucking_scripts_digital_ocean: https://github.com/phuongnd08/fucking_scripts_digital_ocean/commit/9f3d19bc3cbaebbf2e746d966577472307995398

I agree. chef and puppet are hard to get started with. We've ended up on Ansible. Love the integration.