How can i write a Puppet manifest for exporting 2 variables:
export REDISTOGO_URL=redis://192.168.3.4:6379
export PATH=$PATH:/home/vagrant/appname/vendor/bundle/bin/
Any suggestion?
Thank you.
How can i write a Puppet manifest for exporting 2 variables:
export REDISTOGO_URL=redis://192.168.3.4:6379
export PATH=$PATH:/home/vagrant/appname/vendor/bundle/bin/
Any suggestion?
Thank you.
Assuming that you are utilizing a linux platform, you can use the answer from this question:
The answer to that question suggests using a puppet file resource on an /etc/profile.d script:
file { "/etc/profile.d/my_test.sh"
content => "
export REDISTOGO_URL=redis://192.168.3.4:6379
export PATH=$PATH:/home/vagrant/appname/vendor/bundle/bin/
"
}