R
R
ramid2014-02-27 13:03:17
Puppet
ramid, 2014-02-27 13:03:17

Puppet: how to launch an application through the manifest?

I recently started to understand puppet (as well as Linux) so I'm a complete newbie. Therefore, do not swear much if you asked something very stupid.
The question is as follows: let's say I want to run the firefox browser on 10 machines, I write this short manifest:

exec {"open firefox":
      command  => "/usr/bin/firefox google.com" ,
}

I do restart of the client, and nothing. I tried to do a similar operation with creating a folder:
exec { "create_needed_directory":
    command => "/bin/mkdir -p",
}

This manifest works. Actually a question: Why?
Again, if the matter is in my meager experience with linux and we understand it. Do not throw slippers, but indicate where you can read about it.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dan Ivanov, 2014-02-27
@ptchol

You look at the log, after restarting the client, it tries to compile the manifest and apply it on the client. In case of errors, information about them will be included in the log.
Depending on the system, this might be
/var/log/messages | /var/log/daemon.log | /var/log/syslog

R
ramid, 2014-03-04
@ramid

Well, actually the error sounds like this, Error: no display specified
read various solutions to this problem, but all of them, as I understand it, are designed to run firefox in the installed graphical shell, and I need the command to simply work on the client who actually has a display

R
rionnagel, 2016-11-24
@rionnagel

puppet runs under a different user and accordingly executes programs from a different user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question