puppet實戰(zhàn)-apply命令的中文幫助信息詳解_第1頁
puppet實戰(zhàn)-apply命令的中文幫助信息詳解_第2頁
puppet實戰(zhàn)-apply命令的中文幫助信息詳解_第3頁
免費預覽已結(jié)束,剩余4頁可下載查看

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、uppet實戰(zhàn)-puppetapply puppet實戰(zhàn)-puppetapply 命令:puppetapply運行本地Puppet,疑問請發(fā)郵件至 rootlinux57poc#puppethelppuppet-apply(8)-ApplyPuppetmanifestssastandalonePuppetmanifesttothelocalpuppet apply -h|-help -V|-ver -d|-debug -v|-ver-e|-execute -detailed-exitcodes -l|-logdest -apply-catalogThisisthestandalonepuppe

2、texecutiontool;useittoapply individual manifests.When provided wimodulepath, viadlineorconfigfile,puppet apply can effectively mimic the catalogt would be served by puppet master wis to the same modules, although there are some subtle-h|-help #e #-catalog#運行puppetmaster采.Whencombinedwithschedulingan

3、danautomatedsystempushingmanifests,thiscanbeusedtoimplementaserverlessMostusers.Whencombinedwithschedulingandanautomatedsystempushingmanifests,thiscanbeusedtoimplementaserverlessMostusersshouldusepuppetagentandpuppetmasterforsite-tanyconfigurationtshefileisalsoavalidlongargument.Forle,modulepathisva

4、lidconfigurationparameter,soyoucanspecify-tagsasanSeetheconfiguration HYPERLINK http:/d/ ation/stable/configuration.htmlforfulllistofacceptableparameters.Acommentedlistofconfigurationoptionssobegeneratedbyrunningpuppet*-Enablefull*Provideioninformationviaexitcodes.Ifthisisenabled,ancodeof2meansthere

5、werechanges,anexitcodeof4meanstherefailuresduringthechangesandion,andanexitcodeof6meanstherewere*thishelp*Load any stored classes. puppet agent caches configured classes (usuallyat/etc/puppet/classes.txt),andsettingthisoptioncausesallofthoseclassestobesetinyourpuppet*Wheretosendmessages.Choosensyslo

6、g,theconsole,andafile.Defaultstosendingmessagestothe*ExecuteaspecificpieceofPuppetPuppet,疑問請發(fā)郵件至 PuppetPuppet,疑問請發(fā)郵件至 rootlinux58poc puppet# mkdir -p /etc/puppet/modules/motd/manifests rootlinux58poc puppet# mkdir -p /etc/puppet/modules/motd/templates rootlinux58poc puppet# mkdir -p /etc/puppet/modu

7、les/motd/files rootlinux58pocpuppet#vim/etc/puppet/modules/motd/manifests/init.pp class motdpackage setup: ensure=present,extraApply a JSON catalog (such as one generated with puppet mastile).You eitherspecifyaJSONfileorpipeinJSONfromstandardinput.Deprecated,please use -catalog instead.Apply a JSON

8、catalog (such as one generated with puppet mastile).You eitherspecifyaJSONfileorpipeinJSONfromstandard$puppetapply-l/tmp/manifest.log$puppetapply-modulepath=/root/dev/modules-einclude$puppetapply-catalogLukeCopyright(c)2011PuppetLabs,LLCLicensedundertheApache2.0Puppet,疑問請發(fā)郵件至 Puppet,疑問請發(fā)郵件至 rootlinu

9、x58poc#catThu Jan 09 05:32:37Puppet(notice):Finishedcatalogrunin0.04 rootlinux58poc#puppetapply -debug-lrootlinux58poc # cat /tmp/motd.logThu Jan 09 05:32:37Puppet(notice):Finishedcatalogrunin0.04 ThuJan09Puppet(info):LoadingfactsThuJan09Puppet(debug):CreatingdefaultThu Jan 09 05:33:02Puppet(debug):

10、Failedtoloadlibraryldapfor feature ldapThu Jan 09 05:33:02Puppet(debug):Puppet:Type:User:ProviderLdap: feature ldap is missingThu Jan 09 05:33:02Puppet (debug): Puppet:Type:User:ProviderUser_role_add:fileroleadddoesnotexistThu Jan 09 05:33:02Puppet (debug): Puppet:Type:User:Providw:file pw does not

