Your SlideShare is downloading. ×
0
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
PuppetConf 2013 Types and Providers
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

PuppetConf 2013 Types and Providers

380

Published on

Puppet Conf 2013 Types and Provider …

Puppet Conf 2013 Types and Provider
Code: www.github.com/nanliu/puppet-pkg

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
380
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  1. Puppet Types and Providers Dan Bode One man comedy routine | BodeCo @bodepd Nan Liu Outsourced Intern
  2. puppetconf.com #puppetconf •  Resource Behavior and Terminology •  Resource Development – Type – Providers •  … (Dan’s Secret) •  Profit !!! Overview
  3. puppetconf.com #puppetconf •  How it works •  Type •  Providers Resource
  4. puppetconf.com #puppetconf How it works?
  5. puppetconf.com #puppetconf •  How to identify a unique resource •  Commands to manage resource – Inspect current state – Configure desire state Prereqs
  6. puppetconf.com #puppetconf •  Title (namevar) – uuids and guids – satisfy unique constraint – composite namevar •  Attributes – Properties – Parameters •  Metaparameters Resource
  7. puppetconf.com #puppetconf •  Have desire state •  Preferably only two – present/absent – running/stopped •  Overloading – version Ensurable Resource
  8. puppetconf.com #puppetconf service { “sshd”: ensure => ‘running’, enable => true, require => Package[‘ssh’], tag => ‘PuppetConf’, } Resource Example
  9. puppetconf.com #puppetconf /etc/init.d/sshd start/stop/status/restart service sshd start/stop/status/restart smf ? Commands
  10. puppetconf.com #puppetconf Type
  11. puppetconf.com #puppetconf •  Type (single) – Describes resources attributes – What you write as Puppet manifests •  Provider (many) – Query state – Configure resource Separation of Responsibility
  12. puppetconf.com #puppetconf •  Type •  Namevar Type
  13. puppetconf.com #puppetconf •  exists? •  create •  destroy Ensurable
  14. puppetconf.com #puppetconf •  exists? •  install •  uninstall Override ensurable
  15. puppetconf.com #puppetconf •  install_options •  remove_options •  version Parameters
  16. puppetconf.com #puppetconf •  version •  Property vs. Parameter Problems?
  17. puppetconf.com #puppetconf •  getter •  setter Property
  18. puppetconf.com #puppetconf •  Get all instance of resource •  mk_resource_methods self.instances
  19. puppetconf.com #puppetconf •  confine •  defaultfor Provider constraints
  20. puppetconf.com #puppetconf •  Not a hard relationship Autorequire
  21. Thank You Nan Liu Sr Systems Engineer | VMware @sesshin

×