Puppet Server install basic problems

196 views
Skip to first unread message

Sarsa-JP

unread,
Aug 16, 2015, 5:38:18 PM8/16/15
to Puppet Users
Guys,

First, I'm sorry for the basic question. I'm just starting on Puppet.

I've been trying to install Puppet Server following this guide: http://docs.puppetlabs.com/puppetserver/2.1/install_from_packages.html but I think I ran out of luck.
I could set everything up and the installation seems to finish well and I ended up with the service running. However, every time I run the command to set the certificates and start serving my nodes, I get a message "command not found".

The command is:  puppetserver --verbose --no-daemonize

Is that correct? Even running the command puppetserver alone, it doesn't work.

I'm running puppet on Ubuntu LTS 14.03 and 14.02, and have even tried CentOS7, all with the same output.

I came from the Learning VM, which made things look pretty easy, but I feel like I have a lot to catch up, and I couldn't find a place to get help.

Can you please advise?

Cheers.


Christopher Wood

unread,
Aug 16, 2015, 6:40:49 PM8/16/15
to puppet...@googlegroups.com
On Sun, Aug 16, 2015 at 08:19:10AM -0700, Sarsa-JP wrote:
> Guys,
>
> First, I'm sorry for the basic question. I'm just starting on Puppet.
>
> I've been trying to install Puppet Server following this guide:
> http://docs.puppetlabs.com/puppetserver/2.1/install_from_packages.html but
> I think I ran out of luck.
> I could set everything up and the installation seems to finish well and I
> ended up with the service running. However, every time I run the command
> to set the certificates and start serving my nodes, I get a message
> "command not found".
>
> The command is:  puppetserver --verbose --no-daemonize

The document specifies to use "service puppetserver start". That likely sets up your certs on initial startup, check under /etc/puppetlabs/puppet/ssl.

> Is that correct? Even running the command puppetserver alone, it doesn't
> work.

You'd have to specify error output to narrow down "doesn't work". I see that a shell script is installed at/opt/puppetlabs/bin/puppetserver, so it looks like the 'puppetserver' command just isn't in your $PATH environment variable, for starteres.

> I'm running puppet on Ubuntu LTS 14.03 and 14.02, and have even tried
> CentOS7, all with the same output.
>
> I came from the Learning VM, which made things look pretty easy, but I
> feel like I have a lot to catch up, and I couldn't find a place to get
> help.
>
> Can you please advise?
>
> Cheers.
>
> --
> 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 [1]puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> [2]https://groups.google.com/d/msgid/puppet-users/59b08eee-dc8c-46b7-86dd-34073050f101%40googlegroups.com.
> For more options, visit [3]https://groups.google.com/d/optout.
>
> References
>
> Visible links
> 1. mailto:puppet-users...@googlegroups.com
> 2. https://groups.google.com/d/msgid/puppet-users/59b08eee-dc8c-46b7-86dd-34073050f101%40googlegroups.com?utm_medium=email&utm_source=footer
> 3. https://groups.google.com/d/optout

Rich Burroughs

unread,
Aug 16, 2015, 6:47:34 PM8/16/15
to puppet...@googlegroups.com
Yeah you should add /opt/puppetlabs/bin to your shell's PATH or run it with the full path.


Rich
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/20150816224151.GB14045%40iniquitous.heresiarch.ca.
For more options, visit https://groups.google.com/d/optout.

Sarsa-JP

unread,
Aug 16, 2015, 7:03:41 PM8/16/15
to Puppet Users, christop...@pobox.com
Thanks Christopher. I'll start checking my environments variables, because what is odd is that I've installed puppetserver in a fresh new machine, I'd expect that all needed to run puppetserver is done after the installation.

Soon as I get to the office I will reply back with more details.

cheers

Christopher Wood

unread,
Aug 16, 2015, 7:13:27 PM8/16/15
to puppet...@googlegroups.com
On Sun, Aug 16, 2015 at 04:03:41PM -0700, Sarsa-JP wrote:
> Thanks Christopher. I'll start checking my environments variables, because
> what is odd is that I've installed puppetserver in a fresh new machine,
> I'd expect that all needed to run puppetserver is done after the
> installation.

I'd expect that vendors stay out of my shell configuration, personally. Considering how you may have locally modified your $HOME/.profile and similar files, it might violently break your server for the puppetserver installation to attempt modifying them.

