Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Embracing Roles and Profiles

No description
by

Greg Swift

on 22 March 2016

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Embracing Roles and Profiles

Combining Roles & Profiles
Still duplicating
Workflow pains
Single or minimal modules
grouping profiles should be done carefully
module sprawl can be good
Role passing parameters to Profiles
Use hiera or
module data
Feedback
Duplication
Duplication
Conflicts
Duplication
Changes are cumbersome
Brainstorming
Separate data from code
Business logic is not technical
Implementation is not the resource
Resources are building blocks
Abstract all the things
First Draft
Nodes
Lots of implementation data
Modules
Hopefully from Forge
Home grown
Bundling
Nodes
Editting Room Floor
Cliffnotes
Abstract everything...with moderation
Roles and Profiles are just special case modules
Version roles, profiles, and modules
Use metadata.json
Break roles and profiles into lots of modules if you support more than a few things
Add test... it helps
Hubris is the enemy
edge cases will happen!
Get more
Craig Dunn's original blog post
bit.ly/1vyu5Tj
Gary Larizza's Workflow post
bit.ly/1zHr8Eh
PuppetLabs guide
bit.ly/1D1yQi6
My examples
bit.ly/gs-erp-demo
Embracing Roles and Profiles
gregswift
rackspace
puppet professional
fire performer
linux engineer
References a single role.
Rarely changes and simplifies ENC.
Roles
Simple collection of multiple profiles that define a system at business level.
Profiles
Opinionated implmenetation of modules
Need a MySQL DB, Nginx web server, and Java application
Modules
Technical implementation of specific resources
mysql
nginx
tomcat
Exposes lots of configuration options that may not be used, yet
Avoid adding data related to your environments
Even if you would never publish it!
Use the Forge if possible
@xaeth
we aren't using hiera yet
excessive pride toward or defiance of the gods, leading to nemesis
`
nytefyre.net
bit.ly/PCDFW2016-gs
Resources
The standard bits
File
Package
Service
augeasproviders
Other types
Hiera in Profiles
Thanks @djdanzilio
Separate hierarchy per profile can focus implementation
Don't spend forever trying to find a model that works for multiple teams
Allows data to follow module workflow
Puppet 3 module: module-data
3rd party and deprecated
http://bit.ly/1o3bO4h
Puppet 4 data provider: hiera
Native support
http://bit.ly/25hhOIC
role::blog::web
role::blog::db
profile_db
profile_db::master
profile_db::slave
profile_web
profile_blog
profile_system
profile_system::public
profile_system::private
excessive pride toward or defiance of the gods, leading to nemesis
Full transcript