Skip to content

Instantly share code, notes, and snippets.

import "templates"
class toolbox {
file { '/usr/local/sbin/puppetsimple.sh' :
owner => root, group => root, mode => 0755,
content => "#!/bin/sh\npuppet agent --onetime --no-daemonize --verbose \n",
} #file
} #class
node 'puppet.example.com' {
# This file is being maintained by Puppet.
# DO NOT EDIT
# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
LOG_RENDERING_PERFORMANCE = True
LOG_CACHE_PERFORMANCE = True
LOG_METRIC_ACCESS = True
MEMCACHE_HOSTS = ['192.168.202.28:11211']
GRAPHITE_ROOT = '/usr/share/graphite'
CONF_DIR = '/etc/graphite-web'
STORAGE_DIR = '/var/lib/carbon'
CONTENT_DIR = '/usr/share/graphite/webapp/content'
WHISPER_DIR = '/var/lib/carbon/whisper/'
RRD_DIR = '/var/lib/carbon/rrd'
LOG_RENDERING_PERFORMANCE = True
LOG_CACHE_PERFORMANCE = True
LOG_METRIC_ACCESS = True
MEMCACHE_HOSTS = ['192.168.202.28:11211']
GRAPHITE_ROOT = '/usr/share/graphite'
CONF_DIR = '/etc/graphite-web'
STORAGE_DIR = '/var/lib/carbon'