我只是在设置一个新的 puppet 服务器并想找出最佳实践目录结构是什么?我在不同的论坛和木偶网站上四处看看,让我印象深刻的是每个人似乎都以不同的方式展示它。没有推荐的方式和目录结构吗?
到目前为止,我有:
puppet/
+ manifests/
+ site.pp
+ nodes/
+ production/
+ nodes.pp
+ dev/
+ nodes.pp
+ modules/
Run Code Online (Sandbox Code Playgroud)
在这之后我有点卡住了:)
所以我想我想把它分成服务器角色,比如“webserver”,它有一个服务,比如“httpd”或“nginx”
什么是最好的方法来解决所有这些问题,因为它让我发疯,似乎没有一种首选方法可以做到这一点,或者我可能只是在所有其他信息中错过了它:(
这是您构建目录的方式吗?
puppet/
+ manifests/
+ site.pp
+ nodes/
+ production/
+ nodes.pp (Nodes have roles)
+ dev/
+ nodes.pp
+ roles/
+ web-server-apache.pp (Roles have modules)
+ modules/
+ web-server-apache/
+ manifests/
+ init.pp (This is where "httpd" gets defined and installs latest httpd)
+ templates/
+ files/
Run Code Online (Sandbox Code Playgroud) 我需要一些帮助,因为我真的很难理解一个问题。
我想列出仅在 CentOS 6 上需要通过 yum 更新的安全包。
我下载了旧版本的 CentOS 6
[root@server ~]# cat /etc/redhat-release
CentOS Linux release 6.0 (Final)
[root@server ~]# uname -a
Linux server 2.6.32-71.el6.x86_64 #1 SMP Fri May 20 03:51:51 BST 2011 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
然后我安装了
[root@server ~]# yum install yum-plugin-security
Run Code Online (Sandbox Code Playgroud)
现在我希望能够运行
[root@server ~]# yum updateinfo summary
Loaded plugins: fastestmirror, presto, security
Loading mirror speeds from cached hostfile
* base: centos.schlundtech.de
* extras: centosmirror.netcup.net
* updates: centos.mirror.net-d-sign.de
updateinfo summary done
Run Code Online (Sandbox Code Playgroud)
或者
[root@server ~]# yum --security check-update
Loaded …Run Code Online (Sandbox Code Playgroud) 我有一个无法正确解析依赖项的 redhat 服务器。
我想通过 yum "yum install httpd" 安装 httpd 并且它安装正确,但是当我启动 httpd 时出现以下错误:
Stopping httpd: [FAILED]
Starting httpd: /usr/sbin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
[FAILED]
Run Code Online (Sandbox Code Playgroud)
它缺少 apr-util 包的依赖项。
奇怪的是,安装的是 i386 包而不是 x86_64 包。任何人都可以解释为什么可能无法正确解决依赖关系?
ldd /usr/sbin/httpd
libm.so.6 => /lib64/libm.so.6 (0x00002b02370db000)
libpcre.so.0 => /lib64/libpcre.so.0 (0x00002b023735e000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00002b023757a000)
libaprutil-1.so.0 => not found
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002b0237793000)
libldap-2.3.so.0 => /usr/lib64/libldap-2.3.so.0 (0x00002b02379cb000)
liblber-2.3.so.0 => /usr/lib64/liblber-2.3.so.0 (0x00002b0237c06000)
libdb-4.3.so => /lib64/libdb-4.3.so …Run Code Online (Sandbox Code Playgroud)