Bootstrap puppet client

85 views
Skip to first unread message

aries

unread,
Feb 3, 2015, 4:50:06 AM2/3/15
to puppet...@googlegroups.com
Hi ~

I use chef knife bootstrap a new chef client. It use ssh method to login my client and run script to do any thing.

# sudo knife bootstrap $CLIENT_IP -x $USER_NAME -P $PASSWORD -d $ERB_FILE


Is there like tools for puppet ?

thanks

Aries

Joseph Karns

unread,
Feb 3, 2015, 8:37:09 AM2/3/15
to puppet...@googlegroups.com
Hello Aries:

Puppet Enterprise provides a single line command to complete the same thing. It would look something like this, "curl -k https://<puppet master fqdn>:8140/packages/current/install.bash | sudo bash"

You could add that to a cloud_init file if using AWS or add it to a kickstart file for local OS loading.

Thanks
Joey

aries

unread,
Feb 3, 2015, 8:23:15 PM2/3/15
to puppet...@googlegroups.com
Hi Joseph:

Thanks your help.  

I have a question about the command.
Who is executing the command ? Puppet server or client ?

I need execute some Puppet tools from server.  It can login client and do some script.  (client is only OS and SSH)
The Chef knife tools can do.

Thanks
Aries

aries於 2015年2月3日星期二 UTC+8下午5時50分06秒寫道:

Joseph Karns

unread,
Feb 4, 2015, 2:48:01 PM2/4/15
to puppet...@googlegroups.com
Hello Aries:

The root user would execute this or standard user using sudo.

This also depends on how its run. If ran during a Kickstart it would be run by the root user.
If you setup the machine, then ssh into the server, it would be run by your user you ssh'd into the box with. If that is the case, you might want to run the command with sudo privileges.

Thanks
Joseph

--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/wfy19TmLwZ0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/be07cc95-df74-43a9-be3d-1ff754dbf46e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Mr. Joseph Karns, RHCSA

Joseph Karns

unread,
Feb 4, 2015, 2:48:20 PM2/4/15
to puppet...@googlegroups.com
Hello Aries:

The root user would execute this or standard user using sudo.

This also depends on how its run. If ran during a Kickstart it would be run by the root user.
If you setup the machine, then ssh into the server, it would be run by your user you ssh'd into the box with. If that is the case, you might want to run the command with sudo privileges.

Thanks
Joseph

On Tuesday, February 3, 2015 at 4:50:06 AM UTC-5, aries wrote:
Reply all
Reply to author
Forward
0 new messages