Puppet detailed use of (2) module modules to configure Ubuntu local repository

Source: Internet
Author: User

1). Get puppet module to install Apt-cacher-ng

Puppet Module Install MARKHELLEWELL-APTCACHERNG

Then,edit nodes.pp and put the ' aptcacherng ' class into the repo node

class {' Aptcacherng ':}

2). Apply to all clients
Create a manifest file including these codes as below on puppet master which would share the configuration on all others MA Chines,then These machines would use the local repository as proxy to apt-get packages.

Class Localrepo {file {'/etc/apt/apt.conf ': Owner = root, group = root, mode = 0644, content = ' Acqu ire::http {Proxy "http://192.168.56.101:3142";} '; } }

Puppet Template


This article is from the "Systemadmin Growth" blog, please be sure to keep this source http://christhai.blog.51cto.com/1584747/1753662

Puppet detailed use of (2) module modules to configure Ubuntu local repository

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.