puppet的第一个自己写的模块
来源:互联网 发布:手机版ps软件 编辑:程序博客网 时间:2024/06/06 01:48
进入到/etc/puppet目录里,
<span style="font-size:24px;">[root@yinzhipeng puppet]# ll总用量 32-rw-r--r-- 1 root root 4178 4月 26 02:54 auth.conf-rw-r--r-- 1 root root 2 10月 17 18:13 autosign.confdrwxr-xr-x 3 root root 4096 10月 17 15:32 environments-rw-r--r-- 1 root root 1462 4月 26 02:52 fileserver.confdrwxr-xr-x 2 root root 4096 10月 17 18:08 manifestsdrwxr-xr-x 3 root root 4096 10月 17 18:05 modules-rw-r--r-- 1 root root 990 10月 17 18:02 puppet.conf</span>
<span style="font-size:24px;">[root@yinzhipeng puppet]# cd modules/</span>
然后创建模块
<span style="font-size:32px;">[root@yinzhipeng modules]# mkdir unzip</span>
<span style="font-size:32px;">[root@yinzhipeng modules]# cd unzip[root@yinzhipeng unzip]# mkdir manifests/</span>
<span style="font-size:32px;">一定要创建这个文件夹</span>
<span style="font-size:32px;">这个是模块初始文件夹</span>
<a target=_blank href="mailto:root@yinzhipeng"><span style="font-size:32px;">root@yinzhipeng</span></a><span style="font-size:32px;"> manifests]# touch init.pp</span>
<span style="font-size:32px;">这个一定要创建 代码的开始</span>
<span style="font-size:32px;">[root@yinzhipeng manifests]# cat init.pp class unzip {package {"unzip":ensure => present,}}</span>
<span style="font-size:32px;">这个类名一定要和模块名字相同</span>
<span style="font-size:32px;"></span>
<span style="font-size:32px;"></span>
<span style="font-size:32px;">然后进入/etc/puppet/manifests</span>
<span style="font-size:32px;">创建site.pp</span>
<span style="font-size:32px;">[root@yinzhipeng manifests]# cat site.pp include unzip</span>
<span style="font-size:32px;">这个引入模块的意思 </span>
<span style="font-size:32px;">到此 完成</span>
0 0
- puppet的第一个自己写的模块
- nodejs 自己的第一个模块
- magento 创建第一个自己的模块
- 自己写的第一个PHP作品
- 自己写的第一个SQLSERVER2005触发器
- 我自己写的第一个控件
- 写自己的第一个makefile
- 自己写的第一个shell脚本
- 自己写的第一个小网站
- 自己写的第一个model
- 第一个自己写的banner动画
- 第一个自己写的banner动画
- 记自己写的第一个批处理
- 动手写自己的第一个"操作系统"
- 自己写的第一个存储过程
- 自己写的第一个CasperJS
- 第一个自己写的小程序
- puppet-template, Boxen的Puppet 模块示例
- CURL常用命令
- Android 标题栏沉浸式的实现
- MapReduce:详解Shuffle过程
- IPHONE,zlib库编译iphone版本
- 关于如何连接阿里云服务器上的MySQL数据库的解答
- puppet的第一个自己写的模块
- 安卓webView加载HTML数据
- pl/sql 过程 函数
- 0/1背包问题
- IE(IE6/IE7/IE8)支持HTML5标签
- ckeditor+ckfinder 由于文件系统的限制,该请求不能完成
- 杭电acm-sum number
- Error: Library projects cannot set applicationId. applicationId is set to "com.du.android.recyclervi
- 【转】自己总结的web前端知识体系大全