update inbox list
This commit is contained in:
33
vendor/scrivo/highlight.php/test/detect/puppet/default.txt
vendored
Normal file
33
vendor/scrivo/highlight.php/test/detect/puppet/default.txt
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
# EC2 sample
|
||||
|
||||
class ec2utils {
|
||||
|
||||
# This must include the path to the Amazon EC2 tools
|
||||
$ec2path = ["/usr/bin", "/bin", "/usr/sbin", "/sbin",
|
||||
"/opt/ec2/ec2-api-tools/bin",
|
||||
"/opt/ec2/aws-elb-tools/bin"]
|
||||
|
||||
define elasticip ($instanceid, $ip)
|
||||
{
|
||||
exec { "ec2-associate-address-$name":
|
||||
logoutput => on_failure,
|
||||
environment => $ec2utils::ec2env,
|
||||
path => $ec2utils::ec2path,
|
||||
command => "ec2assocaddr $ip \
|
||||
-i $instanceid",
|
||||
# Only do this when necessary
|
||||
unless => "test `ec2daddr $ip | awk '{print \$3}'` == $instanceid",
|
||||
}
|
||||
}
|
||||
|
||||
mount { "$mountpoint":
|
||||
device => $devicetomount,
|
||||
ensure => mounted,
|
||||
fstype => $fstype,
|
||||
options => $mountoptions,
|
||||
require => [ Exec["ec2-attach-volume-$name"],
|
||||
File["$mountpoint"]
|
||||
],
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user