[vagrant@client ~]$ facter --yaml
[vagrant@client ~]$ puppet facts --render-as yaml
[vagrant@client ~]$ facter --json
[vagrant@client ~]$ puppet facts --render-as json
johnchen6927 發表在 痞客邦 留言(0) 人氣(4)
notice( "Hello ${username}, glad to see you today!" )
$message_text = @(END)
This is a very long message, which will be composed over many lines of text.
END
$message_text = @("END")
Dear ${use},
Your password is ${password}.
Please login at ${site_url} to continue.
END
johnchen6927 發表在 痞客邦 留言(0) 人氣(1)
使用 puppet resource 可以看本機所套用的模組
[vagrant@client manifests]$ puppet resource mailalias postmaster
johnchen6927 發表在 痞客邦 留言(0) 人氣(3)
目前的公司在管理 Infrastructure 上,非常的厲害。
全部採用 SVN + Puppet 的管理方式來部署和變更設定。
先在本機上更新 SVN,進行變更後,上傳到 SVN 上。
johnchen6927 發表在 痞客邦 留言(0) 人氣(6)