Ask Your Question

what means exec resource with only path?

asked 2015-11-27 03:36:24 -0600

karthikeayan gravatar image

updated 2015-11-27 03:36:38 -0600

I am just going through some of the Puppet modules and found something like this.

Exec { path => [ '/bin', '/usr/bin', '/sbin' ] }

Not sure what this exec without command wil do? I tried executing this by putting into manifest, didn't get any errors.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-11-27 03:39:20 -0600

karthikeayan gravatar image

sorry, missed to read complete puppet document. found this in stackoverflow

Resource types with an initial capital letter set defaults for later instances of that type.

In your example, all execs in scope will use the path, user, group, and logoutput parameters set there. File resources will similarly use the parameters set there as well.


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-11-27 03:36:24 -0600

Seen: 278 times

Last updated: Nov 27 '15