11、existfileowner = root, group = root, mode = 0400,content=template(motd/motd.erb), require = Packagesetup,rootlinux58pocpuppet#vim/etc/puppet/modules/motd/templates/motd.erb a few octer valuesmyhostname = eth0_ip= kernel = systemrelease= =%=puppetver = %= rubyverrootlinux58pocPuppet,疑問請發(fā)郵Puppet,疑問請發(fā)郵

12、件至 Thu Jan 09 05:33:02Puppet (debug): Puppet:Type:User:ProviderDirectoryservice:file/usr/bin/dscldoesnotexist Thu Jan 09 05:33:02e/graphs (debug): Autorequiring File/var/lib/puppet/sThu Jan 09 05:33:02/File/var/lib/puppet/facts(debug):Autorequiring Thu Jan 09 05:33:02/File/var/lib/puppet/ssl/certs(d

13、ebug): Autorequiring File/var/lib/puppet/sslThu Jan 09 05:33:02(debug): Autorequiring File/var/lib/puppet/sThu Jan 09 05:33:02m(debug): Autorequiring File/var/lib/puppet/ssl/certsThu Jan 09 05:33:02/File/etc/puppet/namespaceauth.conf(debug): Autorequiring File/etc/puppetThu Jan 09 05:33:02(debug): A

14、utorequiring File/var/lib/puppet/sThu Jan 09 05:33:02/File/var/lib/puppet/ssl/private(debug): Autorequiring File/var/lib/puppet/sslThu Jan 09 05:33:02nt_data(debug): Autorequiring File/var/lib/puppetThu Jan 09 05:33:02/File/var/lib/puppet/ssl/crl.pem(debug): Autorequiring File/var/lib/puppet/sslThu

15、Jan 09 05:33:02/File/var/lib/puppet/ssl/public_keys(debug): Autorequiring File/var/lib/puppet/sslThu Jan 09 05:33:02(debug): Autorequiring File/var/lib/puppet/sslThu Jan 09 05:33:02/File/var/lib/puppet/ssl(debug):Autorequiring Thu Jan 09 05:33:02nt_yaml(debug): Autorequiring File/var/lib/puppetThu J

16、an 09 05:33:02e(debug):Autorequiring Thu Jan 09 05:33:02.txt(debug): Autorequiring File/var/lib/puppet/sThu Jan 09 05:33:02e.yaml(debug): Autorequiring File/var/lib/puppet/sThu Jan 09 05:33:02/File/var/lib/puppet/ssl/private_keys(debug): Autorequiring File/var/lib/puppet/sslThu Jan 09 05:33:02/File/

17、var/lib/puppet/lib(debug):Autorequiring Thu Jan 09 05:33:02Puppet (debug): Finishing tranThu Jan 09 05:33:02Puppet (debug): Loaded se in 0.03 secondsThuJan09Puppet(debug):Loadedein0.00在本地運行命令,加載一個類,創(chuàng)建motdPuppet,疑問請發(fā)郵件在本地運行命令,加載一個類,創(chuàng)建motdPuppet,疑問請發(fā)郵件至 rootlinux58poc#rm-rfrootlinux58poc#puppetapply-e

18、includemotd-notice:/Stagemain/Motd/File/etc/motd/ensure:current_valueabsent,shouldbe file (noop)notice:ClassMotd:Wouldhavetriggeredrefreshfrom1events notice:Stagemain:Wouldhavetriggeredrefreshfrom1events notice: Finished catalog run in 0.17 secondsrootlinux58poc#puppetapply-eincludenotice:/Stagemain

19、/Motd/File/etc/motd/ensure:definedcontentas notice:Finishedcatalogrunin0.17seconds rootlinux58poc # cat /etc/motda few octervalues myhostname = linux58poceth0_ip=kernel=2.6.18-Thu Jan 09 05:33:02Puppet(info):Applyingconfigurationver Thu Jan 09 05:33:02/Scheduledaily (debug): Skipdeviceresour because

20、 running on a hostThu Jan 09 05:33:02/Schedulemonthly (debug): Skipbecause running on a hostThu Jan 09 05:33:02/Schedulehourly (debug): Skipdeviceresour because running on a hostThu Jan 09 05:33:02/Schedulenever (debug): Skipdeviceresour because running on a hostThu Jan 09 05:33:02kly (debug): Skipdeviceresour because running on a hostThu Jan 09 05:33:02/Schedulepuppet (deb

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論