puppet 详细使用(2)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

时间: 2024-08-28 10:32:27

puppet 详细使用(2)module模块配置ubuntu local repository的相关文章

45 puppet基础、资源详解、配置语言、puppet类与模板及模块

01 puppet基础 配置: node1:192.168.1.131 CentOS7.2 node2:192.168.1.132 CentOS7.2 [[email protected] ~]# rpm -ivh epel-release-latest-7.noarch.rpm [[email protected] ~]# yum list all | grep -i "puppet" puppet.noarch                           3.6.2-3.e

Titanium Module 模块开发(二)蓝牙控制 Module

今天 ,正好项目需要添加蓝牙的控制功能,我去Titianium 文档搜了一下,发现 只有Tizen 系统有,其他的都没有,只能自己做Module. 借这个机会,记录一下蓝牙控制Module 的开发过程中遇到的问题和一些知识点. 编写Module 建立项目 首先 ,建立一个Module 项目,不会的话参考:Titanium-Modules 模块开发 (一) :模块开发基础 创建完成后会是这样: 添加蓝牙相关方法 打开BluetoothadapterModule.java 文件 可看到如下代码: 2

实战Puppet 集中配置管理系统(3)——Puppet dashboard与nginx+passenger安装配置

     本次实验内容紧接前两次实验,第一节内容主要介绍PUPPET的安装认证与资源定义,第二节主要写apache与nginx模块的应用,本次介绍Puppet dashboard与nginx+passenger 的安装,Puppet dashboard 是用以 web 方式管理 puppet.puppet 默认使用基于 Ruby 的WEBRickHTTP 来处理 HTTPS 请求,单个服务器使用Apache/Nginx+Passenger 替换掉 WEBRickHTTP,Passenger 是用

ESQL之刷新模块配置

修改database.xml文件后只需在网页中执行<esql module=模块名 act=refresh />,修改的参数立即生效 例: <html> <title>刷新数据模块配置参数</title> <chtml> <esql module=help act=refresh /> </chtml> </html> 轻开B2C电子商务网站数据模块管理实例 数据模块配置文件base/database.xml

Puppet整合SVN(一):安装配置SVN

一.工作流程 1.在puppet服务器中安装SVN服务端和客户端 2.将puppet的配置目录/etc/puppet上传到本地SVN服务器 3.删除/etc/puppet,然后使用SVN导出到/etc/puppet,这样目录就被版本控制了 4.设置hooks勾子或cron计划任务,自动更新/etc/puppet目录 5.管理员通过SVN客户端工具上传配置文件,puppet服务器自动从SVN获取最新文件 6./etc/puppet更新后,puppet客户端也会在同步时间更新配置从而实现自动化配置

[Abp 源码分析]四、模块配置

0.简要介绍 在 Abp 框架当中通过各种 Configuration 来实现模块的配置,Abp 本身提供的很多基础设施功能的一些在运行时的行为是通过很多不同的 Configuration 来开放给用户进行一些自定义配置的. 比如说缓存模块,我要配置缓存的过期时间,Abp 默认是 1 个小时,但是我也可以自己来定义,直接赋值或者从配置项来读取都是由具体使用者来控制的,所以 Abp 通过各种 Configuration 类来控制一些运行时参数. 这些 Abp 本身基础设施的配置类都是存放在 \Ab

ES6 module模块

模块Module  模块Module:一个模块,就是一个对其他模块暴露自己的属性或者方法的文件. 在这里,我们会把module-A.js和module-B.js分别当作两个模块(moduleA模块和moduleB模块)来对待和处理.用这两个模块来演示如何暴露一个模块的属性或方法. 导出Export 导出Export:作为一个模块,它可以选择性地给其他模块暴露(提供)自己的属性和方法,供其他模块使用. 导入Import 导入Import:作为一个模块,可以根据需要,引入其他模块的提供的属性或者方法

配置ubuntu - tftp server服务器步骤

配置Ubuntu tftp服务的步骤: 1.安装相关软件包:Ubuntu tftp(服务端),tftp(客户端),xinetd sudo apt-get install tftpd tftp xinetd 2.建立配置文件 在/etc/xinetd.d/下建立一个配置文件tftp sudo vi tftp 在文件中输入以下内容: service tftp {socket_type = dgram protocol = udp wait = yes user = root server = /us

手动配置Ubuntu Linux系列3-缺省网关和主机名

上一篇讲到[原创]手动配置Ubuntu Linux的DHCP客户端,这里再说一下配置静态IP地址的方法. 仍然是编辑 interfaces文件. $ sudo vi /etc/network/interfaces eth0配置如下: auto eth0 address 192.168.1.123 netmask 255.255.255.0 gateway 192.168.1.1 保存退出后,使用重启networking命令让新配置生效. $ sudo /etc/init.d/networking