How-to: install puppet via yum

Master:
Agent:
Verify:
  • At master node, create following file:
    [root@master ~]# cat /etc/puppet/manifests/site.pp
    node default {
    file {
    "/tmp/test":
    content=>"Hello FangFang \n",
    mode => 0644;
    }
    }
  • At agent node:
    puppet agent --test --ca_server=master.chff.dc
  • Verify at agent node:
    [root@slave puppet]# cat /tmp/test
    Hello FangFang
    [root@slave puppet]# ll /tmp/test
    -rw-r--r--. 1 root root 16 Jun 15 12:12 /tmp/test
發佈了45 篇原創文章 · 獲贊 8 · 訪問量 10萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章