Skip to content

Instantly share code, notes, and snippets.

@jamtur01
Created May 10, 2013 22:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamtur01/5557777 to your computer and use it in GitHub Desktop.
Save jamtur01/5557777 to your computer and use it in GitHub Desktop.
class { 'sensu':
rabbitmq_password => 'secret',
server => true,
plugins => [
'puppet:///data/sensu/plugins/ntp.rb',
'puppet:///data/sensu/plugins/postfix.rb'
]
}
@jamtur01
Copy link
Author

init/generator

  1. Add Puppet manifests directory to test/
  2. Write out base manifest.pp
  3. Create new template - module_name.pp
  4. Move kitchen_yaml down the init

suite - pull out chef stuff

driver -> ?

chefuploader -> add puppetuploader

@fnichol
Copy link

fnichol commented May 11, 2013

Here's a few of my addition notes so far:

  • class name based off module name when generating test/manifests/<suite_name>.pp
---

#

suites:
- name: server
  # this value of manifest_file would be implicit if not set,
  # otherwise honor an overridden value
  manifest_file: test/manifests/server.pp
- name: client
  # possible inlining of a manifest
  manifest: |
    class { 'sensu':
        rabbitmq_password => 'secret',
        server            => true,
        plugins           => [
          'puppet:///data/sensu/plugins/ntp.rb',
          'puppet:///data/sensu/plugins/postfix.rb'
        ]
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment