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
$cert_path = $::osfamily ? { | |
'RedHat' => '/etc/pki/tls/certs/cas.pem', | |
default => fail("osfamily ${osfamily} not supported"), | |
} |
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
upstream node_daemon { | |
server 127.0.0.1:8080; | |
} | |
server { | |
listen 80; | |
server_name realhost; | |
location / { | |
proxy_pass http://node_daemon; |
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
:hierarchy: | |
- 'fqdn/%{fqdn}' | |
- 'modules/%{module_name}' | |
- 'global' | |
:logger: 'console' | |
:yaml: | |
:datadir: '/var/lib/hiera' | |
:backends: | |
- 'file' | |
- 'yaml' |
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
module.exports = function(module){ | |
try{ | |
delete require.cache[require.resolve(module)]; | |
} | |
catch(err){ | |
console.log(err); | |
} | |
//console.log(require.cache); | |
return require(module); | |
}; |
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
app.get( | |
'/secure', | |
//What middleware to use here to see if I've already authenticated? | |
passport.authorize('ldap', { failureFlash: true }), | |
function(req, res){ | |
res.render('index', { | |
pageTitle:'something here', | |
body:'cows mooooo' | |
}); | |
} |
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
++++ Statistics | |
Transfer started on : Mon Aug 12 18:14:40 2013 | |
Transfer ended on : Mon Aug 12 18:20:19 2013 | |
Transfer time : 338.7 sec | |
Messages transferred : 543 | |
Messages skipped : 0 | |
Messages found duplicate on host1 : 0 | |
Messages found duplicate on host2 : 0 | |
Messages void (noheader) on host1 : 0 | |
Messages void (noheader) on host2 : 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
$groups = ['adm', 'plugdev'] | |
$user = 'foo' | |
$users = [$user] | |
# method 1 | |
user { $user: | |
groups => $groups, | |
} |
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
#global.yaml | |
'puppet::hiera::backends': - file | |
- yaml | |
'puppet::hiera::logger': console | |
'puppet::hiera::hierarchy': - '%{::environment}/fqdn/%{::fqdn}' | |
- 'fqdn/%{::fqdn}' | |
- '%{::environment}' | |
- global |
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
--- | |
:backends: - file | |
- yaml | |
:logger: console | |
:hierarchy: - %{::environment}/fqdn/%{::fqdn} | |
- fqdn/%{::fqdn} | |
- %{::environment} | |
- global |
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
(ql:quickload "cl-graphite") | |
(ql:quickload "cl-arrows") | |
(use-package :cl-graphite) | |
(use-package :cl-arrows) | |
(cl-graphite:with-server "https://graphite.cat.pdx.edu:8080" | |
(write-string (cl-graphite::redmine-link-list | |
("Graphite server health" | |
((:target (-> "carbon.agents.*.cpuUsage" |