Skip to content

Instantly share code, notes, and snippets.

View blkperl's full-sized avatar

William Van Hevelingen blkperl

View GitHub Profile
# first attempt
Error: Evaluation Error: Error while evaluating a Function Call, Function include not defined despite being loaded! at /etc/puppet/environments/sage_manifest_squash/modules/internal/cecs/manifests/init.pp:65:3 on node yoruichi.cat.pdx.edu
# second attempt
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Unknown function: 'include'. at /etc/puppet/environments/sage_manifest_squash/modules/public/mysql/manifests/init.pp:115:3 on node yoruichi.cat.pdx.edu
/usr/lib/ruby/vendor_ruby/puppet/indirector/rest.rb:195:in `is_http_200?'
/usr/lib/ruby/vendor_ruby/puppet/indirector/rest.rb:101:in `find'
/usr/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:201:in `find'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:256:in `block in retrieve_new_catalog'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:327:in `block in thinmark'
# At the beginnging there is only rpool or the "root pool"
root@sunosfiler2:~# zpool status
pool: rpool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
class role::vpnserver {
class { 'openvpn::server':
# environment specific parameters
}
class { 'collectd::plugin::openvpn':
# environment specific parameters
}
class role::leonardo::client (
$dashboard_root = '/opt/leonardo/leonardo/graphs/servers',
)
{
$collectd_name = regsubst($::fqdn, '\.', '_', 'G'),
$dashboard_dir = "${dashboard_root}/${::hostname}",
# Each host needs a directory to hold the graph files
@@file { $dashboard_dir:
ensure => directory,
class role::leonardo {
$template_dir = '/opt/leonardo/leonardo/graphs'
class { '::leonardo':
graphite_url => 'https://graphite.example.org',
template_dir => $template_dir,
install_dir => '/opt/leonardo/leonardo',
}->
file { [$template_dir, "${template_dir}/servers"]:
class role::leonardo::client {
$dashboard_root = '/opt/leonardo/graphs/servers',
$collectd_name = regsubst($::fqdn, '\.', '_', 'G'),
$dashboard_dir = "${dashboard_root}/${::hostname}",
# Each dashboard needs a directory to hold the graph files
@@file { $dashboard_dir:
ensure => directory,
mode => '0755',
@blkperl
blkperl / gist:9821825
Created March 27, 2014 23:51
future parser $:fqdn puppet apply
fab02:~# puppet --version
3.4.3
fab02:~# cat test.pp
class bar {
notify { $:fqdn: }
}
@blkperl
blkperl / Vagrantfile
Last active February 23, 2016 22:44
solaris11 with multiple disks vagrant file
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
diskroot = "/home/#{ENV['USER']}/VirtualBox\ VMs/"
@blkperl
blkperl / vagrantfile.rb
Created February 19, 2014 08:03
solaris11 with multiple disks vagrant file
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "sunosfiler" do |v|
$ getfacl .
# file: .
# owner: wvan
# group: cs333
user::rwx
group::---
other::---