Ask Your Question
0

amzn-2017.03-x86_64 in Puppet Enterprise

asked 2017-08-10 15:50:03 -0500

jamie.wells gravatar image

Unable to install puppet on amazon linux. However, documents say its possible in newest version of puppet enterprise using redhat rpm. Does that mean to install puppet agent somehow through the rpm process, and what rpm should I use and which rpm repository? thanks.

edit retag flag offensive close merge delete

Comments

What command did you run to attempt the install? What error message was outputted?

Red Cricket gravatar imageRed Cricket ( 2017-08-13 13:10:15 -0500 )edit

I ran this command. curl -k https://lxawscfgp02.aws.logisticare.com:8140/packages/current/install.bash | sudo bash returned this error: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2

jamie.wells gravatar imagejamie.wells ( 2017-08-14 08:54:49 -0500 )edit

I cant post the script, character limit. But, its thescript that the puppetmaster provides.

jamie.wells gravatar imagejamie.wells ( 2017-08-14 08:55:11 -0500 )edit

That looks like the right way to install the puppet agent. No need to post the script. Did you verify that the script got downloaded by executing: `curl -k https://lxawscfgp02.aws.logisticare.com:8140/packages/current/install.bash` then `ls -l install.bash`?

Red Cricket gravatar imageRed Cricket ( 2017-08-15 21:37:24 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-08-22 22:55:56 -0500

updated 2017-08-23 19:24:41 -0500

Hi Jamie,

I'm able to install Puppet agent. Please add following script into your puppet agent node use data:

#!/bin/bash
yum update -y
hostname=$(curl http://169.254.169.254/latest/meta-data/hostname)
localIp=$(curl http://169.254.169.254/latest/meta-data/local-ipv4)
echo "$localIp $instanceId $hostname">>/etc/hosts
#update hostfile include puppetmaster IP
echo "172.3x.x.x ip-172-3x-2x-xxx ip-172-3x-xx-xxx.domain-staging.vpc">>/etc/hosts
yum install puppet3 -y
#update puppet.conf on the agent node
echo -e "[main]\n" "server = ip-172-3x-x-1xx.domain-staging.local\n" "certname = $hostname">/etc/puppet/puppet.conf
echo "environment = dev">>/etc/puppet/puppet.conf
puppet agent -t

Good luck!

Abi

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

Stats

Asked: 2017-08-10 15:50:03 -0500

Seen: 138 times

Last updated: Aug 23