> Soon as I get to the office I will reply back with more details.
>
> cheers
>
> On Monday, August 17, 2015 at 7:40:49 AM UTC+9, Christopher Wood wrote:
>
> On Sun, Aug 16, 2015 at 08:19:10AM -0700, Sarsa-JP wrote:
> >    Guys,
> >
> >    First, I'm sorry for the basic question. I'm just starting on
> Puppet.
> >
> >    I've been trying to install Puppet Server following this guide:
> >  
>  [1]http://docs.puppetlabs.com/puppetserver/2.1/install_from_packages.html
> >    email to [1][2]puppet-users...@googlegroups.com.
> >    To view this discussion on the web visit
> >  
>  [2][3]https://groups.google.com/d/msgid/puppet-users/59b08eee-dc8c-46b7-86dd-34073050f101%40googlegroups.com.
> >    For more options, visit [3][4]https://groups.google.com/d/optout.
> >
> > References
> >
> >    Visible links
> >    1. mailto:[5]puppet-users...@googlegroups.com
> >    2.
> [6]https://groups.google.com/d/msgid/puppet-users/59b08eee-dc8c-46b7-86dd-34073050f101%40googlegroups.com?utm_medium=email&utm_source=footer
> >    3. [7]https://groups.google.com/d/optout
>
> --
> 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 [8]puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> [9]https://groups.google.com/d/msgid/puppet-users/bcd15d57-68e8-4a13-9bd1-9f35e1a19c85%40googlegroups.com.
> For more options, visit [10]https://groups.google.com/d/optout.
>
> References
>
> Visible links
> 1. http://docs.puppetlabs.com/puppetserver/2.1/install_from_packages.html
> 2. javascript:
> 3. https://groups.google.com/d/msgid/puppet-users/59b08eee-dc8c-46b7-86dd-34073050f101%40googlegroups.com
> 4. https://groups.google.com/d/optout
> 5. javascript:
> 6. https://groups.google.com/d/msgid/puppet-users/59b08eee-dc8c-46b7-86dd-34073050f101%40googlegroups.com?utm_medium=email&utm_source=footer
> 7. https://groups.google.com/d/optout
> 8. mailto:puppet-users...@googlegroups.com
> 9. https://groups.google.com/d/msgid/puppet-users/bcd15d57-68e8-4a13-9bd1-9f35e1a19c85%40googlegroups.com?utm_medium=email&utm_source=footer
> 10. https://groups.google.com/d/optout

Sarsa-JP

unread,
Aug 17, 2015, 6:12:03 AM8/17/15
to Puppet Users, christop...@pobox.com
Thank you guys! You were right. My environment variables needed to be set and now I can run the commands. I've added
"/opt/puppetlabs/bin:/opt/puppetlabs/puppet/bin"
to /etc/environment on $PATH.

And Christopher, about below, I think you are more than right. Maybe I missed a line or two about the variables on documentation.

I'd expect that vendors stay out of my shell configuration, personally. Considering how you may have locally modified your $HOME/.profile and similar files, it might violently break your server for the puppetserver installation to attempt modifying them.

Cheers!
>      >    1. mailto:[5]puppet-users+unsub...@googlegroups.com
>      >    2.
>      [6]https://groups.google.com/d/msgid/puppet-users/59b08eee-dc8c-46b7-86dd-34073050f101%40googlegroups.com?utm_medium=email&utm_source=footer
>      >    3. [7]https://groups.google.com/d/optout
>
>    --
>    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 [8]puppet-users...@googlegroups.com.
>    To view this discussion on the web visit
>    [9]https://groups.google.com/d/msgid/puppet-users/bcd15d57-68e8-4a13-9bd1-9f35e1a19c85%40googlegroups.com.
>    For more options, visit [10]https://groups.google.com/d/optout.
>
> References
>
>    Visible links
>    1. http://docs.puppetlabs.com/puppetserver/2.1/install_from_packages.html
>    2. javascript:
>    3. https://groups.google.com/d/msgid/puppet-users/59b08eee-dc8c-46b7-86dd-34073050f101%40googlegroups.com
>    4. https://groups.google.com/d/optout
>    5. javascript:
>    6. https://groups.google.com/d/msgid/puppet-users/59b08eee-dc8c-46b7-86dd-34073050f101%40googlegroups.com?utm_medium=email&utm_source=footer
>    7. https://groups.google.com/d/optout

Martijn

unread,
Aug 17, 2015, 8:31:01 AM8/17/15
to Puppet Users, christop...@pobox.com
Op maandag 17 augustus 2015 01:13:27 UTC+2 schreef Christopher Wood:
On Sun, Aug 16, 2015 at 04:03:41PM -0700, Sarsa-JP wrote:
>    Thanks Christopher. I'll start checking my environments variables, because
>    what is odd is that I've installed puppetserver in a fresh new machine,
>    I'd expect that all needed to run puppetserver is done after the
>    installation.

I'd expect that vendors stay out of my shell configuration, personally. Considering how you may have locally modified your $HOME/.profile and similar files, it might violently break your server for the puppetserver installation to attempt modifying them.


Agreed, but I'd expect symlinks to the relevant commands to have at least been created in /usr/bin. This bit me as well. Installing the Puppetlabs packages should lead to a working configuration. If that's not possible the user should be notified. I hope Puppetlabs will someday resolve this.

Regards, Martijn
Reply all
Reply to author
Forward
0 new messages