This file contains 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
# Installs RackTables | |
class racktables::config ( | |
$secretfile = $::racktables::secretfile, | |
$apacheuser = $::racktables::apacheuser, | |
$datadir = $::racktables::datadir, | |
$secretfile_content = $::racktables::secretfile_content | |
) { | |
validate_string($secretfile) | |
validate_string($apacheuser) |
This file contains 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 foo( | |
$start_service = undef | |
) { | |
class{'::foo::service': | |
start_service => $start_service, | |
} | |
} |
This file contains 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
# this is the corrected function | |
define foo_bar( | |
$ensure = true, | |
) { | |
# blah | |
} |
This file contains 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
define foo( | |
$bar = 'UNDEF' | |
) { | |
include ::some::config | |
$real_bar = $bar ? { | |
'UNDEF' => $::some::config::bar, | |
default => $bar, | |
} | |
} |
This file contains 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
#!/usr/bin/env ruby | |
require 'trollop' | |
require 'fpm' | |
# used to ensure versions extracted from gems are converted to | |
# semantic versioning-compliant strings before being used | |
# in RPM requires | |
require 'semverly' |
This file contains 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
#!/usr/bin/env ruby | |
#^syntax detection | |
forge "https://forgeapi.puppetlabs.com" | |
# Only need to add top-level role class. | |
# All other classes are recursively included | |
mod 'ubnt-role_activemq', | |
:git => '[email protected]:Ubiquiti-Cloud/role_activemq.git' |
This file contains 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::myapp( | |
$environment, | |
) { | |
include profile::apache | |
include profile::apache::status | |
include ::apache::mod::php | |
include ::apache::mod::deflate | |
#include ::apache::mod::setenvif | |
apache::vhost { 'myapp.mysite.com': |
This file contains 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 test{ | |
$domains = { | |
'domain1.tld' => { | |
'detail' => 'foo' | |
}, | |
'domain2.tld' => { | |
'detail' => 'bar' | |
} | |
} |
This file contains 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
Jan 22 23:45:55 ip-172-20-14-143 puppet-agent[26617]: Caught USR1; calling reload | |
Jan 22 23:45:55 ip-172-20-14-143 puppet-agent[26427]: Could not autoload puppet/indirector/node/rest: current thread not owner | |
Jan 22 23:45:55 ip-172-20-14-143 puppet-agent[26427]: Unable to fetch my node definition, but the agent run will continue: | |
Jan 22 23:45:55 ip-172-20-14-143 puppet-agent[26427]: Could not autoload puppet/indirector/node/rest: current thread not owner | |
Jan 22 23:45:55 ip-172-20-14-143 puppet-agent[26427]: Could not autoload puppet/feature/external_facts: current thread not owner | |
Jan 22 23:45:55 ip-172-20-14-143 puppet-agent[26427]: Failed to apply catalog: Could not autoload puppet/feature/external_facts: current thread not owner | |
Jan 22 23:45:56 ip-172-20-14-143 puppet: /usr/share/ruby/vendor_ruby/puppet/agent.rb:87:in `exit': no implicit conversion from nil to integer (TypeError) | |
Jan 22 23:45:56 ip-172-20-14-143 puppet: from /usr/share/ruby/vendor_ruby/puppet/agent.rb:87:in `block in run_in_fork' | |
Jan 22 23 |
This file contains 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
#!/usr/bin/env ruby | |
require 'trollop' | |
require 'fpm' | |
# used to ensure versions extracted from gems are converted to | |
# semantic versioning-compliant strings before being used | |
# in RPM requires | |
require 'semverly' |