puppet 详细使用module模块配置ubuntu local repository
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了puppet 详细使用module模块配置ubuntu local repository相关的知识,希望对你有一定的参考价值。
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 will share the configuration on all others machines,then these machines will use the local repository as proxy to apt-get packages.
class localrepo { file { ‘/etc/apt/apt.conf‘: owner => root, group => root, mode => 0644, content => ‘Acquire::http { Proxy "http://192.168.56.101:3142"; }‘; } }
puppet template
本文出自 “SystemAdmin成长记” 博客,请务必保留此出处http://christhai.blog.51cto.com/1584747/1753662
以上是关于puppet 详细使用module模块配置ubuntu local repository的主要内容,如果未能解决你的问题,请参考以下文章