I hereby claim:
- I am justindossey on github.
- I am jbd (https://keybase.io/jbd) on keybase.
- I have a public key ASAoh5-1psnhAkvJuhXxjUToBfwnloUfF9-Xn3SGy7eJhgo
To claim this, I am signing this object:
$alias_interface = ['primary:2'] | |
if $alias_interface =~ /^primary\:(\d+)/ { | |
notice("Match!") | |
} else { | |
notice("No Match :(") | |
} |
matches = { | |
[true, true] => 'fizzbuzz', | |
[true, false] => 'fizz', | |
[false, true] => 'buzz' | |
} | |
(1..100).each do |num| | |
results = [num % 3 == 0, num % 5 == 0] | |
puts matches[results] || num | |
end |
class foo ($external_volume = true) { | |
if $external_volume { | |
notice("True!") | |
} else { | |
notice("False!") | |
} | |
} | |
class { 'foo': | |
external_volume => false, |
# Configure a serial port for IPMI (which provides virtual ones). | |
# Depends on the "serial_ports" custom fact, included in this module | |
define ipmi::serial { | |
include stdlib | |
include ipmi::serial_prerequisites | |
$port_exists = member($::serial_ports, "/dev/${title}") | |
if $port_exists { | |
service { $title: |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
message="" | |
# what OS is this? | |
cur_os=$(uname -s) | |
# do we have jq? | |
if ! which jq >/dev/null 2>&1 ; then | |
echo "please install jq" >&2 | |
exit 1 |