Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

how can I export a list of env variables at server startup so they can be reached system wide and without having to login with a system user ?

I've used /etc/profile to export this list of variables but I need to login each time so they can be loaded

share|improve this question
When you are not logged in, why you want a system wide variable? –  Suku Jan 11 '13 at 16:25
A puppet client will run every 30min and use those variables; so basically as soon as an ec2 get started, it will fetch the manifests from the Puppet server and use the env variables –  PapelPincel Jan 11 '13 at 16:30
Can you have the puppet client source /etc/profile? –  glenn jackman Jan 11 '13 at 16:47
sorry @glennjackman I don't get your question. Did you mean if I could load the /etc/profile from the manifest ? –  PapelPincel Jan 11 '13 at 16:50
yes. Or you could wrap the client in a shell script that sources the profile. –  glenn jackman Jan 11 '13 at 16:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.