Jump to content

User:Bking/Notes/Ansible to Puppet

From Wikitech

My rough notes, don't trust!

Puppet Ansible Notes
Resource Built-in Module
Class Role
Role (special type of class) Role
Profile (special type of class) Role
PuppetLabs Galaxy Community Repos for Modules/Roles

puppet resources ≈ ansible modules

puppet manifests ≈ ansible task lists

puppet class ≈ ansible playbook

puppet module ≈ ansible role

puppet profile ≈ ???

Directory Layout

Puppetlabs-apache module on the left, Geerlingguy's Apache role on the right

Puppet Module Ansible Role
  puppetlabs-apache
  ├── data
  ├── examples
  ├── files
  ├── lib
  │   └── puppet
  │       ├── functions
  │       │   └── apache
  │       └── provider
  ├── manifests
  │   ├── confd
  │   ├── default_mods
  │   ├── fastcgi
  │   ├── mod
  │   │   └── ssl
  │   ├── mpm
  │   ├── peruser
  │   ├── security
  │   └── vhost
  ├── readmes
  ├── spec
  │   ├── acceptance
  │   ├── classes
  │   │   └── mod
  │   ├── defines
  │   ├── fixtures
  │   │   ├── files
  │   │   ├── site_apache
  │   │   │   └── templates
  │   │   └── templates
  │   ├── functions
  │   ├── type_aliases
  │   └── util
  │       └── _resources
  ├── tasks
  ├── templates
  │   ├── confd
  │   ├── fastcgi
  │   ├── mod
  │   │   └── jk
  │   └── vhost
  ├── types
  │   └── vhost
  └── util
      └── _resources
   
 
 
 geerlingguy.apache
 ├── defaults
 ├── handlers
 ├── meta
 ├── molecule
 │   └── default
 ├── tasks
 ├── templates
 └── vars