Puppet not working on Client installed through Foreman

Hello,

I have installed ubuntu by Foreman un attended installation. Puppet master
is working fine but when I run puppet on the client it is showing an error
that puppet command not found.
I have installed client on a VM and Foreman server is on Hardware server.

I have downgraded puppet server by this command "apt-get install
puppetserver=2.5.0-1puppetlabs1"

Thank you,

Hi,

Puppet is not installed on the client. I have used same thing you have
mentioned in the link. But when I see the preview for that client I cann't
see those lines.
my preseed default template consists of
<%

safemode renderer does not support unary negation

pm_set = @host.puppetmaster.empty? ? false : true
proxy_string = @host.params['http-proxy'] ? "
http://#{@host.params['http-proxy']}:#{@host.params['http-proxy-port']}" :
''
puppet_enabled = pm_set || @host.param_true?('force-puppet')
salt_enabled = @host.params['salt_master'] ? true : false
%>
Thank you.

··· On Wednesday, September 28, 2016 at 4:07:50 PM UTC+2, thrinay garrepalli wrote: > > Hello, > > I have installed ubuntu by Foreman un attended installation. Puppet master > is working fine but when I run puppet on the client it is showing an error > that puppet command not found. > I have installed client on a VM and Foreman server is on Hardware server. > > I have downgraded puppet server by this command "apt-get install > puppetserver=2.5.0-1puppetlabs1" > > Thank you, >

Is Puppet even installed on the client? Check the package list for
puppet or puppet-agent, depending on the version.

Note that newer versions may have the binaries in /opt/puppetlabs/bin/
instead, so check there. This directory should though be added to PATH
via profile scripts, through the Puppet packages.

If it isn't installed, ensure a Puppet proxy is selected on the host or
override the behaviour of the template through the "force-puppet"
parameter
(https://github.com/theforeman/community-templates/blob/develop/preseed/provision.erb#L12)
or edit it as you see fit.

··· On 28/09/16 15:06, thrinay garrepalli wrote: > Hello, > > I have installed ubuntu by Foreman un attended installation. Puppet > master is working fine but when I run puppet on the client it is showing > an error that puppet command not found. > I have installed client on a VM and Foreman server is on Hardware server.


Dominic Cleal
dominic@cleal.org

"Yeah it is there in the tasksel in the template. But not in the preview. I
guess the problem might be Puppet proxy. Where should I exactly check
Puppet proxy?"

··· On Wednesday, September 28, 2016 at 4:07:50 PM UTC+2, thrinay garrepalli wrote: > > Hello, > > I have installed ubuntu by Foreman un attended installation. Puppet master > is working fine but when I run puppet on the client it is showing an error > that puppet command not found. > I have installed client on a VM and Foreman server is on Hardware server. > > I have downgraded puppet server by this command "apt-get install > puppetserver=2.5.0-1puppetlabs1" > > Thank you, >

cant see any puppet proxy, my screenshot is

··· On Wednesday, September 28, 2016 at 4:07:50 PM UTC+2, thrinay garrepalli wrote: > > Hello, > > I have installed ubuntu by Foreman un attended installation. Puppet master > is working fine but when I run puppet on the client it is showing an error > that puppet command not found. > I have installed client on a VM and Foreman server is on Hardware server. > > I have downgraded puppet server by this command "apt-get install > puppetserver=2.5.0-1puppetlabs1" > > Thank you, >

> Hi,
>
> Puppet is not installed on the client. I have used same thing you have
> mentioned in the link. But when I see the preview for that client I
> cann't see those lines.
> my preseed default template consists of
> <%

That's perfectly correct in a preview. It's an ERB template where
everything between <% %> is code for rendering the template, not the output.

Is the Puppet package listed under tasksel (see line 134)?

It's likely that this is false:

> pm_set = @host.puppetmaster.empty? ? false : true
> puppet_enabled = pm_set || @host.param_true?('force-puppet')

Ensure you have a Puppet proxy selected on the first tab of the host.

··· On 28/09/16 15:51, thrinay garrepalli wrote:


Dominic Cleal
dominic@cleal.org

Edit the host, on the first tab, at the bottom.

··· On 29/09/16 14:31, thrinay garrepalli wrote: > "Yeah it is there in the tasksel in the template. But not in the > preview. I guess the problem might be Puppet proxy. Where should I > exactly check Puppet proxy?"


Dominic Cleal
dominic@cleal.org

The screenshot shows you're on the Puppet Classes tab, which is the
second tab. There should be a Puppet Proxy field at the bottom of the
Host tab. If not, you don't have any Puppet smart proxies registered.

If the Puppet Proxy field is missing then you will need to add the
force-puppet parameter (set it to true) under the Parameters tab to
force installation of the agent in the template, but Foreman won't be
able to configure it (including no automatic CA). Alternatively you
could set up a Puppet smart proxy, also included in the default
installation with Foreman installer.

··· On 29/09/16 15:01, thrinay garrepalli wrote: > cant see any puppet proxy, my screenshot is


Dominic Cleal
dominic@cleal.org