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
newproperty(:mode) do | |
desc "Set trunking mode of the interface." | |
defaultto(:undef) | |
newvalues(:undef, :access, :dot1q, :dynamic, :private, :trunk) | |
end | |
newproperty(:trunk_native_vlan) do | |
desc "Set native VLAN when interface is in trunking mode" | |
defaultto(:undef) | |
newvalues(:undef, /^\d+$/) |
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
#!/bin/bash | |
DIR="$1" | |
# only start rename when $DIR is not root or empty | |
if [ "$DIR" == "" ] || [ "$DIR" == "/" ]; then | |
echo "No directory given" >&2 | |
exit 1 | |
fi |
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
Works: | |
irb(main):001:0> require "openssl" | |
=> true | |
irb(main):002:0> | |
Doesn't work: | |
irb(main):001:0> require "puppet/network/xmlrpc/client" | |
Puppet::Error: You must have the Ruby openssl library installed |
NewerOlder