Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
Puppet::Parser::Functions.newfunction(:default_content, | |
:type => :rvalue, | |
:doc => <<-'ENDOFDOC' | |
Takes an optional content and an optional template name and returns the | |
contents of a file. | |
Examples: | |
$config_file_content = default_content($file_content, $template_location) | |
file { '/tmp/x': |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.
As the name says, its primary function is to be used in the deploy process in replace of username/password, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.
notice Integer[0,99].map |$x| { | |
case [$x % 3, $x % 5] { | |
[0, 0] : { fizzbuzz } | |
[0, default] : { fizz } | |
[default, 0] : { buzz } | |
default : { $x } | |
} | |
} |