Puppet.agent with path

21 views
Skip to first unread message

Rafael Tomelin

unread,
Nov 28, 2018, 8:54:34 AM11/28/18
to puppet...@googlegroups.com
Hi,

How configure path in puppet.agent.

I need path = source /etc/profile . , how configuration this path?
--

Atenciosamente,

Rafael Tomelin

skype: rafael.tomelin

E-mail: rafael....@gmail.com

RHCE      - Red Hat Certified Engineer
PPT-205 - Puppet Certified Professional 2017
Zabbix    - ZABBIX Certified Specialist
LPI3 
ITIL v3

Eric Sorenson

unread,
Nov 28, 2018, 1:18:05 PM11/28/18
to Puppet Users
Sorry Rafael, I don't understand what you're asking. Can you share the puppet code that you are trying to use, and the error message you get?

--eric0

Ben Ford

unread,
Nov 29, 2018, 11:29:58 AM11/29/18
to puppet...@googlegroups.com
Rafael, if you're trying to execute scripts with a certain path, you'd provide that at the resource declaration level, like so:

exec { 'tar -xf /Volumes/nfs02/important.tar': cwd => '/var/tmp', creates => '/var/tmp/myfile', path => ['/usr/bin', '/usr/sbin',], }


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5c0f935e-c0ff-4202-b48c-79a316f69c87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rafael Tomelin

unread,
Nov 30, 2018, 7:49:59 AM11/30/18
to puppet...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages