公告版位
新版Blog peichengnote

目前分類:linux (29)

瀏覽方式: 標題列表 簡短摘要

Puppet class inheritance confusion - Server Fault
http://serverfault.com/questions/197909/puppet-class-inheritance-confusion


The difference between import and include statemens is:

import works with files, and does not execute classes
include executes classes
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()


There are other ways to use inheritance. In Puppet 0.23.1 and higher, it’s possible to add values to resource parameters using the ‘+>’ (‘plusignment’) operator:


class apache {
service { 'apache': require => Package['httpd'] }
}

class apache-ssl inherits apache {
# host certificate is required for SSL to function
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()

[puppet]
puppet note "::"
The double colon that divides the sections of a class’s name is called the namespace separator.

Module Fundamentals — Documentation — Puppet Labs
http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html


文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()


#curl -L https://get.rvm.io | bash -s stable --ruby


Installation of RVM in /usr/local/rvm/ is almost complete:

* First you need to add all users that will be using rvm to 'rvm' group,
and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.

* To start using RVM you need to run `source /etc/profile.d/rvm.sh`
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()



[root@hct5 redis-2.6.4]# make
cd src && make all
make[1]: Entering directory `/root/logenv/redis-2.6.4/src'
CC adlist.o
在包含自 adlist.c:34 的檔案中:
zmalloc.h:50:31: 錯誤:jemalloc/jemalloc.h:沒有此一檔案或目錄
zmalloc.h:55:2: 錯誤:#error "Newer version of jemalloc required"
make[1]: *** [adlist.o] Error 1
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()



usermod -d /path/to/new/homedir/ username

peicheng 發表在 痞客邦 留言(0) 人氣()


cent os
centos

/usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h

yum install ruby-devel

文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()


[peicheng@searcher1 logcentral]$ git push -u origin master

(gnome-ssh-askpass:15555): Gtk-WARNING **: cannot open display:

sol:
$ unset SSH_ASKPASS
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()



make[1]: Entering directory `/redis/redis-2.4.7/src'

which: no tclsh8.5 in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

You need 'tclsh8.5' in order to run the Redis test
文章標籤

peicheng 發表在 痞客邦 留言(0) 人氣()

«12