天天看點

puppet連載24:虛拟資源調用

class account::virtual {

@user {"mysql":

ensure => present,

uid => 27,

gid => 27,

home => "/var/lib/mysql",

shell => "/bin/bash",

}

@user {"apache":

uid => 48,

gid => 48,

home => "/var/www",

shell => "/sbin/nologin",

調用

class webapp {

realize(User["mysql"])

-> 順序

<- before

~> notify

<~ notify

puppet連載24:虛拟資源調用

image.png

---使用資料庫存儲

[master]

storeconfigs = true

dbadapter = mysql

dbname = puppet

dbuser = puppet

dbpassword = xx

dbserver = localhost

dbsocket = xx

上一篇: svn merge
下一篇: svn 常用指令