{"id":19177216,"url":"https://github.com/mahdi22/ansible-install-puppet-agent","last_synced_at":"2026-03-16T16:01:46.698Z","repository":{"id":133216849,"uuid":"306681605","full_name":"mahdi22/ansible-install-puppet-agent","owner":"mahdi22","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-25T23:25:50.000Z","size":26,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T22:22:31.374Z","etag":null,"topics":["ansible","automation","debian","devops","linux","puppet","redhat","ubuntu"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/mahdi22/puppet_agent","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mahdi22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-23T15:52:03.000Z","updated_at":"2024-06-13T13:19:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"9984117f-32c2-4d70-9e65-c1eb4793d840","html_url":"https://github.com/mahdi22/ansible-install-puppet-agent","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdi22%2Fansible-install-puppet-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdi22%2Fansible-install-puppet-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdi22%2Fansible-install-puppet-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdi22%2Fansible-install-puppet-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahdi22","download_url":"https://codeload.github.com/mahdi22/ansible-install-puppet-agent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252954128,"owners_count":21830893,"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":["ansible","automation","debian","devops","linux","puppet","redhat","ubuntu"],"created_at":"2024-11-09T10:32:32.593Z","updated_at":"2026-03-16T16:01:46.611Z","avatar_url":"https://github.com/mahdi22.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Ansible](https://img.shields.io/ansible/role/d/51467)\n![Ansible](https://img.shields.io/ansible/quality/51467)\n[![Galaxy](https://img.shields.io/ansible/role/51467)](https://galaxy.ansible.com/mahdi22/puppet_agent)\n# Ansible role `puppet_agent`\n\n\nAn Ansible role for installing agent puppet (supported version 6 and 7 if install agent from puppetlabs repository, else all version is supported) in RHEL/CentOS, Debian and Ubunut distributions. Specifically, the responsibilities of this role are to:\n\n- Install puppet from official repositories\n- Configuration puppet agent\n- Generate certification\n- Enable puppet service\n- Start puppet service\n\n## Installation\n``` bash\n$ ansible-galaxy install mahdi22.puppet_agent\n```\n\n## Role Variables\n\nThis role has multiple variables. The defaults for all these variables are the following:\n\n```yaml\n---\n# Specify if the role must use a proxy web\n# Default is False\nuse_proxy: yes\n\n# If use_proxy: yes, set http proxy variables environment\n# Replace proxy.local with your web proxy adresse or name\n# Replace 8080 with your web proxy port\nproxy_env:\n  http_proxy: http://proxy.local:8080/\n  https_proxy: http://proxy.local:8080/\n\n# Set install_from_puppetlabs: True - install puppet agent from puppetlabs repository.\n# Set install_from_puppetlabs: False - do not install puppetlabs repositry\n# Default is true.\ninstall_from_puppetlabs: True\n\n# Specifie puppet version\n# Supported values are \"6\" and \"7\"\n# This parameter is valid if install_from_puppetlabs: True\n# Default is 6\npuppet_version: \"6\"\n\n# Generate or Re-generate a new certificat\n# Turne this variable to false to edit configuration without generate a new certificat\n# Default is True\npuppet_agent_certification: True\n\n# The master server to request configurations from.\n# Defaults to puppet\npuppet_server_name: puppet.lab\n\n# The environment to request when contacting the master.\n# Default is production\nenvironment: production\n\n# How often to do a Puppet run, when running as a service.\n# Default is 30m\nruninterval: 30m\n```\n\n## Dependencies\n\nNone\n\n## Example Playbook\n\nPlaybook example to execute role without proxy web\n```Yaml\n- hosts: puppet\n  roles:\n    - role: mahdi22.puppet_agent\n      become: yes\n      vars:\n        puppet_server_name: puppet.lab\n        puppet_version: \"7\"\n```\nPlaybook example to execute role with proxy web\n```Yaml\n- hosts: puppet\n  roles:\n    - role: mahdi22.puppet_agent\n      become: yes\n      vars:\n        puppet_server_name: puppet.lab\n        puppet_version: \"7\"\n        use_proxy: yes\n        proxy_env:\n          http_proxy: http://proxy.local:8080/\n          https_proxy: http://proxy.local:8080/\n```\n\nPlaybook example to execute role with proxy web and without using puppetlabs repository \n```Yaml\n- hosts: puppet\n  roles:\n    - role: mahdi22.puppet_agent\n      become: yes\n      vars:\n        puppet_server_name: puppet\n        use_proxy: yes\n        proxy_env:\n          http_proxy: http://proxy.local:8080/\n          https_proxy: http://proxy.local:8080/\n        install_from_puppetlabs: False\n```\n## Testing\n\nThis role is tested on Linux distributions:\n\n- RHEL/CentOS 8\n- RHEL/CentOS 7\n- Debian 10\n- Debian 9\n- Debian 8\n- Ubuntu 20.04\n- Ubuntu 18.04\n- Ubuntu 16.04\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahdi22%2Fansible-install-puppet-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahdi22%2Fansible-install-puppet-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahdi22%2Fansible-install-puppet-agent/lists"}