{"id":24824755,"url":"https://github.com/vishal815/puppet_master_and_puppet_slave_setup_on_aws","last_synced_at":"2025-04-12T04:13:42.232Z","repository":{"id":187311717,"uuid":"676704930","full_name":"vishal815/Puppet_Master_and_Puppet_slave_setup_on_AWS","owner":"vishal815","description":"Video link for Simplify your Puppet Master and Puppet slave setup on AWS with these straightforward commands.","archived":false,"fork":false,"pushed_at":"2023-08-19T19:18:17.000Z","size":15,"stargazers_count":4,"open_issues_count":1,"forks_count":13,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T04:13:38.883Z","etag":null,"topics":["aws","certificate-request","congition","developer-tools","devops","ec2","manifests","puppet","puppet-master","puppet-module","setup"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=bMBue_LOW7g\u0026t=578s","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vishal815.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-09T20:17:48.000Z","updated_at":"2024-08-27T07:22:43.000Z","dependencies_parsed_at":"2023-08-09T21:15:16.595Z","dependency_job_id":null,"html_url":"https://github.com/vishal815/Puppet_Master_and_Puppet_slave_setup_on_AWS","commit_stats":null,"previous_names":["vishal815/puppet_master_and_puppet_slave_setup_on_aws"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishal815%2FPuppet_Master_and_Puppet_slave_setup_on_AWS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishal815%2FPuppet_Master_and_Puppet_slave_setup_on_AWS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishal815%2FPuppet_Master_and_Puppet_slave_setup_on_AWS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishal815%2FPuppet_Master_and_Puppet_slave_setup_on_AWS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vishal815","download_url":"https://codeload.github.com/vishal815/Puppet_Master_and_Puppet_slave_setup_on_AWS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514203,"owners_count":21116903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","certificate-request","congition","developer-tools","devops","ec2","manifests","puppet","puppet-master","puppet-module","setup"],"created_at":"2025-01-30T20:57:09.228Z","updated_at":"2025-04-12T04:13:42.203Z","avatar_url":"https://github.com/vishal815.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Puppet Master and Puppet Agent Setup on AWS\n\nThis guide will help you set up a Puppet Master and Puppet Agent (or Puppet Node) on Amazon Web Services (AWS) using straightforward commands. This setup allows you to manage configurations and automate tasks on your nodes using Puppet.\n\nMY Video link:-\nhttps://www.youtube.com/watch?v=bMBue_LOW7g\u0026t=578s\n\n## Puppet Master Setup\n\n### Modify the Puppet Master's hosts file\n\n```\nsudo nano /etc/hosts\n```\n\nAdd the following line:\n\n```\n\u003cPuppet_Master_Private_IP\u003e puppet\n```\n![p1](https://github.com/vishal815/Puppet_Master_and_Puppet_slave_setup_on_AWS/assets/83393190/0f5f7485-7f75-4c5d-87f3-41ddfb1185b0)\n\n\n### Download and install the Puppet Master packages\n\n```\ncurl -O https://apt.puppetlabs.com/puppet6-release-bionic.deb\n```\n```\nsudo dpkg -i puppet6-release-bionic.deb\n```\n```\nsudo apt-get update\n```\n```\nsudo apt-get install puppetserver -y\n```\n## Add changes\n```\nsudo nano /etc/default/puppetserver\n```\n```\nJAVA_ARGS = \"-Xms512m -Xms512m\"\n```\n### Allow traffic on port 8140\n\n```\nsudo ufw allow 8140\n```\n\n### Configure and start Puppet Master\n\n```\nsudo systemctl enable puppetserver.service\n```\n```\nsudo systemctl start puppetserver.service\n```\n\n### Verify the version of Puppet Master\n\n```\nsudo systemctl status puppetserver.service\n```\n\n## Puppet Agent Setup\n\n### Modify the Puppet Agent's hosts file\n\n```\nsudo nano /etc/hosts\n```\n\nAdd the following line:\n\n```\n\u003cPuppet_Master_Private_IP\u003e puppet\n```\n\n### Download and install the Puppet Agent packages\n\n```\ncurl -O https://apt.puppetlabs.com/puppet6-release-bionic.deb\n```\n```\nsudo dpkg -i puppet6-release-bionic.deb\n```\n```\nsudo apt-get update\n```\n```\nsudo apt-get install puppet-agent -y\n```\n\n### Enable and restart the Puppet Agent service\n\n```\nsudo systemctl enable puppet\n```\n```\nsudo systemctl restart puppet\n```\n```\nsudo systemctl status puppet\n```\n\n## Signing Certificates on the Puppet Master\n\n### List certificate requests\n\n```\nsudo /opt/puppetlabs/bin/puppetserver ca list\n```\n\n### Sign a specific certificate request\n\n```\nsudo /opt/puppetlabs/bin/puppetserver ca sign --certname \u003cAgent_CertName\u003e\n```\n![ss](https://github.com/vishal815/Puppet_Master_and_Puppet_slave_setup_on_AWS/assets/83393190/8d1eaf2d-9ed0-4987-add2-289be93a7ebd)\n\n\n## Applying Manifests on Puppet master\n\n### Create a Puppet manifest file\n\n```\nsudo nano /etc/puppetlabs/code/environments/production/manifests/site.pp\n```\n\nAdd content like the following example:\n\n```\nfile { '/tmp/puppet_test.txt':\n  ensure =\u003e present,\n  mode   =\u003e '0644',\n  content =\u003e \"Hello from Puppet master (Welcome to puppet testing with vishal.) to agent on IP address ${ipaddress_eth0}\\n\",\n}\n```\n\n### Trigger Puppet Agent to apply the changes (run on puppet Agent)\n\n```\nsudo /opt/puppetlabs/bin/puppet agent --test\n```\n\n### Check the content of the test file (run on puppet Agent)\n\n```\nsudo cat /tmp/puppet_test.txt\n\n```\n# 👉\n[download PPT for All command. ](https://github.com/vishal815/Puppet_Master_and_Puppet_slave_setup_on_AWS/files/12306792/Simplify-your-Puppet-Master-and-Puppet-slave-setup-on-AWS-with-these-straightforward-commands.pptx)\n\n\nCongratulations! Your Puppet Master and Puppet Agent are now set up and running. You've tested the configuration to ensure everything is working smoothly.\n\n![Puppet-Cheat-Sheet (1)-PhotoRoom](https://github.com/vishal815/Puppet_Master_and_Puppet_slave_setup_on_AWS/assets/83393190/b666ad4d-ac19-401b-ad76-54921826906a)\n\n\n![chef-vs-puppet-vs-ansible-what-are-the-differences-it-infographic](https://github.com/vishal815/Puppet_Master_and_Puppet_slave_setup_on_AWS/assets/83393190/f3cf14d2-e39e-49ad-b514-634a8b475099)\n\nHappy learning!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishal815%2Fpuppet_master_and_puppet_slave_setup_on_aws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvishal815%2Fpuppet_master_and_puppet_slave_setup_on_aws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishal815%2Fpuppet_master_and_puppet_slave_setup_on_aws/lists"}