All Projects → santana → Puppet Cleaner

santana / Puppet Cleaner

Licence: other
Transforms puppet DSL source code to make it comply with the style guide

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Puppet Cleaner

Vagrant Magento Hhvm
A vagrant configuration for getting a basic version of Magento with HHVM up and running.
Stars: ✭ 41 (-39.71%)
Mutual labels:  puppet
Puppet Selinux
Puppet Module to manage SELinux on RHEL machines
Stars: ✭ 51 (-25%)
Mutual labels:  puppet
Puppet Foreman
UNOFFICIAL CLONE use https://github.com/theforeman/foreman-installer
Stars: ✭ 58 (-14.71%)
Mutual labels:  puppet
Vagrant Hadoop Cluster
Deploying hadoop in a virtualized cluster in simple steps
Stars: ✭ 42 (-38.24%)
Mutual labels:  puppet
Creature unity
2D Skeletal Animation Unity Runtimes for Creature
Stars: ✭ 50 (-26.47%)
Mutual labels:  puppet
Puppet Nginx
Basic module for configuring nginx via puppet
Stars: ✭ 53 (-22.06%)
Mutual labels:  puppet
Puppet Nginx
[UNMAINTAINED] Puppet Nginx module
Stars: ✭ 40 (-41.18%)
Mutual labels:  puppet
Puppet Nexus
A Puppet Module for Nexus (Maven)
Stars: ✭ 63 (-7.35%)
Mutual labels:  puppet
Puppet Staging
⛔️ Deprecated in favor of puppet-archive
Stars: ✭ 50 (-26.47%)
Mutual labels:  puppet
Vagrant Graphite
An Example puppetized setup of grahpite, jmxtrans, collectd , logster
Stars: ✭ 58 (-14.71%)
Mutual labels:  puppet
Puppet Apache
Apache Puppet Module
Stars: ✭ 42 (-38.24%)
Mutual labels:  puppet
Cmits
Configuration Management for IT Systems
Stars: ✭ 49 (-27.94%)
Mutual labels:  puppet
Puppet Filebeat
Stars: ✭ 54 (-20.59%)
Mutual labels:  puppet
Puppet Puppetboard
Puppet module to install and manage puppetboard
Stars: ✭ 42 (-38.24%)
Mutual labels:  puppet
Puppetlabs Dsc
Puppet module for PowerShell Desired State Configuration (DSC) integration
Stars: ✭ 63 (-7.35%)
Mutual labels:  puppet
Userplex
Propagate users from Mozilla's Person API to third party systems.
Stars: ✭ 41 (-39.71%)
Mutual labels:  puppet
Wordpress
Stars: ✭ 52 (-23.53%)
Mutual labels:  puppet
Puppet System
Manage Linux system resources and services from hiera configuration
Stars: ✭ 65 (-4.41%)
Mutual labels:  puppet
Biemond Orawls
Puppet 3/4 module for WebLogic provisioning module ( Linux & Solaris )
Stars: ✭ 63 (-7.35%)
Mutual labels:  puppet
Stagr
Staging Server installer for Fortrabbit
Stars: ✭ 56 (-17.65%)
Mutual labels:  puppet

Puppet Cleaner

Puppet DSL source code cleaner and helper utilities

Motivation

http://santanatechnotes.blogspot.mx/2013/04/puppet-cleaner-010-released.html

Requirements

  • puppet

Installation

sudo gem install puppet-cleaner

Utilities

puppet-clean

Receives a puppet manifest file as input and outputs the result of applying the set of transformation rules that you select. If no options are selected all of them are applied, which currently is a subset of the puppet style guide.

Note: the use of ${} for variable interpolation in strings and the replacement of double with single quotes when possible are done by default and are not optional.

Usage:

    puppet-clean [-h] [-t n] [-abedlmovw ] file.pp [file2.pp...]

Options:
    -h, --help              this help message
    -d, --debug             prints tokens before and after the transformation

    -a, --alignfarrow       aligns fat arrows (`=>`)
    -b, --quotedbooleans    removes unneeded quotes around boolean literals
    -e, --ensurefirst       moves `ensure` attribute to the top
    -l, --link              declares symbolic links by using `ensure => link` and `target` attributes
    -m, --mlcomments        converts /* */ style comments to #
    -o, --octalmode         represents file modes as a 4 digits string
    -r, --resourcetitles    quotes resource titles
    -t n, --softtabs n      indents by n spaces
    -v, --quotedvariables   removes unneeded quotes around variables
    -w, --trailingws        removes trailing white space

puppet-diff

Receives two puppet manifest files and outputs its difference, after converting them to YAML. Useful for verifying what (if anything) has changed after applying puppet-clean.

Usage:
    puppet-diff [-h] [-w] old.pp new.pp

Options:
    -h, --help        this help message
    -w, --write       write a YAML file for each pp file if they are different

puppet-inspect

Receives a puppet manifest file and converts its objects (defined types, classes and nodes) to YAML.

Usage:
    puppet-inspect file.pp

Help & Feedback

You can mail me directly if you need help or have any feedback to share.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].