This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class role::vpnserver { | |
| class { 'openvpn::server': | |
| # environment specific parameters | |
| } | |
| class { 'collectd::plugin::openvpn': | |
| # environment specific parameters | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fab02:~# puppet --version | |
| 3.4.3 | |
| fab02:~# cat test.pp | |
| class bar { | |
| notify { $:fqdn: } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- 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/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- 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| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ getfacl . | |
| # file: . | |
| # owner: wvan | |
| # group: cs333 | |
| user::rwx | |
| group::--- | |
| other::--- | |